Templates, guides & honest tool reviews for small business

Monday, November 30, 2026

Excel Drop-Down List From a Range, and the Validation Behind It

Section: Excel & Google Sheets

Drop-down lists - explanatory illustration for Excel Drop-Down List From a Range, and the Validation Behind It
Illustration: Drop-down lists

An Excel drop-down list is data validation with the Allow box set to List. Select the cells, open Data, then Data Validation, choose List, and point the Source box at a range or type the values separated by commas. The same dialog holds the input message that explains the rule and the error alert that appears when someone breaks it. This guide covers both kinds of list, the three tabs in the dialog, the error styles, the other validation types, the custom formulas Microsoft publishes, and why the command sometimes refuses to open.

What data validation does

Microsoft describes data validation as restricting the type of data or the values that users enter into a cell, with a drop-down list as the familiar example. It does three jobs at once: it limits what can be entered, it explains the limit when the cell is selected, and it complains when the limit is broken.

The limits are not security. Anyone who pastes a value into the cell can bypass a validation rule, so treat it as a guide for people typing, not as protection. Protection is a separate setting on the sheet.

A list typed straight into the dialog

For a short fixed list, type the values in the Source box separated by commas, such as Low,Average,High. Then make sure the In-cell dropdown box is ticked, or the arrow will not appear beside the cell even though the rule exists.

Microsoft's own steps for this case are to select the cells, open Data Validation on the Data tab, choose List under Allow, type the values in Source, keep In-cell dropdown selected, decide on Ignore blank, and then test the cell with a valid and an invalid entry.

A list that comes from a range

A list from a range is the better choice for anything that changes. Microsoft's example puts the cities on a sheet called Cities in A2:A9, deliberately leaving out the header row so the header is not offered as a choice, and then points the Source box at that range.

Microsoft also recommends keeping the list in an Excel Table, because a table-based list updates on its own when items are added or removed. A plain range needs the Source reference widened by hand, which is the usual reason a new product cannot be selected.

Two ways to fill the Source box - explanatory illustration for Excel Drop-Down List From a Range, and the Validation Behind It
Two ways to fill the Source box (explanatory illustration, not a software screenshot).

The three tabs

The dialog is split into Settings, Input Message and Error Alert, and each one has a job:

  • Settings holds the Allow type, the Data condition and the limits, plus the two checkboxes for blank entries and the in-cell arrow.
  • Input Message shows a note when the cell is selected. Microsoft states the title and message are limited to 225 characters.
  • Error Alert sets what happens when invalid data is entered, with its own title, message and style.

Write the input message as an instruction, not a warning: "Pick a region from the list" beats "Invalid entry", because one prevents the error and the other only reports it.

The three error styles

Microsoft describes three behaviours. Stop requires the user to fix the entry before continuing. Warning asks them to confirm with Yes or No before continuing. Information shows the message and lets them proceed once they dismiss it.

The choice is a policy decision, not a technical one. Stop for a field that feeds a calculation, Warning for a value that is unusual but possible, Information for a field where the note is advice. Microsoft notes that if you leave the title and message empty, the default title is Microsoft Excel and the default message says the value entered is not valid.

The three error styles - explanatory illustration for Excel Drop-Down List From a Range, and the Validation Behind It
The three error styles (explanatory illustration, not a software screenshot).

Numbers, dates and text length

List is only one of the Allow options. The others are Whole Number, Decimal, Date, Time and Text Length, each with a Data condition such as between, greater than or less than or equal to.

Microsoft's examples show how far this goes. A date range from today to three days out uses =TODAY() in the Start date box and =TODAY()+3 in the End date box. A text length limit of 25 characters uses Text Length with less than or equal to and 25 in the Maximum box. A whole-number limit can point at another cell, so an entry is allowed only if it stays within the budget in E1.

Custom formulas

Custom is the most flexible Allow type: you write a formula that returns TRUE or FALSE, and the Data box becomes irrelevant. Microsoft publishes five examples worth keeping:

  • A product ID that must start with ID- and be longer than nine characters: =AND(LEFT(C2,3)="ID-",LEN(C2)>9).
  • A cell that must contain text only: =ISTEXT(D2).
  • An age check against a number of years held in another cell: =IF(B6<=(TODAY()-(365*B4)),TRUE,FALSE).
  • A range that must hold unique values: =COUNTIF($A$2:$A$10,A2)=1, entered in A2 first and then copied down so the relative part follows the row.
  • An email address that must contain an @ sign: =ISNUMBER(FIND("@",B4)).

The unique-values formula is the one people get wrong. Microsoft's note is explicit: enter it for the first cell, then copy that cell down, so the A2 in the second argument becomes A3, A4 and so on while the absolute range stays put.

Custom validation formulas - explanatory illustration for Excel Drop-Down List From a Range, and the Validation Behind It
Custom validation formulas (explanatory illustration, not a software screenshot).

Removing validation, and why the command is greyed out

To remove a rule, select the cells, open Data Validation and select Clear All, then OK. The cells keep their current values; only the rule goes.

If Data Validation cannot be selected at all, Microsoft points at two causes: the worksheet is protected, or the workbook is shared. Both have to be undone before the dialog opens. This is the most common "broken Excel" report there is, and it is a setting rather than a fault.

Common problems

  • No arrow beside the cell. The In-cell dropdown box is cleared, or the cell already holds a value that is not in the list.
  • A new item cannot be selected. The list is a fixed range and the Source reference was not widened. Use a table.
  • Validation does not stop a paste. It never does. Validation applies to typing and to some pastes, not to everything.
  • The command is greyed out. The sheet is protected or the workbook is shared.
  • A custom formula rejects every entry. The formula is written for the wrong cell, or it returns a number instead of TRUE or FALSE.
  • Copied validation points at the wrong list. The Source reference was relative. Lock it with dollar signs.
Why Data Validation is unavailable - explanatory illustration for Excel Drop-Down List From a Range, and the Validation Behind It
Why Data Validation is unavailable (explanatory illustration, not a software screenshot).

Questions and answers

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

Data, then Data Validation, Allow List, then a range or comma-separated values in Source.

Can the list come from another sheet?

Yes, through a named range or a table reference. Older versions need the name; current versions accept a direct reference.

Why is my drop-down not showing?

In-cell dropdown is cleared, or the cell contains a value outside the list. Clear the cell and try again.

Can data validation stop duplicates?

Yes, with a custom formula such as =COUNTIF($A$2:$A$10,A2)=1 copied down the range.

Does validation survive a copy?

It copies with the cell, and a relative Source reference will shift with it. Lock the reference before you copy.

Where do I read more about validation rules?

The data validation guide covers the rest of the dialog and the settings that sit behind it.

Official references

العربية