Skip to main content

How to Create a Drop-Down List in Excel for the Web

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

A drop-down list makes people pick from set choices instead of typing, so the same department is never spelt two ways. In Excel for the web it's a Data Validation rule: Data → Data Validation → Allow: List, with the choices typed in Source.

The example is the Department column of the old overtime timesheet from Part 1 of the Overtime Timesheet series, which has two departments.

Prerequisites​

  • A workbook open for editing in Excel for the web, and the cells that should get the list.

Step 1: Select the Cells​

Select the cells that should offer the list: B2:B15, the Department column under its heading.

Step 2: Open Data Validation​

Select the Data tab:

The ribbon tabs of Excel for the web with the Data tab outlined in red between Formulas and Review

In the Data Tools group, select Data Validation:

The Data tab with Get & Transform Data, Queries & Connections, Data Types, Sort & Filter and Data Tools groups, Data Validation outlined in red in Data Tools, and the Department cells B2 onwards selected in the table below

Step 3: Set Up the List​

On the Settings tab of Data Validation:

  1. Allow: List.
  2. Source: the choices, separated by commas, Emergency Department,Radiology.
  3. Keep Ignore blank and In-cell drop-down ticked.

Then select Apply:

The Data Validation dialog with Allow set to List, Source Emergency Department,Radiology, Ignore blank and In-cell drop-down ticked, and Apply outlined in red

Microsoft's Apply data validation to cells points out that In-cell drop-down must stay ticked, or you won't see the arrow next to the cell.

Step 4: Use the List​

Select a cell in the column. An arrow appears at its right; select it to see the choices:

Cell B3 selected with Emergency Department in it and its drop-down open, listing Emergency Department and Radiology

With the cell selected, Alt+Down arrow opens the list from the keyboard.

Common Mistakes​

MistakeWhat happensDo this instead
Selecting only one cellOnly that cell gets the listSelect every cell that needs it
Spelling a choice differently from the data already in the columnExisting entries don't match the listCopy the choices from the data exactly
Clearing In-cell drop-downThe rule works but there's no arrowKeep it ticked

Troubleshooting​

SymptomLikely causeFix
No arrow on the cellIn-cell drop-down is cleared, or the cell isn't in the selectionReopen Data Validation and check
Existing values that aren't in the list stayValidation checks new entriesCorrect old values by hand

FAQ​

Can the choices come from cells instead?​

Yes. Source also takes a range of cells, which is handier when the list is long or changes.

What happens if someone types something else?​

The Error Alert tab decides: by default, Excel refuses values that aren't in the list.

Conclusion​

Select the cells, Data → Data Validation, Allow: List, type the choices with commas, and Apply. Each cell then offers the list.

Additional Resources​