+ Reply to Thread
Results 1 to 17 of 17

Coverting US dates to Uk dates

  1. #1
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Coverting US dates to Uk dates

    Does anyone have a formula that can convert 01/24/2033 to 24/01/2033

    Thanks so much

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,426

    Re: Coverting US dates to Uk dates

    Use Data | Text to Columns | Delimited | remove all delimiters | then pick the Date format MDY


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-26-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Coverting US dates to Uk dates

    Would it not work just to format cells in the required date format selecting English(United Kingdom) under Location?

  4. #4
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Coverting US dates to Uk dates

    No that doesnt seem to work... I'm using Excel 2003 for the moment as it happens.

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

    Re: Coverting US dates to Uk dates

    One process that TMShucks touched on is using text to columns, delimiters, other / and that will split it into three columns, then you could recombine them in the order you want.
    another way would be a combination of left, mid and right and this should be simple enough it they are all in dd/mm/yyyy format such as 24/01/2033 rather than 24/1/2033. Are they all that way?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,426

    Re: Coverting US dates to Uk dates

    that will split it into three columns
    No, it won't. It will convert American format (text) dates to UK format (numeric) dates in situ. No splitting and reassembling required.

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

    Re: Coverting US dates to Uk dates

    if the date is in cell A2 and formatted always as dd/mm/yyyy, put this in B2 (or wherever)
    =MID(A2,4,2)&"/"&LEFT(A2,2)&"/"&RIGHT(A2,4)

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

    Re: Coverting US dates to Uk dates

    TMS, I'm referring to my version, not yours. I couldn't find a way to remove all delimiters on my 2010 version, not saying your rec is wrong, just referring to my version of how to do it.

  9. #9
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Coverting US dates to Uk dates

    that's great guys... sambo kid i love it the only problem is the fact it is 6/10/12 instead of 06/10/12 in some examples, thanks

  10. #10
    Registered User
    Join Date
    04-26-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Coverting US dates to Uk dates

    Smabo kid's formula could be changed to this for the instances of mm/dd/yy
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-26-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Coverting US dates to Uk dates

    Or, if your dates are mixed ie mm/dd/yy and mm/dd/yyyy then

    Please Login or Register  to view this content.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,426

    Re: Coverting US dates to Uk dates

    @Sambo kid:
    I couldn't find a way to remove all delimiters on my 2010 version
    Select the American format text dates
    Then:
    1 Data on the main Ribbon
    2 Text to Columns on the Data Ribbon
    3 Delimited | Next
    4 Untick all delimiters | Next
    5 Date | MDY | Finish


    Regards, TMS

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,426

    Re: Coverting US dates to Uk dates

    A formula using LEFT, MID and RIGHT will return a text string so you'd need to get the components and use DATE

    For example: =DATE(RIGHT(A1,4),LEFT(A1,1),MID(A1,3,2))

    The formula in post 11 returns 4//1//2033 for 1/24/2033 which has 9 characters.


    Regards, TMS

  14. #14
    Registered User
    Join Date
    04-26-2013
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Coverting US dates to Uk dates

    Ah! I didn't read post #9 correctly.

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

    Re: Coverting US dates to Uk dates

    I've tried some versions of the mid, left right formulas and if your dates vary between mm and m and dd and d and yyyy and yy you will need some way to incorporate a find into them to find the "/" in all then go some varying distance on each. My skills aren't that good.
    The one way I still find that works for me regardless of what order they are in is to use the text to columns function, Delimited >> delimiters >> other "/" then finish. But again, this solution splits them into three columns, then you'd just recombine them using a concatenation formula.
    So if the values were in col A, after the split they'd be in col A, B and C. So it would be days in A, months in B and years in C. Then the concatenation would be =B2&"/"&A2&"/"&C2.

    EDIT: And BTW, if you have values already in columns B and C, then you'd have to insert new columns in B and C and D so you have room to work and so you don't overwrite those values.

  16. #16
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Coverting US dates to Uk dates

    TMS version works in every version of Excel which has the Text to Columns feature and will not create three columns.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  17. #17
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,426

    Re: Coverting US dates to Uk dates

    If you want a formula, use:

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



    Regards, TMS

+ 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. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  2. Replies: 6
    Last Post: 03-11-2013, 06:11 PM
  3. [SOLVED] Highlight Group of Dates if Dates Match List of other Dates
    By martinpgibson in forum Excel General
    Replies: 5
    Last Post: 10-24-2012, 08:14 PM
  4. [SOLVED] Auto filling dates based on previously entered dates and averaging numbers if dates equal
    By grambograham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:21 PM
  5. Coverting Dates to Text
    By scott in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-04-2005, 08: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