Dependant Drop Down List + No Duplicates

zzjasonzz

Well-known Member
Joined
Apr 23, 2006
Messages
649
Hi,

I have used aladin's idea from the Hall of Fame board on dependant drop down lists but it allows for duplicate entries in the second list, which I don't know how to stop.

At the moment B8:B27 has a drop down list with 4 options when one is selected it populates C8:C27 with the respective lists.

The data is on another sheet in named ranges. heres what the validation looks like now

cell B8 has =KPA [the named range of the 4 choices)

cell C8 has
Code:
=INDIRECT(VLOOKUP(B8,LookupTable,2,FALSE))

The named range LookupTable has the range KPA along with the named range for the second lists, as the names in the KPA list don't match with the names of the second list.


I hope that made sense!!

Thanks for any help,

Jason

P.S. If it's an easier solution im happy to add a macro that checks for duplicates and just has a msgbox error saying no duplicates allowed.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,606
Messages
6,120,492
Members
448,967
Latest member
visheshkotha

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