Skip to content

Lesson 22 of 92 · Free Excel Course

Excel

How to Create a Drop-Down List in Excel (and Other Data Validation Rules)

Make an Excel drop-down list from typed items or a range, add input messages and error alerts, build dependent lists, and block bad entries. Practice file.

A drop-down list turns a cell into a menu. Instead of typing "Marketing", "marketing" or "Markting", people click an arrow and pick the right word, so your totals, filters and lookups all work. Drop-downs are one part of a feature called data validation, which can also limit a cell to whole numbers, dates in a range, a maximum length, or anything a formula can test. This lesson builds a small office-supply order sheet and adds a rule to every column, ending with a second drop-down that changes depending on the first.

Create a drop-down list

Here's the order sheet. The departments people may choose from are kept on a second sheet called Lists, in A2:A5.

A2Finance
ABCDE
1DepartmentsPaperInkFurniture
2FinanceCopy paperBlack tonerChair
3MarketingSticky notesColor tonerDesk lamp
4SalesEnvelopesPensMonitor stand
5IT
PracticeLists
The Lists sheet. A2:A5 holds the department choices; C1:E4 holds the items for each category, used later for the dependent list.

To put a department drop-down in column B of the Practice sheet:

  1. On the Practice sheet, select the cells that should get the arrow, such as B2:B20.
  2. On the Data tab, in the Data Tools group, click Data Validation.
  3. On the Settings tab, open Allow and choose List.
  4. Click in the Source box, then click the Lists tab and drag over A2:A5 (leave out the heading). The box shows =Lists!$A$2:$A$5.
  5. Keep In-cell dropdown ticked. Ignore blank lets the cell be left empty.
  6. Click OK.

Click any cell in B2:B20 and a small arrow appears beside it. Click the arrow, or press Alt+Down arrow, to open the list.

B5
ABCD
1Order IDDepartmentCategoryQty
21001FinancePaper10
31002MarketingInk2
41003SalesFurniture75
5
6Finance
7Marketing
8Sales
9IT
PracticeLists
B5 is selected and its list is open (the shaded choices below it). Click one and it's entered in B5.

Typed list or range?

For a short list that never changes, skip the Lists sheet and type the choices straight into Source, separated by commas: Yes,No. That's how the Approved? column (G) works in the practice file.

For anything longer, or anything that might change, use a range. Then you edit the list in the cells, not in a dialog. Keep the $ signs Excel adds ($A$2:$A$5) so the source stays put when the rule is applied to many cells.

Make it grow by itself. A plain range won't include a new department typed in A6. Turn the list into an Excel table first: click a cell in A1:A5, press Ctrl+T, tick My table has headers, and click OK. Then point the Source at the table's cells. Microsoft notes that drop-downs based on a table update automatically as items are added or removed.

Edit or remove a drop-down

Change the choices. If the list comes from cells, just edit those cells. To change the Source itself, select one cell with the drop-down, open Data > Data Validation, edit Source, and tick Apply these changes to all other cells with the same settings so every matching cell is updated, then click OK.

Remove it. Select the cells, open Data Validation, click Clear All on the Settings tab, and click OK. Whatever was already chosen stays in the cells; only the rule and the arrow go. Not sure where the drop-downs are? Press Ctrl+G, click Special, choose Data validation and All, and every validated cell on the sheet is selected. (Home > Find & Select > Data Validation does the same.)

Input messages and error alerts

Two more tabs in the same dialog make a drop-down friendlier and stricter.

Input Message shows a little note whenever someone clicks the cell. Tick Show input message when cell is selected, add a title such as "Department" and a message such as "Pick from the list", and click OK. Microsoft limits the message to 225 characters.

Error Alert decides what happens when someone types something that's not allowed. Leave Show error alert after invalid data is entered ticked, type your own title and message (or leave them blank for Excel's default text), and choose a Style:

StyleWhat the person can doUse it when
StopRetry or Cancel. The entry can't be kept.The value must be on the list
WarningYes keeps it, No goes back to edit, Cancel removes itUnusual values are possible but worth a second look
InformationOK keeps it, Cancel removes itYou just want to nudge

