MartinS
Active Member
- Joined
- Jun 17, 2003
- Messages
- 490
- Office Version
- 365
- Platform
- Windows
Hi
I've searched and found several posts with users having the same issue, and I've checked my formula returns the correct range, but setting up a validation with the following formula allows free text, even though the option to stop if invalid entries made is ticked.
To replicate this issue, follow these steps:
Open a blank workbook and in Sheet1, A1, type 'Name';
In cells A2, A3 and A4, enter 'Person A', 'Person B' and 'Person C';
Define a range name 'NameList' to cover A2:A6, i.e. 2 rows past the last entry;
In cell B2, create a Data Validation List, with the following formula:
=OFFSET($A$2,0,0,COUNTIF(NameList,"*?*"),1)
The default is that 'Show error alert...' is ticked, so this should stop users from entering text not found in the list, ie. Person A, B or C.
Type Steven into B2, and note that it doesn't trigger the validation to fire and alert the user.
I'm guessing this is to do with the formulae, but is there any way to fix this so that it lets the error handler work as expected?
Many thanks
Martin
I've searched and found several posts with users having the same issue, and I've checked my formula returns the correct range, but setting up a validation with the following formula allows free text, even though the option to stop if invalid entries made is ticked.
To replicate this issue, follow these steps:
Open a blank workbook and in Sheet1, A1, type 'Name';
In cells A2, A3 and A4, enter 'Person A', 'Person B' and 'Person C';
Define a range name 'NameList' to cover A2:A6, i.e. 2 rows past the last entry;
In cell B2, create a Data Validation List, with the following formula:
=OFFSET($A$2,0,0,COUNTIF(NameList,"*?*"),1)
The default is that 'Show error alert...' is ticked, so this should stop users from entering text not found in the list, ie. Person A, B or C.
Type Steven into B2, and note that it doesn't trigger the validation to fire and alert the user.
I'm guessing this is to do with the formulae, but is there any way to fix this so that it lets the error handler work as expected?
Many thanks
Martin