+ Reply to Thread
Results 1 to 5 of 5

extracting a date fronm a SKU code

  1. #1
    Registered User
    Join Date
    03-29-2021
    Location
    Portsmouth, UK
    MS-Off Ver
    365
    Posts
    37

    extracting a date fronm a SKU code

    I have a sku code where the last 4 numbers signify the start date of an event and need to extract this and show as a date.


    For example, LONTOR120623. The start date is 12 june 2023.

    I know RIGHT(cell,4) will extract the numbers, but i cant get excel to then recognise that as 06-23, not the year 623.

    Any help hugely appreciated!

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,597

    Re: extracting a date fronm a SKU code

    It's the last 8 numbers!

    Try this:

    =LET(d,RIGHT(A1,8),DATE(RIGHT(d,4),MID(d,3,2),LEFT(d,2)))
    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 shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: extracting a date fronm a SKU code

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Registered User
    Join Date
    03-29-2021
    Location
    Portsmouth, UK
    MS-Off Ver
    365
    Posts
    37

    Re: extracting a date fronm a SKU code

    Thank you!!! (& yes, i cant even count today!) I would NEVER have worked that formula out!

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,597

    Re: extracting a date fronm a SKU code

    Glad to have helped.

+ 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. [SOLVED] Extracting a date from a text string and then need to convert to a date format.
    By ldborders in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-03-2021, 03:53 PM
  2. Extracting date from Excel Date/Time Format
    By indeedies in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2018, 10:16 AM
  3. Replies: 4
    Last Post: 02-15-2017, 08:00 AM
  4. [SOLVED] Extracting Date from text and formatting to date
    By Jietoh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-16-2016, 03:43 PM
  5. [SOLVED] Extracting two letters-code based on earliest date
    By Niclal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2014, 02:38 PM
  6. Replies: 4
    Last Post: 05-31-2013, 11:20 AM
  7. Extracting information between date and time code
    By mattdave86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2011, 05:59 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