Data Validation - the user keys in a validated value

PB7

Board Regular
Joined
Mar 1, 2011
Messages
58
Hello,

I would like to use Excel data validation. The spreadsheet user needs to be able to key in a value, but the value must be validated against a list. I have tried both data validation using list, and data validation using custom (formula) and can not get this situation to work.

So, when using data validation with a list, the user is forced to pick from a drop-down list. The user can not manually enter a value on the drop down list.

The drop down list here (of good values) is quite long, and time-consuming to scroll through, for a good value. Thus, I would like the option of being able to key in the value too.

I'm thinking I may need data validation custom, but I can't figure out the needed formula, with the formula working with some range of acceptable values.

Can anyone help me? Many thanks.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I would put a cell next to the one entered and use a LOOKUP to see if there number is in the list. If it is, then, "Number Found", if not "Number not Found")

=IF(ISERROR(VLOOKUP(A1,$B$2:$B$50,1,0)),"Number not found","Number Found")
 
Upvote 0
Thanks CJCobra. Question: will this IF statement generate a warning message, similar to the way the data validation will generate a warning message?
 
Upvote 0
Thanks CJCobra. Question: will this IF statement generate a warning message, similar to the way the data validation will generate a warning message?
Let's assume the user is to enter some value in cell A1.

You have the list of valid entries in the range Z1:Z100.

Setup the validation:

Allow: Custom
Formula: =COUNTIF(Z1:Z100,A1)
 
Upvote 0
Many thanks Biff! I tried many functions using the data validation custom approach, with no luck. This Countif solution works great!
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top