+ Reply to Thread
Results 1 to 7 of 7

mixed date formats in s/s, how to format

  1. #1
    Registered User
    Join Date
    12-16-2014
    Location
    fort lauderdale
    MS-Off Ver
    365
    Posts
    6

    mixed date formats in s/s, how to format

    I received a 10,000 row s/s and some dates are mm/ddd/yyyy and some are dd/mm/yyyy...any easy way to format to all the same w/o manually doing it??

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: mixed date formats in s/s, how to format

    are they text dates or real dates ? what was your source things depend on regional settings
    eg in us 10/13/2014 will be seen as 13 oct but if you tried that in uk it would display as text 10/13/2014 as there is no such date
    Last edited by martindwilson; 12-16-2014 at 02:28 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    12-16-2014
    Location
    fort lauderdale
    MS-Off Ver
    365
    Posts
    6

    Re: mixed date formats in s/s, how to format

    They are real dates and I do believe it's because there were multiple people in other regions gathering the data.

    The only reason I knew the date format was mixed is that there is a row with the week # and year.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: mixed date formats in s/s, how to format

    well there is no real way of telling if 8/7/2014 is 8th july or 7th august
    exactly what do they look like

  5. #5
    Registered User
    Join Date
    12-16-2014
    Location
    fort lauderdale
    MS-Off Ver
    365
    Posts
    6

    Re: mixed date formats in s/s, how to format

    The only reason I know is that the week/year is in the column next to it. I've attached for you to see.
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: mixed date formats in s/s, how to format

    hmm i changed my settings to US then used this
    =DATEVALUE(IF(WEEKNUM(A2)=LEFT(B2,2)+0,TEXT(A2,"mm/dd/yyyy"),TEXT(A2,"dd/mm/yyyy")))
    if that doesn't work try

    =DATEVALUE(IF(WEEKNUM(A2)=LEFT(B2,2)+0,TEXT(A2,"dd/mm/yyyy"),TEXT(A2,"mm/dd/yyyy")))

  7. #7
    Registered User
    Join Date
    12-16-2014
    Location
    fort lauderdale
    MS-Off Ver
    365
    Posts
    6

    Re: mixed date formats in s/s, how to format

    Ok let me try that...thank you.

    YOU ARE A GENIUS!! It worked, the first one!! THANK YOU!!!!

+ 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. Excel file has mixed date formats
    By pushnoyj in forum Excel General
    Replies: 1
    Last Post: 02-14-2014, 07:45 PM
  2. check for date in mixed text/date and format cell.. Help!
    By berbchid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2013, 03:42 AM
  3. Mixed US and UK date formats in Excel Spreadsheet
    By Buntrock in forum Excel General
    Replies: 15
    Last Post: 11-07-2012, 10:58 AM
  4. Replies: 2
    Last Post: 08-17-2012, 05:41 PM
  5. [SOLVED] mixed formats in calculations
    By Mark in forum Excel General
    Replies: 3
    Last Post: 03-31-2005, 02:06 PM

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