+ Reply to Thread
Results 1 to 3 of 3

Formula to Derive Date from Alphanumeric Code

  1. #1
    Registered User
    Join Date
    01-16-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formula to Derive Date from Alphanumeric Code

    What I am trying to do is generate a formula the can derive production date from a series of Lot Codes. An example Lot Code would be

    70C04032LR00EST10805L26 04-03-14. The portion in Bold is the production date I am interested in having Excel extract from the Lot Code.

    The first three numbers and letters in the Lot Code are not of intrest. The date is within the alphanumeric Lot Code and is the 4th, 5th, 6th, 7th, and 8th characters in the form Month (xx), Day(xx), and Year(x). The year is only designated one number and 0=2010, 1=2011, 2=2012, 3=2013. The characters following the 8th position in the Lot Code are not of intrest in this application either.

    I have been trying to determine a way to have excel extract and derive the production date from this code, and I know this is possible, but I can not seem to come up with an accurate formula. I attached a small smaple spreadsheet with a few Lot Codes and also listed the correct "answer" I am trying to derive. Any assistance or suggestions would be greatly appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,130

    Re: Formula to Derive Date from Alphanumeric Code

    hi gmarie, welcome to the forum. try:
    =DATE("201"&MID(A2,8,1),MID(A2,4,2),MID(A2,6,2))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-16-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formula to Derive Date from Alphanumeric Code

    Thank you very much benishiryo!!! That formula worked perfectly!

+ 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