I am trying to use Data Validation to limit what goes into a cell. I have a specific format that must be followed and I've tried creating a function using ISNUMBER, AND, SEARCH, IF, and SUMPRODUCT and am just lost with no success. I'm not even sure it's possible, so any help would be much appreciated. Here are the rules of the format:
1. No spaces can be used
2. It must start with 8 numbers
3. The 9th character will either be an M, and W, or an H
4. If the 9th character is an M, then that will be the last character. Example - 12995678M
5. If the 9th character is an F, then up to 6 additional characters can be used. Examples - 12344578WMaggie or 11045678WSam or 12338678WSarah or 29445678WAllie (no spaces)
6. If the 9th character is an H, then up to 6 additional characters can be used. Examples - 12983647HBob or 99384756HRobert or 33948557HJeffry or 22938475HScott (no spaces)
7. There will always be at least 9 total characters (the 8 leading numbers and at least the M).
There can never be more than 15 total characters (the 8 leading numbers, the M/W/H, plus the 6 characters).
Thank you so much!
1. No spaces can be used
2. It must start with 8 numbers
3. The 9th character will either be an M, and W, or an H
4. If the 9th character is an M, then that will be the last character. Example - 12995678M
5. If the 9th character is an F, then up to 6 additional characters can be used. Examples - 12344578WMaggie or 11045678WSam or 12338678WSarah or 29445678WAllie (no spaces)
6. If the 9th character is an H, then up to 6 additional characters can be used. Examples - 12983647HBob or 99384756HRobert or 33948557HJeffry or 22938475HScott (no spaces)
7. There will always be at least 9 total characters (the 8 leading numbers and at least the M).
There can never be more than 15 total characters (the 8 leading numbers, the M/W/H, plus the 6 characters).
Thank you so much!