Excel Data Validation: A Step-by-Step Guide
In this article
Data validation in Excel lets you control what can be typed into a cell, so you get a dropdown list, a whole number, a date within a range, or a custom rule instead of free text. The quickest version is: select the cells, open the Data tab, click Data Validation, pick an Allow type, set the rule, and click OK. Everything below builds on that, including the mistakes that make the dropdown disappear and the fixes when a rule refuses to save.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web. The Data Validation dialog is in all three; the exact button labels can differ slightly by version and region.
- The cells you want to validate, and a clear idea of what a valid entry looks like (a list of options, a number range, a date range, or a formula).
- If you want a dropdown, the list of allowed values typed somewhere in the workbook, or typed directly into the dialog separated by commas.
Step-by-Step
- Select the cells first. Drag over the range you want to restrict. If you select an entire column, the rule applies to every cell below, including the header, so select the data rows only. You can always add more ranges later.
- Open the Data Validation dialog. Go to the Data tab and click Data Validation. On the ribbon it usually sits in the Data Tools group. Keyboard shortcut: Alt, then A, then V, then V on Windows. On Mac, use the Data menu and choose Data Validation.
- Choose what is allowed. On the Settings tab, open the Allow dropdown. Common choices are Whole number, Decimal, List, Date, Time, Text length, and Custom. Pick the one that matches your rule. For a dropdown list, choose List.
- Set the rule itself. The fields change with the Allow type. For Whole number, choose between, greater than, less than, and so on, then type the limits. For Date, type real dates such as 1/1/2025, not text. For Text length, set the minimum and maximum character counts.
- Build a dropdown list. With List selected, click in the Source box. Either type the options separated by commas (for example Yes,No,Maybe) or click the range selector and highlight the cells that hold the list. If the list lives on another sheet, use a defined name or an Excel Table reference; older versions of Excel reject a direct cross-sheet range in the Source box.
- Decide how strict to be. Leave Ignore blank checked if empty cells should be allowed. Leave In-cell dropdown checked so the arrow appears. On the Error Alert tab, keep Show error alert after invalid data is entered so bad entries are blocked. Choose Stop to reject the entry, Warning to allow it after a confirmation, or Information to show a message but accept anything. Write a short, specific error message.
- Add an input message (optional but useful). On the Input Message tab, tick Show input message when cell is selected and type a hint such as "Pick a region from the list." It appears when the cell is selected, before anyone types.
- Click OK and test it. Type a valid value and an invalid one. The invalid entry should be blocked or flagged. If nothing happens, the rule was probably applied to different cells than the ones you are testing, or the workbook already contains invalid data that Excel did not re-check.
- Copy the rule to other cells. Select a cell that already has the validation, copy it, select the destination cells, and use Paste Special > Validation. Plain paste also carries validation, but Paste Special > Validation avoids overwriting formats and contents.
- Find existing validation later. Select the range and open Data Validation again. If cells have different rules, Excel shows a blank dialog; use Home > Find & Select > Go To Special > Data Validation to highlight only the cells that have rules.
Common Mistakes
- Selecting the header row. The header then gets the same rule and may block typing a title. Select data rows only.
- Typing dates or numbers as text. A date rule compares real dates; "Jan 1" typed as text will fail. Use the same date format the sheet uses.
- Using a cross-sheet range directly in Source. Many Excel versions reject it. Put the list on the same sheet, or create a defined name or Table and refer to that.
- Forgetting the comma separator. In a typed list, use commas with no spaces, or the spaces become part of the option.
- Expecting validation to clean old data. Adding a rule does not remove or flag values already in the cells. Use Circle Invalid Data from the Data Validation dropdown to see them, then fix them manually.
- Assuming validation is security. Anyone can copy a cell without validation into the range, or paste over it. For protection, also lock the sheet with Review > Protect Sheet.
Tips
- Keep dropdown lists in an Excel Table so the list grows automatically when you add items. Point the Source at the table column.
- Use the Custom allow type with a formula for rules the built-in types cannot express, such as "must start with INV-" using =LEFT(A1,4)="INV-".
- Add a clear input message and error message. A message that says what is wrong and what is allowed reduces back-and-forth.
- Test on a copy of the workbook before applying rules to a shared file, and note that validation does not sync to other apps that open the file, such as some mobile viewers.
- If you need a rule on many sheets, set it up once, then copy the cell and use Paste Special > Validation across sheets.
Troubleshooting
- The dropdown arrow is missing. Reopen Data Validation and confirm In-cell dropdown is ticked and the Allow type is List. Also check the cell is not merged in a way that hides the arrow.
- Valid entries are rejected. Check the rule's operator and limits, and confirm the entry type matches (a number rule rejects text). For dates, confirm the cell is formatted as a date, not text.
- The dialog will not accept the Source range. Move the list to the same sheet, or define a name for it and type that name in Source.
- Validation vanished after pasting. Pasting content over the cells replaces the rule. Reapply it, or paste values only into a separate area and copy the validated cells back.
- Old invalid entries remain. Use Circle Invalid Data to find them, then correct or delete them. Validation only checks new typing.
- The file behaves differently on another device. Excel for the web and mobile apps support the main validation types but may not show every message or option exactly as the desktop app does. Open it in desktop Excel to confirm the rule.
Frequently Asked Questions
Can I apply validation to cells that already contain data?
Yes, but existing values are not checked or removed. Use Circle Invalid Data to highlight entries that break the new rule, then fix them.
Why does my dropdown list show a blank option?
Usually the Source range includes an empty cell, or Ignore blank is on and the cell is empty. Trim the range so it covers only the list items.
Can I copy validation without copying the cell contents?
Yes. Copy a validated cell, select the destination, and use Paste Special > Validation. This pastes only the rule.
Does data validation stop someone from pasting invalid data?
No. Pasting bypasses validation. To prevent edits, protect the sheet with Review > Protect Sheet and unlock only the cells that should be editable.
Can I use a list from another worksheet?
Yes, but not by pointing the Source box directly at another sheet in many versions. Create a defined name for the list or put it in an Excel Table, then refer to that name in Source.
Is data validation the same as conditional formatting?
No. Validation controls what can be entered; conditional formatting only changes how cells look based on their values. They are often used together.