# Formula to Derive Date from Alphanumeric Code

1. ## 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!!

2. ## 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))

3. ## Re: Formula to Derive Date from Alphanumeric Code

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

#### Thread Information

##### Users Browsing this Thread

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

#### 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