Use Data Validation in Excel to Control Input and Create Drop-downs

Set rules on cells so users can only enter valid values. Create drop-down lists, restrict numbers, dates or text length, and show input messages or error alerts to keep spreadsheets consistent.

What the video covers

Show how to apply data validation to cells in a worksheet to restrict input types, create drop-down lists from typed values or a worksheet range, and add input messages and error alerts.

Watch the video on YouTube

Step-by-step instructions

  1. Select the cells to control
    Open your Excel workbook and highlight the cell or range where you want to restrict input (single cells, a column, or many nonadjacent cells).
  2. Open Data Validation
    On the ribbon, open the Data tab and choose Data Validation to open the dialog with Settings, Input Message, and Error Alert tabs.
  3. Choose a validation type
    On the Settings tab, pick an option from Allow (for example Whole number, Decimal, Date, Time, Text length, or List) and then set the specific criteria (e.g., between, greater than), and enter the limits or formula if needed.
  4. Create a drop-down list
    To make a selectable list choose Allow: List. Enter values separated by commas (e.g., Red,Green,Blue) or click the worksheet and select a range that contains the allowed items (or use a named range) as the Source, then click OK.
  5. Add guidance with an input message
    Optionally use the Input Message tab to show instructions when the user selects a validated cell. Enter a short title and message to explain what to enter.
  6. Configure the error alert
    On the Error Alert tab select an alert Style (Stop, Warning, or Information), add a title and message. Stop prevents invalid entries; Warning/Information allow them with a prompt. Click OK to apply validation.

Watch the video

Video thumbnail for Use Data Validation in Excel to Control Input and Create Drop-downs Play tutorial

Watch on YouTube

Why it matters

Data validation prevents invalid or inconsistent entries, improving data quality for forms, reports, and shared workbooks. Use it to enforce formats (numbers, dates, text length) or to limit choices via lists.

Check your result

Select a validated cell and try entering an invalid value; Excel should block it or show the configured alert. For lists, click the cell and confirm a drop-down arrow appears and only allowed items can be chosen.

Troubleshooting

If the validation appears not to work, ensure you selected the correct cells and that the worksheet is not protected in a way that overrides validation. For list validation using a range, confirm the source range is on the same sheet or is an official named range; check for accidental leading/trailing spaces in list items. If pasted values bypass validation, use the spell-check/clear formats or reapply validation after cleaning pasted data.