How to add a drop-down list in Excel (data validation)
To add a drop-down list, select the cells, go to Data › Data Validation, set Allow to List, and type the choices in Source with commas between them, such as Approved,Pending,Declined. Or click in Source and select a list on the sheet. Excel for Mac has the same button on its Data tab.
The four kinds of list at a glance
| Kind of list | What goes in Source | Use it when |
|---|---|---|
| Typed-in choices | Approved,Pending,Declined | A short list that won't change, such as Yes and No |
| A list from a range | =$E$2:$E$4 | A longer list, kept in cells you can edit |
| A list that grows by itself | =$D$2# (a spilled UNIQUE list), or a named table column | New choices turn up in the data, such as new teams |
| A list that depends on another | =INDIRECT($A2) | The second choice depends on the first, such as a team within a department |
The steps are the same for all four, and Data Validation is in the same place on Windows and Mac: Data › Data Validation. Each kind is worked through below. To practise it on a sheet that behaves like Excel, with each step checked, try the data validation practice page.
A worked example
A leave tracker has a Status column. Over a month, people type "Approved", "approved ", "OK" and "Yes", so =COUNTIF(C2:C40,"Approved") finds 21 of the 30 that should count. A drop-down stops that: everyone picks from the same three words, spelled the same way.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Name | Days | Status | Status list | |
| 2 | Asha | 2 | Approved | Approved | |
| 3 | Ben | 5 | Pending | Pending | |
| 4 | Cleo | 1 | Approved | Declined | |
| 5 | Dan | 3 | Declined | ||
| 6 | Ema | 2 | Approved |
Step by step
- Select the cells that need the drop-down. Select more rows than you need, C2:C200 say, so rows added later have it too.
- Go to Data › Data Validation. On Windows it's in the Data Tools group. On a Mac it's on the Data tab too, and if the window is narrow it may show as an icon only.
- On the Settings tab, set Allow to List.
- In Source, type the choices with a comma between each,
Approved,Pending,Declined, or click in the box and select E2:E4 on the sheet. Excel writes=$E$2:$E$4. - Leave In-cell dropdown ticked and click OK.
Click C2 and an arrow appears beside it. Click the arrow, or press Alt+
Typed choices or a list on the sheet?
Typing the choices is quickest for a short list that won't change, such as Yes,No. For anything longer, or a list that will change, put the choices in cells and point Source at them. When a new team starts, you add it to the list once instead of editing every drop-down.
The list can be on another sheet. Click in Source, click the other sheet's tab and select the cells, and Excel writes something like =Lists!$A$2:$A$9. Many people keep every list on one sheet called Lists.
A list that grows by itself
In Excel 365 or 2021, make the list with a formula and point the drop-down at the whole spilled answer. Six people are in three teams in column B. =SORT(UNIQUE(B2:B7)) in D2 lists each team once, A to Z: Finance, Payroll, Sales.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Team | Team list | |
| 2 | Asha | Sales | Finance | |
| 3 | Ben | Finance | Payroll | |
| 4 | Cleo | Sales | Sales | |
| 5 | Dan | Payroll | ||
| 6 | Ema | Finance | ||
| 7 | Finn | Sales |
Set Source to =$D$2#: the # means "everything D2 spills into", so a new team appears in the drop-down as soon as it's in the data. If you point UNIQUE past the data to leave room, such as B2:B200, the empty cells show up as a 0 in the list, so leave them out with FILTER: =SORT(UNIQUE(FILTER(B2:B200,B2:B200<>""))). There's more on these formulas in UNIQUE and FILTER.
In older Excel, put the list in an Excel table, give the column a name with Formulas › Define Name (Name: StatusList, Refers to: =Table1[Status]), and set Source to =StatusList. The table grows when you type under it, and the name grows with it.
Stop wrong entries, or only warn
A drop-down cell still lets people type. The Error Alert tab in the same box decides what happens when they type something that isn't on the list:
- Stop (the usual one): Excel won't accept it.
- Warning: Excel asks "Continue?", and Yes keeps it.
- Information: Excel tells them, then keeps it.
Type your own title and message there, such as "Pick Approved, Pending or Declined". The Input Message tab shows a note whenever someone clicks the cell, before they type anything.
Copy, change or remove a drop-down
- Copy it: copy a cell that has it, select the cells that need it, then Paste Special › Validation. That copies the drop-down without the cell's value.
- Change it: select one of the cells, open Data Validation and change Source. Tick Apply these changes to all other cells with the same settings to change every copy at once.
- Remove it: select the cells, open Data Validation and click Clear All, then OK. The values already in the cells stay.
Saving keeps every drop-down as long as the file stays an Excel Workbook (.xlsx): a CSV loses them. There's more on keeping, copying and finding data validation rules, with the other kinds of rule (numbers, dates, text length) to practise.
One drop-down that depends on another
Pick a department, and the next drop-down offers only that department's teams. There are two ways.
In Excel 365 or 2021: FILTER
Keep the departments and teams as a two-column list. When Finance is picked in E1, FILTER lists Finance's three teams, and the second drop-down's Source points at that spilled list.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Department | Team | Pick a department | Finance | |
| 2 | Sales | North | Teams for it | Payroll | |
| 3 | Sales | South | Purchasing | ||
| 4 | Finance | Payroll | Credit control | ||
| 5 | Finance | Purchasing | |||
| 6 | Finance | Credit control | |||
| 7 | Customer Service | Phones | |||
| 8 | Customer Service |
This suits one pair of drop-downs, such as a form at the top of a sheet. For a whole column of rows, each with its own department, use INDIRECT.
In any version: INDIRECT
Put each department's teams in a column with the department as its heading. Select them all, go to Formulas › Create from Selection and tick Top row, so each list is named after its department. Then, with the departments picked in column A, select B2:B200 and set Source to =INDIRECT($A2). INDIRECT turns the word in A2 into the list with that name. Names can't have spaces, so Create from Selection names Customer Service's list Customer_Service. Use =INDIRECT(SUBSTITUTE($A2," ","_")) as the Source, and the first drop-down can keep the space.
Colour each choice
A drop-down can't colour itself, but conditional formatting can colour the cell once a choice is made. Select C2:C200, go to Home › Conditional Formatting › Highlight Cells Rules › Equal To, type Approved and pick a green fill. Add a second rule for Declined in red. The menus are the same in Excel for Mac.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Name | Days | Status | Green when | Red when |
| 2 | Asha | 2 | Approved | TRUE | FALSE |
| 3 | Ben | 5 | Pending | FALSE | FALSE |
| 4 | Cleo | 1 | Approved | TRUE | FALSE |
| 5 | Dan | 3 | Declined | FALSE | TRUE |
| 6 | Ema | 2 | Approved | TRUE | FALSE |
Because everyone picks from the list, the words always match the rule exactly. To colour the whole row rather than one cell, use a formula rule such as =$C2="Declined": see conditional formatting with a formula.
Common mistakes
There's no arrow
The arrow only shows on the cell that's selected. If it never shows, In-cell dropdown has been unticked in the Data Validation box.
All the choices come out as one item
The commas are missing. On a computer set to a European language, Excel may expect semicolons between the choices instead.
Blank lines in the list
Source covers empty cells, such as =$E$2:$E$20 when only E2:E4 are filled. Point at just the filled cells, or use one of the lists that grow by themselves above.
Wrong values got in anyway
Data Validation only checks what's typed. Pasting into the cell replaces the drop-down along with the value, and an Error Alert set to Warning or Information lets wrong entries through. In Excel for Windows, Data Validation › Circle Invalid Data rings every cell that breaks the rule.
Practise it
This lesson has Excel's Data Validation box, with its Settings, Input Message and Error Alert tabs, above a practice sheet: set drop-down lists and limits as you would in Excel, and each task is checked as you go.
Open the Data validation: drop-down lists, limits and messages lesson (Pro)
Part of Excel tables, sorting and data validation practice: every lesson on the topic, with a project in Excel.
Once the choices are tidy, they're easy to count with COUNTIF and to colour with conditional formatting.
Questions
How do I add an item to a drop-down list in Excel?
If the choices are typed into Source, open Data › Data Validation and add the new one with a comma before it. If Source points at cells, type the new item in the cell under the list, then change Source to take in that row. A list set up to grow by itself, from a table column or a UNIQUE formula as shown above, needs no change.
How do I remove a drop-down list in Excel?
Select the cells with the drop-down, go to Data › Data Validation and click Clear All, then OK. It's the same in Excel for Mac. The values already chosen stay in the cells as plain text. To find every cell with a drop-down first, use Home › Find & Select › Data Validation on Windows.
How do I restrict what can be typed in an Excel cell?
Use Data Validation without a list. In Data › Data Validation, set Allow to Whole number, Decimal, Date, Time or Text length and give the limits, such as a whole number between 0 and 100. On the Error Alert tab, choose Stop so Excel won't accept anything else. It checks typing only, not pasting.
How do I copy a drop-down list to other cells?
Copy a cell that has the drop-down, select the cells that need it, then use Paste Special and choose Validation. That copies the drop-down without the value. Dragging the fill handle down also copies it, but it copies the value too. If Source uses a range, lock it with $ so every copy points at the same list.