Stop is the default and the only one that truly blocks bad data. With Warning or Information, "Markting" can still end up in your list.

Other validation rules: numbers, dates, length and formulas

A list is only one choice in the Allow box. Pick another and the boxes below change to match. Each one also uses the Data box, where you choose a test such as between, greater than or less than or equal to.

  • Whole number between 1 and 50, for a quantity. 75 or 2.5 are rejected.
  • Decimal, for prices or weights.
  • Date between 1/1/2026 and 12/31/2026, so nobody types last year by mistake. The limits can be formulas, such as =TODAY() as the start date to allow only future dates.
  • Time, for shift starts and ends.
  • Text length less than or equal to 30, for a short description or a code that must be exactly 6 characters (equal to 6).
  • Custom, where you type any formula that returns TRUE for good entries.

The most useful custom rule blocks duplicates, such as a second order with the same ID. Select A2:A20, choose Custom, and enter:

=COUNTIF($A:$A,A2)=1

It counts how many times the new value appears in column A; if it's more than once, the entry fails. Write the formula for the top cell of your selection (A2) and Excel adjusts it for the rest. (The previous lesson, Find and remove duplicates, explains this COUNTIF trick, and COUNTIF, SUMIF and AVERAGEIF covers the function itself.)

Dependent drop-down lists

Now the clever part: an Item drop-down that shows only paper items when the category is Paper, and only ink items when it's Ink. It uses named ranges and the INDIRECT function, which turns a piece of text into a reference.

  1. On the Lists sheet, select C1:E4 (the three category headings plus their items).
  2. On the Formulas tab, click Create from Selection. Tick Top row only and click OK. Excel creates three names: Paper (C2:C4), Ink (D2:D4) and Furniture (E2:E4).
  3. On the Practice sheet, select C2:C20 and add a List rule with Source =Lists!$C$1:$E$1. That's the Category drop-down.
  4. Select D2:D20 (with D2 as the active cell) and add a List rule with Source =INDIRECT(C2). Leave C2 without $ signs so each row looks at its own category.
  5. Click OK. If C2 is still empty, Excel may warn that the source currently evaluates to an error; click Yes to keep the rule.

Pick Ink in C13 and the D13 arrow shows Black toner, Color toner and Pens. Change it to Furniture and the list switches to Chair, Desk lamp and Monitor stand.

Names can't contain spaces, so a category like "Office Furniture" won't match a name; use one word or an underscore (Office_Furniture) in both places. Changing the category later doesn't clear the item already chosen, so check the pair after edits.

Circle invalid data and copy rules to other cells

Validation only checks what people type. Microsoft points out that pasted or filled values skip the check, and rules added to cells that already hold data don't flag the old entries. To find them:

  1. Add your rules.
  2. Click the arrow under Data Validation (in Data > Data Tools) and choose Circle Invalid Data.
ABCDEFG
1Order IDDepartmentCategoryItemQtyNeeded byApproved?
21001FinancePaperCopy paper1012/1/2026Yes
31002MarketingInkColor toner212/3/2026No
41003SalesFurnitureChair7512/5/2026Yes
51004ITPaperEnvelopes512/8/2025Yes
61002FinanceInkPens2012/10/2026Yes
71006MarktingFurnitureDesk lamp312/12/2026No
81007SalesPaperSticky notes012/15/2026Maybe
The seven cells Excel circles (shown here in red): both copies of ID 1002, a quantity of 75 and of 0, a 2025 date, the Markting typo, and Maybe.

Excel draws a red oval around each failing cell. Fix one and its circle disappears; Clear Validation Circles in the same menu removes the rest.

Copy just the rule. To give more cells the same drop-down without copying their contents, copy a validated cell, select the targets, then choose Home > Paste > Paste Special (or press Ctrl+Alt+V), pick Validation, and click OK. Normal copy and paste also brings the rule, but it overwrites the values and formatting too.

On a Mac and in Excel for the web

