Results 1 to 2 of 2

Thread: Convert all columns with dates to serial numbers vba

  1. #1
    Banned
    Join Date
    Dec 2020
    Posts
    1
    Rep Power
    0

    Convert all columns with dates to serial numbers vba

    Hi All!

    I am trying to convert all columns with dates in a workbook to serial numbers, without success, I have searched the internet with not much joy, all I have been able to try is range ("k:m").numberformat = number, this changes most but leaves some still as dates. I can only presume there is some formatting in the data I am receiving which is stopping all dates changing

    is there anyway in vba to ensure all dates are changed?

    I will keep looking but any help would be appreciated.

  2. #2
    Member rollis13's Avatar
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0
    If the cells are formatted text just multiple the column x 1.
    You can also use Paste Special to do this: write 1 in a cell, copy it, select the columns with the dates and apply Paste Special and select operation: Multiply
    Last edited by rollis13; 01-06-2021 at 09:38 PM.

Similar Threads

  1. Convert Text from .txt to columns in excel
    By ravichandavar in forum Excel Help
    Replies: 2
    Last Post: 07-21-2017, 07:35 AM
  2. Serial number to date formula
    By Datucis in forum Excel Help
    Replies: 1
    Last Post: 01-19-2017, 05:48 AM
  3. Replies: 1
    Last Post: 08-29-2016, 01:23 PM
  4. Extract numbers from text into multiple columns
    By Giraffe in forum Excel Help
    Replies: 17
    Last Post: 10-06-2015, 10:41 PM
  5. Insert Missing Dates By Comparing Two Lists Of Dates
    By mahmoud-lee in forum Excel Help
    Replies: 24
    Last Post: 10-16-2013, 04:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •