Nobby_the_Mouse
New Member
- Joined
- Apr 24, 2016
- Messages
- 7
Dear Excel Wizards of the world...
I'm trying to make a Data Validation formula and have got very very stuck! The problem...
I need users of a spreadsheet to only be able to enter valid Ordinance Survey Great Britain (OSGB) grid references into a cell. These grid references will be only the following lengths:
4 figure (1km precision): e.g. SU1234
6 figure (100m precision): e.g. SU123456
8 figure (10m precision): e.g. SU12345678
10 figure (1m precision): e.g. SU1234567890
The validation needs to be able to allow two letters at the start, from the following look-up table only:
HP, HT, HU, HY, HZ, NA, NB, NC, ND, NF, NG, NH, NJ, NK, NL, NM, NN, NO, NP, NR, NS, NT, NU, NW, NX, NY, NZ, OV, SC, SD, SE, SG, SH, SJ, SK, SM, SN, SO, SP, SR, SS, ST, SU, SV, SW, SX, SY, SZ, TA, TF, TG, TL, TM, TQ, TR, TV
Also, the formula should allow the user (if possible) to enter a space after the two letters and at the mid-point of the digits, for example:
4 figure (1km precision): e.g. SU 12 34
6 figure (100m precision): e.g. SU 123 456
8 figure (10m precision): e.g. SU 1234 5678
10 figure (1m precision): e.g. SU 12345 67890
Any deviation from the above rules would mean the entry is invalid and an error alert is generated.
This is part of an important species data collection methodology for a wildlife charity, so your help will be much appreciated!
Cheers,
Ben
I'm trying to make a Data Validation formula and have got very very stuck! The problem...
I need users of a spreadsheet to only be able to enter valid Ordinance Survey Great Britain (OSGB) grid references into a cell. These grid references will be only the following lengths:
4 figure (1km precision): e.g. SU1234
6 figure (100m precision): e.g. SU123456
8 figure (10m precision): e.g. SU12345678
10 figure (1m precision): e.g. SU1234567890
The validation needs to be able to allow two letters at the start, from the following look-up table only:
HP, HT, HU, HY, HZ, NA, NB, NC, ND, NF, NG, NH, NJ, NK, NL, NM, NN, NO, NP, NR, NS, NT, NU, NW, NX, NY, NZ, OV, SC, SD, SE, SG, SH, SJ, SK, SM, SN, SO, SP, SR, SS, ST, SU, SV, SW, SX, SY, SZ, TA, TF, TG, TL, TM, TQ, TR, TV
Also, the formula should allow the user (if possible) to enter a space after the two letters and at the mid-point of the digits, for example:
4 figure (1km precision): e.g. SU 12 34
6 figure (100m precision): e.g. SU 123 456
8 figure (10m precision): e.g. SU 1234 5678
10 figure (1m precision): e.g. SU 12345 67890
Any deviation from the above rules would mean the entry is invalid and an error alert is generated.
This is part of an important species data collection methodology for a wildlife charity, so your help will be much appreciated!
Cheers,
Ben