+ Reply to Thread
Results 1 to 7 of 7

Excel Date Format not in correct format

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    USA, CA
    MS-Off Ver
    Excel 2007
    Posts
    131

    Question Excel Date Format not in correct format

    Hi,

    I have a date in excel that have extra spaces, but it is in text format because excel doesn't recognize it as date.

    It is currently in this format: May 10 2016

    2 spaces after May

    I have tried several formulas with no luck.
    =IF(ISTEXT(A1),DATEVALUE(MID(A1,1,10)), INT(A1))

    Any solutions that will convert the text into date format. I actually need it in XX/XX/XXXX format

    -Newb
    Last edited by newbie4; 05-20-2016 at 06:40 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Excel Date Format not in correct format

    Could you provide more examples? Maybe a simple find 2 spaces and replace all with one space would work?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    08-08-2012
    Location
    USA, CA
    MS-Off Ver
    Excel 2007
    Posts
    131

    Re: Excel Date Format not in correct format

    I actually need it in XX/XX/XXXX format. I tried the space and then format. didn't work

    May 2 2016
    Apr 23 2016
    May 10 2016

    Thank you!
    -Newb

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Excel Date Format not in correct format

    ok, using your sample, it took me a couple find and replace all, find may, replace with 5, find apr replace with 4, find space and replace with /.
    once it was done all the dates converted to dates.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Excel Date Format not in correct format

    Try this ...

    =--TRIM(REPLACE(A1,FIND(" ",A1,6),1,", "))

  6. #6
    Forum Contributor
    Join Date
    08-08-2012
    Location
    USA, CA
    MS-Off Ver
    Excel 2007
    Posts
    131

    Re: Excel Date Format not in correct format

    Trim function worked perfectly. I never used it, but will start using the trim coupled with the replace and find function. -Newb

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Excel Date Format not in correct format

    You're welcome!

+ 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. [SOLVED] How to correct date format
    By Droriley in forum Excel General
    Replies: 5
    Last Post: 05-15-2015, 05:10 AM
  2. VBA to compile correct date format.
    By GarrettH in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-22-2014, 11:03 AM
  3. Replies: 5
    Last Post: 02-08-2013, 11:06 AM
  4. date format not correct
    By thesnake505 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 06:10 PM
  5. Cant get correct Date Format on UserForm
    By In-Venutus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2010, 07:56 PM
  6. [SOLVED] How do I correct date format?
    By Chris in forum Excel General
    Replies: 1
    Last Post: 06-07-2006, 02:50 AM
  7. [SOLVED] Date format not correct when you convert a CSV text file in Excel
    By Scarab in forum Excel General
    Replies: 2
    Last Post: 11-16-2005, 08:25 AM

Tags for this Thread

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