I get data from various sources and have to create user login IDs that are consistent. I would like help getting one formula (not a macro) that will create the correct ID for all of the different scenarios. Here are more details:
User ID requirements:
I have formulas for all of these scenarios, but don't know how to combine them into one.
Location ID: 32
Employee ID What User ID should be
123456 32123456
8-928-664 32928664
8-951-1443 32511443
9771 32009771
10029 32010029
1384991 32384991
CCI36874 32036874
(Hope this is understandable - I couldn't get the tables to work right and cannot attach.)
Thank you in advance!
User ID requirements:
- All numbers (no letters or other characters)
- 8 digits
- First 2 digits are the site Location ID
- Other 6 digits are taken from the Employee ID
- When EmpID is less than 6 digits, we fill with zeroes to make up the 8 digits
- When EmpID is more than 6 digits, we take the right-most digits
- We ignore dashes and letters and follow the above rules.
I have formulas for all of these scenarios, but don't know how to combine them into one.
Location ID: 32
Employee ID What User ID should be
123456 32123456
8-928-664 32928664
8-951-1443 32511443
9771 32009771
10029 32010029
1384991 32384991
CCI36874 32036874
(Hope this is understandable - I couldn't get the tables to work right and cannot attach.)
Thank you in advance!