Help with Multiple levels of Data Validation

SustainUSteve

New Member
Joined
Dec 22, 2016
Messages
3
Hello,

I'm looking to put a drop down list in a column E2:E32 which gives the option to select "White", "Gray", or "Black". I also want a countif to trigger a warning if a duplicate is entered in column E withn columns B through D of the same row.

Is it possible to add two levels of data validation, or a text string within the custom option of data validation that would allow me to do both?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I have an idea, not sure if it would work for you.

ABCDEFGHI
1Colour1Colour2Colour3Drop-DownWhiteGreyBlack
2
3
4

<tbody>
</tbody>









Column E would be your drop down, but the range would be G2:I2.

In G2 use formula =IF(COUNTIF($B5:$D5,"White")=0,"White","")
In H2 use formula =IF(COUNTIF($B5:$D5,"Grey")=0,"Grey","")
In I2 use formula =IF(COUNTIF($B5:$D5,"Black")=0,"Black","")

The drop down would only show values that are not in columns B:D.
 
Upvote 0
Welcome to the forum.

I like sequin's idea. You can hide the helper columns G:I if you want.

The other possibility I can think of is to use this custom DV formula:

=ISNUMBER(SEARCH("|"&E1&"|","|White|Gray|Black|"))*(COUNTIF(B1:D1,E1)=0)

It handles both of your conditions without needing helper columns, but it doesn't have a drop-down list either.
 
Upvote 0
Correct me if I am wrong but would the custom DV work:

=AND(E2<>B2,E2<>C2,E2<>D2)

Again it wouldn't have a drop down.

Again wouldn't have a drop down
 
Upvote 0
That would work to prevent the duplicates, but would not restrict the input options to White, Gray, or Black.
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,012
Members
449,204
Latest member
tungnmqn90

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