toolrota

How to create a drop-down list in Excel: simple, dynamic and dependent lists

If five spellings of the same department are breaking your reports, a drop-down list is the fix. From a basic list to self-expanding and dependent lists, step by step.

Serkan Akyürek·Updated ·5 min read
How to create a drop-down list in Excel: simple, dynamic and dependent lists – Excel

A drop-down list limits a cell to the values you choose. Typos such as "Sales", "sales" and "Sales " disappear, and filters and PivotTables start working the way you expect. In Excel the feature lives under Data Validation.

Create a basic drop-down list

  1. Select the cells that should get the list (for example B2:B200).
  2. Go to Data > Data Validation.
  3. In the Allow box choose List.
  4. In Source, type the values separated by commas: Sales,Marketing,Finance,HR
  5. Click OK.

An arrow appears next to the cell when you select it. If someone types a value that is not on the list, Excel shows an error.

Tip: Some regional versions of Excel use a semicolon as the list separator. If all values appear as one item, switch commas to semicolons.

Pull the list from a range

Keeping the values on a separate sheet makes maintenance easier.

  1. Create a sheet called "Lists" and type the departments in A2:A10.
  2. In Data Validation, set Source to =Lists!$A$2:$A$10.

To change the options later, you only edit that sheet.

A list that grows automatically

A fixed range ignores values you add below it. The cleanest fix is an Excel Table:

  1. Select the values on the Lists sheet and press Ctrl + T.
  2. On the Table Design tab, name the table "Departments".
  3. Use this as the Data Validation source:
=INDIRECT("Departments[Department]")

When you add a row to the table, the drop-down list expands with it. In Microsoft 365 you can also create a sorted, unique list in a helper cell with =SORT(UNIQUE(Departments[Department])) and point the source to the spill range, for example =$D$2#.

Dependent (cascading) drop-down lists

To show only the cities of the country chosen in the first list:

  1. Put each country's cities in its own column, with the country name as the header.
  2. Select each column and use Formulas > Create from Selection > Top row to name it.
  3. Set up the country list in A2.
  4. For B2 use Data Validation > List > Source: =INDIRECT(A2)

The options in B2 now change with the country in A2. Names cannot contain spaces, so call a range "United_Kingdom" and make the first list use the same spelling, or wrap the reference: =INDIRECT(SUBSTITUTE(A2," ","_")).

Input messages and error alerts

Two tabs in the Data Validation dialog improve the experience:

  • Input Message shows a hint when the cell is selected ("Choose your department").
  • Error Alert decides what happens on invalid input. Stop blocks it, while Warning and Information only warn.

Common problems

ProblemFix
No arrow appearsTick "In-cell dropdown" in Data Validation
New values are missingBase the source on a Table
Pasting removes the ruleUse Paste Special > Validation or protect the sheet
Dependent list shows #REF!The range name must match the first list exactly

To find cells that already have rules, use Home > Find & Select > Data Validation. To remove a rule, select the cells and click Clear All in the Data Validation dialog.

Step-by-step example: a dependent (country → city) drop-down in an order form

  1. Set up a data sheet: A1:A3 "Turkey, Germany, UK"; under each country a list of cities (Turkey: Istanbul, Ankara; Germany: Berlin, Munich).
  2. Name the ranges: name each city list after the country (for example Turkey, Germany). Avoid spaces and accented characters.
  3. Country cell (B2): Data > Data Validation > List > Source =Countries.
  4. City cell (C2): List > Source =INDIRECT(B2).
  5. Test: changing B2 should change the list in C2.
  6. Set the error alert to "Stop" to block wrong entries.
  7. Add an input message: "Pick from the list."
  8. Copy the rows down; if you make a table (Ctrl + T) the validation extends automatically (see our Excel tables guide).

In Microsoft 365 a more flexible alternative is to build a dynamic source range with =FILTER(...) and give the source as a spilled range like =D2#.

Common traps

ProblemCauseFix
The list comes out emptyThe range name is wrong or contains a spaceCheck the names
A new item doesn't enter the listA fixed rangeUse a table or a dynamic name
Validation vanishes when pastedPasting as valuesTo copy validation use Paste Special > Validation
A source on another sheet doesn't workOlder versionsDefine a name and use the name
Options are typed one by one, hard to maintainA manual listA separate "Lists" sheet

Frequently asked questions

Can I pick several items from a drop-down? Not with standard validation; a macro or a different design is needed.

Does letter case matter? Not as long as the list items are spelled correctly; if incoming data is spelled differently data cleaning is needed (see our data cleaning guide).

Can I show the list items sorted? Sort the source list beforehand or produce the source with the SORT function (365).

In Google Sheets? Data > Data validation > Dropdown; it works similarly (see our Sheets vs Excel guide).

How do I remove validation? Data Validation > Clear All.

Share
Published:
Author
Serkan Akyürek

Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.