+ Reply to Thread
Results 1 to 6 of 6

Formula to Change Date in a Text String from US to UK Form

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Formula to Change Date in a Text String from US to UK Form

    Hi,

    In A1:A1000 I have in each cell a text string in the form:

    Text / MM/DD/YYYY / Text

    An example would be:

    John / 07/23/2019 / Smith

    The middle 10 characters represents the date in US format.

    Can someone please tell me a formula that will convert the date in this string from US (MM/DD/YYYY) to UK (DD/MM/YYYY) form?

    Thanks!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Formula to Change Date in a Text String from US to UK Form

    Convert or extract?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Formula to Change Date in a Text String from US to UK Form

    You could use Power Query (Get & Transform Data). Format your source data as a table, then use:

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Formula to Change Date in a Text String from US to UK Form

    Convert, please AliGW.

    I was thinking something like putting a formula in each adjacent cell in B1:B1000 to get the data in the required format.

    For example, A1 has John / 07/23/2019 / Smith. I would like a formula in B1 to reference A1 and return the text string John / 23/07/2019 / Smith.

    Olly - thanks for the suggestion; unfortunately I'm not yet familiar with PQ

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Formula to Change Date in a Text String from US to UK Form

    I was thinking something like putting a formula in each adjacent cell in B1:B1000 to get the data in the required format.
    That's extracting and converting, not converting in situ. OK - clear now - thanks.

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Formula to Change Date in a Text String from US to UK Form

    Quote Originally Posted by andrewc View Post
    Olly - thanks for the suggestion; unfortunately I'm not yet familiar with PQ
    Now's as good a time as any, to learn...

+ 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. Change formula to text form?
    By terrypin in forum Excel General
    Replies: 1
    Last Post: 02-09-2018, 12:24 PM
  2. [SOLVED] Change Value in formula form outside string
    By sealpino in forum Excel General
    Replies: 1
    Last Post: 03-25-2017, 06:25 AM
  3. [SOLVED] cant get dates that are in text for to change to date form
    By superchew in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-04-2016, 12:13 AM
  4. Change font color based on the ending text string (date) of a cell
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-31-2013, 04:04 PM
  5. [SOLVED] Translate form data into a text string and output that string into a preformated length
    By TJ Saulnier in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2012, 03:58 PM
  6. Formula to change numbers to a string of text.
    By erinwithane in forum Excel General
    Replies: 1
    Last Post: 12-28-2010, 05:11 PM
  7. [Solved]User form Text Box change default to date
    By BJ5352 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2010, 03:56 AM

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