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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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,216,030
Messages
6,128,418
Members
449,449
Latest member
Quiet_Nectarine_

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