Hi All,
I need help! I have a data table and I would like a unique ID# assigned to each new entry based on 3 criteria. I have already constructed the 1st two parts of the ID#, but cannot figure out how to increase the number based on previous entries.
Example:
First part of ID# extracted from date: 12/1/2010 = "10"
Column 1 is a date. From that date, I extract the last 2 digits of the year.
Second part of ID# extracted from data entry: True = "H"
Column 2 has two choices. Depending on choice, I assign either "H" or "R" to ID#.
Last part of ID#: 6 True = "6"
Based on a count of choice (see part 2), increase ending digit by 1.
For the above example, the new ID# would be "10H6" because the date entry was in year 2010, the choice was "True", and there were 5 previous "True" choices in the table.
Any thoughts? Let me know if you need more info!
Thanks in advance
Steve
I need help! I have a data table and I would like a unique ID# assigned to each new entry based on 3 criteria. I have already constructed the 1st two parts of the ID#, but cannot figure out how to increase the number based on previous entries.
Example:
First part of ID# extracted from date: 12/1/2010 = "10"
Column 1 is a date. From that date, I extract the last 2 digits of the year.
Second part of ID# extracted from data entry: True = "H"
Column 2 has two choices. Depending on choice, I assign either "H" or "R" to ID#.
Last part of ID#: 6 True = "6"
Based on a count of choice (see part 2), increase ending digit by 1.
For the above example, the new ID# would be "10H6" because the date entry was in year 2010, the choice was "True", and there were 5 previous "True" choices in the table.
Any thoughts? Let me know if you need more info!
Thanks in advance
Steve