+ Reply to Thread
Results 1 to 12 of 12

American Date to English Date Format.

Hybrid View

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    Manchester
    MS-Off Ver
    2010
    Posts
    76

    American Date to English Date Format.

    Hi,

    I have a report that runs from a browser that pulls the date in American Format. MM/DD/YY

    Is there a forumula that will convert it as.

    Here is example :

    Next Review Date
    10/31/2016 12:00:00 AM
    10/31/2016 12:00:00 AM
    10/28/2016 12:00:00 AM
    10/31/2016 12:00:00 AM
    11/03/2016 00:00
    10/31/2016 12:00:00 AM
    10/31/2016 12:00:00 AM
    11/02/2016 00:00
    10/31/2016 12:00:00 AM
    11/02/2016 00:00
    11/07/2016 00:00
    10/31/2016 12:00:00 AM
    11/02/2016 00:00
    11/03/2016 00:00
    11/07/2016 00:00
    11/01/2016 00:00

    Im not fussed about the date although that will always be there.
    I was hoping I could insert a column to the right of the dates and put a formula in so it switches the date from 10/31/2016 12:00:00 AM to 31/10/2016 12:00:00 AM.

    Thanks in advance.

    Nath'

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: American Date to English Date Format.

    Are these dates and times text strings or proper date numbers? Test with =ISNUMBER(A1).

    If they are text try

    Formula: copy to clipboard
    =DATE(MID(A1,7,4),LEFT(A1,2),MID(A1,4,2))
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-24-2015
    Location
    Manchester
    MS-Off Ver
    2010
    Posts
    76

    Re: American Date to English Date Format.

    Thanks Richard. Ive used the formula and it works on some.

    So the dates that are like the below reverts the dates

    11/23/2016 12:00:00 AM 23/11/2016
    11/17/2016 12:00:00 AM 17/11/2016
    10/31/2016 12:00:00 AM 31/10/2016
    10/31/2016 12:00:00 AM 31/10/2016

    However any of the dates where the time shows like the below gives me the #VALUE!

    11/03/2016 00:00 #VALUE!
    11/02/2016 00:00 #VALUE!
    11/02/2016 00:00 #VALUE!
    11/07/2016 00:00 #VALUE!
    11/02/2016 00:00 #VALUE!
    11/03/2016 00:00 #VALUE!

    Any suggestions?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: American Date to English Date Format.

    Seems to work OK for me - see attached

    Upload your workbook if you can't replicate this.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-24-2015
    Location
    Manchester
    MS-Off Ver
    2010
    Posts
    76

    Re: American Date to English Date Format.

    Ive uploaded the file for you.

    I think this the location of the file.

    http://www.excelforum.com/attachment...1&d=1477646470

    Thanks

    Nath'
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-24-2015
    Location
    Manchester
    MS-Off Ver
    2010
    Posts
    76

    Re: American Date to English Date Format.

    Going off the text string ISNUMBER some are showing as False but some a True which may be the reason why it will only pull some of them.

    What would you suggest?

    Thanks

    Nath'

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: American Date to English Date Format.

    Put this formula in B2:

    =IF(ISNUMBER(A2),DATE(YEAR(A2),DAY(A2),MONTH(A2)),DATE(MID(A2,7,4),LEFT(A2,2),MID(A2,4,2)))

    then copy down.

    Hope this helps.

    Pete

+ 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. Date always reverts to American format in Userform
    By henryBukowski in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2016, 08:38 PM
  2. [SOLVED] VBU macro - English data entry coverts to American format
    By Mlanger575 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2016, 12:54 PM
  3. [SOLVED] Date changing to American format
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2015, 10:17 AM
  4. Date Converted to American Format
    By TimTDP in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-17-2011, 02:32 PM
  5. Why is the date changing to American Format
    By darbid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2010, 10:00 AM
  6. American/British Date format issue
    By hriggs in forum Excel General
    Replies: 4
    Last Post: 05-29-2008, 08:09 AM
  7. [SOLVED] text or american date format
    By Marshall Scmidt in forum Excel General
    Replies: 2
    Last Post: 03-24-2006, 02:55 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