Data validation list

rayslinky

New Member
Joined
Sep 12, 2010
Messages
2
In Office 2007/2008, I was able to use the following formula to create a list for data validation:
=INDEX(B2:B79,MATCH(TRUE,B2:B79<>B2,0)-1):INDEX(B2:B79,MATCH(TRUE,B2:B79<>B2,0))

My B column contains 2 unique values, so this chose 2 next to each other that had different values. In Excel 2010, I get the error: "You may not use unions, intersections, or array constants for data validation criteria". Does anyone know how to select the two unique values in the form of a list for data validation purposes?
 
I tried this, but I get duplicates. My column contains only 2 values, but they are repeated 80 or so times, so the drop down that the data validation generates contains 80 of the two values. Is there any way to get just the two unique values?
 
Upvote 0

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