Dependent Validation with only one item

raymhuber

New Member
Joined
May 16, 2014
Messages
17
Hi, I need to validate the data in one column based on the data in the column to the left of it. Basically, I have a product code in column b and a product description in column c and I need to make sure that each code has the correct description. On a separate sheet I have a list of codes (col E) and their corresponding descriptions (col F). How would you set up data validation so that for the list of codes checked in column C an error will be flagged if it does not have the corresponding description? I know how to use indirect to make dependent lists, but obviously I don't want to make a new defined list for all of the product descriptions.

Thanks,
Ray
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Maybe something like this will work for you. Its just the bare bones. You would also need to add a check if the product code is not present in the true table. Also, everything is on one sheet to make it easier to demonstrate. The validation column is D.


Excel 2010
BCDEF
1product codeProduct descriptionvalidationTrue codeTrue description
2AProduct AOKAProduct A
3BProduct BOKBProduct B
4CProduct COKCProduct C
5DProduct ECheckDProduct D
Sheet3
Cell Formulas
RangeFormula
D2=IF(VLOOKUP(B2,$E$2:$F$5,2,FALSE)=C2,"OK","Check")
D3=IF(VLOOKUP(B3,$E$2:$F$5,2,FALSE)=C3,"OK","Check")
D4=IF(VLOOKUP(B4,$E$2:$F$5,2,FALSE)=C4,"OK","Check")
D5=IF(VLOOKUP(B5,$E$2:$F$5,2,FALSE)=C5,"OK","Check")
 
Upvote 0

Forum statistics

Threads
1,215,155
Messages
6,123,331
Members
449,098
Latest member
thnirmitha

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