Custom Validation using vlookup or list

Country_Calc

New Member
Joined
Feb 14, 2017
Messages
48
Office Version
  1. 365
I want apply custom validation to a cell that will first check to see if a vlookup relationship exists.

If it does to return that value.

If it does not then the user has to select from a list.

I have tried to do this using IFERROR, but it does not work with these examples.

=IFERROR(VLOOKUP(A2,array_name,2,FALSE),=Lists!$A$1:$A$26
=IFERROR(VLOOKUP(A2,array_name,2,FALSE),Lists!$A$1:$A$26
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
If the vlookup value matches a planned value on the list, then a custom formula is not needed. I can just apply a list validation with designated error value.

=IFERROR(VLOOKUP($S4,array,2,FALSE),"TBD")
 
Upvote 0

Forum statistics

Threads
1,215,334
Messages
6,124,321
Members
449,154
Latest member
pollardxlsm

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