I am attempting to generate 8 digit serial numbers with Excel based on the following:
ABCDEFGH
- A = Value in column C (User Specified)
- BC = YEAR (Which I have in hidden column)
- D using = RIGHT(YEAR(A3), 2) where A3 is date entered.
- DE = Week in Year (Which I have in hidden column
- E using =WEEKNUM(A3).
- FGH = Sequential numbers from 001 to 999.
This is the part I can't figure out. I want the first serial number for each week to be 001 and run until the week changes. Serial number will then start over at 001 with the new week. Eventually I want to nest all of the formulas into one cell but for now I can just hide the columns until I can grasp the whole thing.
Here's an example:
Date | Customer | User Specified | Year | Week | Serial
11/14/2013 | Sample_Customer | "5" | 13 | 46 | 51346001
11/14/2013 | Sample_Customer | "5" | 13 | 46 | 51346002
11/14/2013 | Sample_Customer2 | "5" | 13 | 46 | 51346003
12/24/2013 | Sample_Customer3 | "3" | 13 | 52 | 31352001
The serial number (column F) should generate once I place the date into the A column.