Link to home
Start Free TrialLog in
Avatar of Edward Pamias
Edward PamiasFlag for United States of America

asked on

Cascading drop down lists in Excel

This is based upon another question I found here. So here it goes. I have this file if I select the location in one drop down I would get the list of names of that location in the other drop down. I have setup the sheet exactly as it stated in the training video but the second drop down is not working! Please help me. Thanks!
dropdownsample.xlsx
ASKER CERTIFIED SOLUTION
Avatar of [ fanpages ]
[ fanpages ]

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Edward Pamias

ASKER

I feel stupid. I did not even see the "_" and I know there could not be any spaces in the named range. I added the "_" to the names and it works now. Thanks!
Avatar of [ fanpages ]
[ fanpages ]

You're very welcome.

It is very easy to miss something obvious because you have been looking at a problem for so long.

Glad it now works for you.
Moreover you can also apply a conditional formatting rule to hide the Employee which is already selected from the drop down list in B2 for a specific location selected in A2 and which doesn't belongs to the new location when selected from the drop down list in A2.

i.e. if you select New York in A2 and select Kate in B2, so now if you select another location say New Jersey in A2, the previously selected employee Kate for New York will still be visible in B2 which shows the wrong employee in B2 as per the new location in A2.

To avoid this, make a New Rule for conditional formatting using the formula given below and while setting the format, go to Number Tab --> Custom --> and set the custom number format as ;;; (three semicolons).

=COUNTIF(INDIRECT(SUBSTITUTE($A$2," ","_")),B2)=0

Open in new window


Refer to the attached for details.

Hope this helps.
dropdownsample.xlsx