+ Reply to Thread
Results 1 to 8 of 8

Combining Mid Right Left with DATE function

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    56

    Combining Mid Right Left with DATE function

    Hi,

    I am looking to combine these two functions but it does not seem to be working...

    the beginning of my F3 cell is:
    04/01/2010

    04 represents month, 01 represents day, 2010 represents year

    I'd like to pull that out into a date format in another cell

    my formula I have is : =date(right(F3,4)|left(F3,2)|mid(F3,2)) but it doesn't work

    Does anyone have an idea why?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Combining Mid Right Left with DATE function

    Do you mean:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Combining Mid Right Left with DATE function

    Is your date actually a date, or is it a string?

    If it is actually a date then you are trying to split a serial number, 40182 for 04/01/2010
    You'll get 21/06/2085 returned, or 06/21/2085 US style

    If it actually is text then try
    Please Login or Register  to view this content.
    Are you tring to convert a UK date string io a US date?
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    10-18-2012
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Combining Mid Right Left with DATE function

    Hi,

    I am not sure what you mean by a UK string date...but it seems like that is the problem as I am getting years in the 2085.

    I've attached the file (it starts 01/04/2010 which is April 1, 2010) and it is in chron. order.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-18-2012
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Combining Mid Right Left with DATE function

    Am I allowed to bump threads?

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Combining Mid Right Left with DATE function

    Your dates are already formated as dates.
    So if you want change date formatting you just write =B3 and format cell as dd.mm.yyyy or mm.dd.yyyy or m.d.yy or whatever you like.

  7. #7
    Registered User
    Join Date
    10-18-2012
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Combining Mid Right Left with DATE function

    Look at row 974 for example

    Before that, Excel thinks it is DATE format, after that Excel puts it at GENERAL format.

    so in row 974 it says 13/04/10 which is supposed to represent April 13, 2010. The row before that says 12/04/10 which represents April 12, 2010. But Excel thinks that 12/04/10 must mean December 4, 2010 and then when it hits row 974 it gets messed up and confused and changes it to GENERAL format...and when you change it to DATE format nothing happens.

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Combining Mid Right Left with DATE function

    You stated that the Date was formatted mm/dd/yyyy (USA format)
    the beginning of my F3 cell is:
    04/01/2010
    04 represents month, 01 represents day, 2010 represents year
    However it is already a serial date, seemingly dd/mm/yyyy (UK format), not a text string,
    Later your dates are strings, not serial numbers, in this format 13/04/10, that to me must be UK format.

    Try this in B3, Drag/Fill Down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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