How-to recipes · Workbooks and sheets

How to create a drop-down list in Excel

Add a drop-down list to cells with Data Validation, use a typed list, a range, a table or a sorted UNIQUE list as the source, and add input and error messages.

Beginner UNIQUE SORT COUNTIF INDIRECT

Free typing is the enemy of clean data: Sales, sales, Sales dept and Slaes end up as four different departments in your PivotTable. A drop-down list lets people pick from approved values instead of typing them, which keeps reports, lookups and totals correct. Excel builds drop-down lists with Data Validation, available in every version, and Microsoft 365 adds a neat way to generate the list automatically from existing data.

Step by step: a simple list

  1. Select the cells that should get the drop-down, for example C2:C100.
  2. Go to Data > Data Tools > Data Validation (Alt, A, V, V).
  3. On the Settings tab, set Allow to List.
  4. In Source type the options separated by commas: Open,In progress,Done. (In some regional settings the separator is a semicolon.)
  5. Keep In-cell dropdown ticked and click OK.

Each selected cell now shows an arrow when selected. Typing a value that is not in the list is rejected with an error message. Typed lists are fine for a few fixed options that rarely change.

Using a range as the source

For longer lists, or lists that change, put the options in cells, for example on a sheet called Lists, and point the Source box at them: =Lists!$A$2:$A$6. Better still, format the list as an Excel table (Ctrl+T) and give the column a name with Formulas > Define Name, for example DeptList referring to =Departments[Department]. Then use =DeptList as the source. New items added to the bottom of the table appear in the drop-down automatically. See Named ranges: give cells meaningful names and Excel tables and structured references.

Microsoft 365: build the list from your data

If the options already exist somewhere in your data, generate a clean, sorted list with SORT and UNIQUE, then use the spilled range as the source:

C2fx=SORT(UNIQUE(A2:A8))
ABC
1Department
2SalesFinance
3FinanceHR
4ITIT
5SalesSales
6HR
7IT
8Finance

Seven entries, four distinct departments, sorted A to Z.

In the Data Validation Source box, type =$C$2#. The # means the whole spilled range, so when a new department appears in column A, it is added to the list and the drop-down grows with it. This works in Microsoft 365 and Excel 2021; in Excel 2016 and 2019, maintain the list with Remove Duplicates or use a table as above.

Input and error messages

  • Input Message tab: a hint shown when the cell is selected, such as Choose the department responsible.
  • Error Alert tab: the message when someone types an invalid value. Stop blocks the entry, Warning asks for confirmation, Information only informs. Use Stop for data that feeds reports.

Finding and changing drop-downs later

To see which cells have validation, use Home > Find & Select > Data Validation. To change the list, select one cell with the drop-down, open Data Validation, edit the source and tick Apply these changes to all other cells with the same settings. To remove it, choose Clear All in the same dialog.

Checking existing data

Validation only checks new entries; values typed before the rule existed are not changed. Use Data > Data Validation > Circle Invalid Data to mark them, or count them with a formula: =SUMPRODUCT(--(COUNTIF(DeptList,C2:C100)=0),--(C2:C100<>"")) counts filled cells whose value is not in the list (COUNTIF).

Pitfalls

  • Pasting bypasses validation. Copying a value from elsewhere into the cell overwrites the rule along with the value. Protect the sheet or check with Circle Invalid Data.
  • Typed lists and commas. An option that contains a comma ("Smith, John") cannot be used in a typed list; use a range instead.
  • Blank cells in the source range appear as empty choices. Use a table or the UNIQUE approach, which handles length automatically (filter out blanks with FILTER if needed).
  • Hidden source sheet. Keeping the list on a hidden sheet is fine, but document it; colleagues may otherwise delete the sheet and break every drop-down.
Tip. For a second list that depends on the first choice (country, then city), see How to create a dependent drop-down list in Excel. The full set of validation options is covered in Data validation: drop-down lists and dependent lists.
⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 12 KB

More how-to recipes