+ Reply to Thread
Results 1 to 4 of 4

mixed dates to harmonize

  1. #1
    Forum Contributor
    Join Date
    02-28-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2019
    Posts
    101

    mixed dates to harmonize

    I have a spreadsheet with mixed date formats -

    11-Aug-2016
    09MAR2017 15:22
    09MAR2017 15:22
    05-Aug-2016
    28-Jul-2016
    09MAR2017 15:22
    20APR2017 08:25
    3/20/2017 9:50
    03/01/16
    04/12/16

    Thought by using Format > Date I can harmonize all different formats into one. It does not seem to work.

    A google search suggests I need to write a VBA. Is it the only way to harmonize the dates ?

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: mixed dates to harmonize

    If I copy/paste the above values then they are all recognized as dates and I can indeed format them all consistently.

    In your case, I wonder if some / all of the dates are actually text that look like dates rather than numbers representing dates?

    What do you see if you do isnumber() on each of the dates? If some/all return FALSE you might try timevalue() to convert to a proper date, then you can format as you wish.

  3. #3
    Forum Contributor
    Join Date
    02-28-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2019
    Posts
    101

    Re: mixed dates to harmonize

    Thanks !
    I think you meant datevalue
    (timevalue gives me 1/0/1900)

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: mixed dates to harmonize

    Sorry, yes I meant datevalue() - it sounds like that worked for you?? If so then please mark the thread as solved. Never mind - I see you already did!
    Last edited by GeoffW283; 02-27-2019 at 10:24 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automating development of calendars of mixed dates and months
    By Simon Gleeb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-23-2019, 02:40 AM
  2. Help in formatting mixed dates
    By mwot in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-11-2018, 02:39 AM
  3. Replies: 8
    Last Post: 07-07-2018, 03:27 AM
  4. Mixed dates that need to all be the same format
    By aigo in forum Excel General
    Replies: 2
    Last Post: 12-06-2013, 06:48 AM
  5. Replies: 8
    Last Post: 02-21-2010, 11:33 AM
  6. [SOLVED] Adding Column of mixed data omitting the dates
    By lpullen in forum Excel General
    Replies: 2
    Last Post: 11-17-2005, 12:45 PM
  7. [SOLVED] Harmonize date format
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2005, 10:05 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1