+ Reply to Thread
Results 1 to 2 of 2

Convert string of digits into a date

  1. #1
    Scott Lolmaugh
    Guest

    Convert string of digits into a date

    I have a date code in the format:
    YYMMDDSS
    ....where "SS" is a sequence number.
    I want to extract the day, month, and year data from the string and make a
    date that can be used in subsequent date calculations.
    Is there a function that would allow me to extract the characters from
    position 5 & 6, or 3 & 4, or 1 & 2 that I can then concatonate into a proper
    date format?
    Thanks,
    Scott



  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787
    Try

    =DATE(LEFT(A1,2),MID(A1,3,2),MID(A1,5,2))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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