Mac: the steps are the same: Data tab, Data Validation, Allow List. When you click in Source to select a range, the dialog shrinks out of the way; press Return or click the expand button to bring it back. Paste Special on a Mac also has a Validation option.

Excel for the web: go to Data > Data Validation. The tabs are similar, but the Input Message tab uses a Show message check box and the Error Alert tab has Show Alert and a Type box instead of Style. Dependent lists built with INDIRECT are less reliable in the browser; if one won't save, set it up in desktop Excel and the file then works online. If you can't find Circle Invalid Data in the browser, open the file in the desktop app.

Searchable lists: in current Microsoft 365 you can type in a drop-down cell and the list narrows to items that contain those letters anywhere. Excel 2019 and earlier don't do this.

Try it yourself

Download the practice workbook. The first sheet, Your task, has the full steps; yellow rows on Practice are for testing your rules.

  1. Add the Department drop-down to B2:B20 from =Lists!$A$2:$A$5.
  2. Give G2:G20 a typed list: Yes,No.
  3. Limit E2:E20 to whole numbers 1 to 50, and F2:F20 to dates in 2026 with an input message.
  4. Block duplicate IDs in A2:A20 with =COUNTIF($A$2:$A$20,A2)=1 and a Stop alert. Try typing 1001 in A13.
  5. Build the dependent Category and Item lists.
  6. Run Circle Invalid Data. You should see seven circles; compare with the red cells on Answer key.
  7. Copy B2 to I2 with Paste Special > Validation, then clear the rule from G2:G20.

Common mistakes

  • Including the heading in Source. Selecting A1:A5 puts "Departments" in the list. Start at A2.
  • A list that doesn't grow. New items below a plain range are ignored. Use a table, or widen the Source.
  • Using Warning when you meant Stop. Only Stop blocks bad entries.
  • Trusting pasted data. Paste skips validation and can even replace the rule. Run Circle Invalid Data after big pastes.
  • Spaces in dependent-list names. INDIRECT can't find "Office Furniture"; use an underscore.
  • Locking the INDIRECT cell. =INDIRECT($C$2) makes every row follow C2. Use =INDIRECT(C2).
  • Blank cells in the source range. They show up as empty choices. Keep the list tight.
  • Protected or shared sheets. Microsoft notes you can't change validation settings while the sheet is protected or the workbook is shared.

What's next

Your sheets now guide people to the right entries and catch the wrong ones. Next, Conditional formatting colours cells by their values so problems and highlights jump out. Missed the last lesson? See Find and remove duplicates, or go back to the full Excel course.

Frequently asked questions

How do I create a drop-down list in Excel?

Select the cells, go to Data > Data Validation, set Allow to List, and either type the choices separated by commas (Yes,No) in Source or select a range of cells that holds them. Leave In-cell dropdown ticked and click OK.

How do I add an item to an existing drop-down list?

If the list comes from cells, type the new item into that range. If the range is an Excel table, the drop-down picks it up automatically; if not, open Data Validation and extend the Source range to include it. For a typed list, edit the text in Source.

How do I remove a drop-down list?

Select the cells, go to Data > Data Validation, click Clear All on the Settings tab, then OK. The values already in the cells stay; only the arrow and the rule go. To find every validated cell first, press Ctrl+G, click Special and choose Data validation.

Why can I still type something that isn't in my drop-down list?

Either the Error Alert style is set to Warning or Information, which let people keep the entry, or Show error alert after invalid data is entered is unticked. Set the style to Stop to block it. Note that pasted values aren't checked at all; use Circle Invalid Data to catch them.

How do I make a drop-down list that depends on another cell?

Name each sub-list after its category (Formulas > Create from Selection > Top row), then give the second column a List rule with a Source like =INDIRECT(C2). When C2 says Ink, the second drop-down shows only the range named Ink.

Can I search in an Excel drop-down list?

In current Microsoft 365, yes: click the cell and start typing, and the list narrows to items that contain what you typed, anywhere in the item. Older versions such as Excel 2019 only let you scroll the list.