Different Drop Down Lists in Same Excel Cell

image You can use data validation to create drop down lists in Excel. With a bit of Excel magic, you can create dependent drop down lists, so the selection in one drop down controls what appears in the next drop down.
We’ll take a quick look at how a basic dependent drop down works, then add flexibility by changing the data validation formula.

Select Countries and Cities

For example, in the worksheet shown below, there’s a drop down to select a country in column A. If you select USA as the country, cities from the USA appear in the Column B drop down.
DataValDepend01
This is created by using the INDIRECT function in the data validation settings for column B:
=INDIRECT(A2)
DataValDepend00
There are city lists in the workbook, and each list is named to match its country name. So, if you select USA in cell A2, the INDIRECT function references the range named USA.

Change the Formula

Currently, the drop down list in column B doesn’t work, unless you first select a country in column A. We’d like to give users the option to select a world city, if they haven’t selected a country in column A.
On the Lists worksheet, there’s a range named World, highlighted in the screen shot below.
DataValDepend02
Just as you can use the IF function on the worksheet, you can use it in a data validation formula. For the data validation cells in column B, we’ll change the formula to the following:
=IF(A2=””,World,INDIRECT(A2))
If cell A2 is blank (equal to an empty string “”), then show the World list. Otherwise, show the list for the country selected in cell A2.
DataValDepend03
After this change to the data validation formula, if you click on a drop down arrow in column B, and no country is selected in column A, the list of world cities appears.
DataValDepend04

Watch the Video

To see the steps for creating a basic dependent drop down list, then adding an IF function, please watch this Dependent Data Validation video tutorial.

________________