+ Reply to Thread
Results 1 to 6 of 6

Converting to date + extract no

  1. #1
    Registered User
    Join Date
    07-27-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    12

    Converting to date + extract no

    Good morning,

    Can anyone please advise on the below 2 challenges.

    First hurdle is to convert to date, original data uses US date format.
    Second challenge is to extract the number from a string.

    Thank you,
    Ron
    Attached Files Attached Files

  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,895

    Re: Converting to date + extract no

    For your dates:

    =DATE(--RIGHT(A2,4),--TEXTBEFORE(A2,"/"),--TEXTBEFORE(TEXTAFTER(A2,"/"),"/"))

    For your numbers:

    =--SUBSTITUTE(IFNA(--TEXTBEFORE(A1," "),A1),"GR","")
    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 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,895

    Re: Converting to date + extract no

    Or, all in one:

    =DATE(--RIGHT(A2:A7,4),--TEXTBEFORE(A2:A7,"/"),--TEXTBEFORE(TEXTAFTER(A2:A7,"/"),"/"))

    and:

    =--SUBSTITUTE(IFNA(--TEXTBEFORE(A1:A32," "),A1:A32),"GR","")
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Converting to date + extract no

    Data-->Text to Colums-->Next-->Next-->Date-->MDY-->Finish
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-27-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    12

    Red face Re: Converting to date + extract no

    Thank you Ali!
    As always you're a life saver!

  6. #6
    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,895

    Re: Converting to date + extract no

    Glad to have helped.

    If you have not already done so, remember that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. Converting multiple date formats to single date format - dd-mm-yyyy
    By BikashPradhan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-28-2022, 10:09 AM
  2. [SOLVED] Formula for converting a date to quarter and leaving blank cell for no date values
    By jayc2111 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 12:57 AM
  3. Replies: 5
    Last Post: 08-13-2017, 04:29 AM
  4. Converting a julian date and time to standard date in excel 2010
    By Munkle555 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2015, 10:49 AM
  5. [SOLVED] Converting Date Text to Number format to use in a VLOOKUP to polpulate data based by date
    By Rossovich in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-08-2015, 10:43 AM
  6. [SOLVED] Extract fraction from text without converting to date serial number
    By adam2308 in forum Excel General
    Replies: 4
    Last Post: 10-04-2011, 07:29 AM
  7. Replies: 0
    Last Post: 04-17-2011, 02:29 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