Excel data validation restricts what people can type into a cell, so mistakes are caught at the point of entry instead of surfacing in a broken report. Used well, it turns a fragile spreadsheet into one your team and your dashboards can rely on. This guide covers what data validation is, where to find it, how drop-down and dynamic lists work, how to write custom-formula rules and how to stop invalid data slipping through.
Table of Contents
What is data validation in Excel?
Data validation in Excel is a rule you attach to a cell that controls what can be entered, such as a number in a range, a date or a list item. Microsoft’s guidance calls it a way to restrict the type of data or values users enter, which keeps the reports that depend on it reliable.
Validation earns its keep most when a spreadsheet is not the final destination. In many of the workbooks we build, the data flows onward into a report or a Power BI dashboard and a single inconsistent entry there becomes a wrong total in front of the leadership team. That is why clean input is not a nice-to-have. In an IBM analysis, 43% of chief operations officers named data quality their most significant data priority. Validation is the cheapest place to protect it, because catching a bad entry as it is typed costs nothing, while cleaning it out of a report later costs hours. It is also the first habit we teach when a business wants more from its spreadsheets, part of the wider picture in our guide to using Excel for business.
How do you add data validation in Excel?

To add data validation, select the cells, open the Data tab and choose Data Validation, then pick what to allow on the Settings tab. Excel offers whole number, decimal, list, date, time, text length and custom rules, plus an optional input message and an error alert that warns or blocks a bad entry.
The full path is quick once you know where it lives.
- Select the cell or range you want to control.
- On the Data tab, in the Data Tools group, select Data Validation.
- On the Settings tab, under Allow, choose the rule type, for example List or Whole number.
- Set the criteria, such as the source list or the number range.
- Optionally add an Input Message to guide users and an Error Alert to warn or block invalid entries, then select OK.
Each Allow option restricts a different kind of entry and Microsoft lists seven. In the workbooks we build, List and Custom do most of the work and the Error Alert style is the setting teams most often skip. The table below shows what each one is for, so you can match the rule to the field.
| Validation type | Restricts entries to | Common use |
|---|---|---|
| Whole number | Whole numbers only, optionally within a range | Quantities, counts, ages |
| Decimal | Numbers with decimals, optionally within a range | Prices, percentages, rates |
| List | Items from a set list, shown as a drop-down | Statuses, categories, territories |
| Date | Dates only, optionally within a range | Start and due dates |
| Time | Times only, optionally within a range | Appointment or shift times |
| Text length | Text of a set length | Codes, phone numbers, reference IDs |
| Custom | Anything a TRUE or FALSE formula can define | No duplicates, patterns, cross-cell checks |
How do Excel drop-down lists fit into data validation?
A drop-down list is the List type of data validation. Instead of typing, users pick from a set of valid options, which removes spelling variants and typos in one move. It is the most popular form of validation because it is the easiest for staff to use and the most effective at keeping categories consistent for reporting.
To build one, choose List under Allow, then point the Source at your range of valid values. A common example is a Status field. Without a list, staff type variants like Comp, completed and Complete and the report breaks because Excel treats each as a different value. A drop-down makes only the valid selections possible. Pair it with conditional formatting to colour each status and you guide people to enter the right value the right way. Drop-downs have enough depth to warrant their own walkthrough, so for the full build, including dependent and searchable lists, see our guide to Excel drop-down lists.
How do you make data validation dynamic with tables and named ranges?

Static validation lists break the moment someone adds a new option, because the source range does not stretch to include it. The fix is to base the list on an Excel table or a named range. Microsoft’s Excel documentation notes that structured table references expand and contract automatically as the table grows, so your drop-downs stay current.
The build is straightforward and pays for itself the first time the list changes.
- Put your valid values in an Excel table on a hidden admin sheet, so no one edits them by accident.
- Give the table and its column clear names, for example a Categories table with a Category column.
- Define a named range that points at that column.
- Use the named range as the Source in the List validation.
Now, when the business adds a category, every drop-down linked to that table updates on its own. This is the pattern we reach for whenever a client needs to maintain their own lists without touching a formula and it is a large part of building spreadsheet solutions that survive contact with a busy team. It keeps entries consistent across dashboards, trackers and reporting sheets as the data grows.
How do custom-formula validation rules work?
A custom rule validates a cell with a formula that must return TRUE for the entry to be allowed. This is how you enforce anything beyond a simple list or range, such as no duplicates, a text pattern or a date that must follow another cell. Any TRUE or FALSE formula can be a validation rule.
These are the custom rules we use most often in client workbooks. Each formula goes in the Custom box under Data Validation, written against the first cell in your selection.
| Goal | Formula example | What it does |
|---|---|---|
| Reject duplicates | =COUNTIF($A$1:$A$100,A1)=1 | Blocks a value that already appears in the range, for unique IDs or invoice numbers |
| Number within a range | =AND(ISNUMBER(A1),A1>=1,A1<=100) | Allows only numbers from 1 to 100, protecting scores or quantities |
| Must contain set text | =ISNUMBER(SEARCH(“INV”,A1)) | Requires the entry to include INV, keeping invoice codes consistent |
| Date after another cell | =A1>$B$1 | Forces an end date to fall after the start date held in B1 |
| Fixed length | =LEN(A1)=10 | Enforces a 10 digit value, useful for phone numbers or account codes |
A custom rule is only as reliable as the formula behind it, so we test each one in a spare cell first, confirm it returns TRUE and FALSE where expected, then move it into the validation. Microsoft’s developer guidance uses the same ISNUMBER and SEARCH pattern for text checks, which is a good sign it is the sensible way to do it. Keep the formulas short, document what each one is for and combine them with protection so nobody quietly overrides them.
Why does invalid data still get through and how do you stop it?
The catch with data validation is that it only checks values typed directly into a cell. Microsoft’s documentation is explicit that the messages do not appear when data is copied or filled, so a paste can overwrite a rule silently. To keep a sheet clean you combine validation with sheet protection and Excel’s Circle Invalid Data tool.
Three habits close the gap. First, protect the validated cells and lock down where people can paste, so a copy from an email cannot flatten your rules. Second, use Circle Invalid Data on the Data Validation menu to highlight any entry that already breaks a rule. Fix the entry and the circle clears on its own. Third, choose the right error alert style: Stop blocks the entry outright, while Warning and Information let it through with a prompt. One more thing to know is that you cannot change validation settings while a workbook is shared or protected, so plan the rules before you lock it. These are the details that separate a spreadsheet people trust from one that quietly fills with bad data, a theme we cover more broadly in building Excel spreadsheets people actually want to use.
How we used data validation to protect a Power BI dashboard

For a Queensland medical practice, clinic information typed into Excel fed a Power BI dashboard for the leadership team. Inconsistent entries broke the dashboard and forced staff to re-clean the same data by hand. We rebuilt the workbook around data validation so errors were caught at entry, before they ever reached Power BI.
The fix was a layer of validation matched to how the team actually worked. Drop-down lists replaced free text on the fields that fed the report. Dependent lists narrowed the options based on earlier selections and custom-formula rules caught the entries a plain list could not. On top of that we added error highlighting, so a value that broke a rule lit up as it was entered rather than being discovered days later in the dashboard. The point we kept coming back to is that validation matters most at the boundary between a spreadsheet and a reporting tool, because that is where one bad cell becomes a wrong number in front of decision makers.
The outcome was qualitative but clear. There were fewer errors overall. The ones that did occur were identified before they reached Power BI and staff across the team spent far less time cleaning data up. That is the quiet return on validation done properly. It protects the Power BI reporting that sits downstream and it is the kind of work we do inside our wider reporting and analytics practice.
Frequently asked questions
How do you remove data validation in Excel?
Select the cells that carry the rule, open the Data tab, choose Data Validation, then select Clear All and OK. To strip it from a whole sheet, press Ctrl plus A to select every cell first, then clear it. If you are not sure where validation lives, use Home, Find and Select, Go To Special, Data Validation to highlight every cell that has a rule before you clear it.
Where is data validation in Excel?
Data validation sits on the Data tab of the ribbon, in the Data Tools group, as a button labelled Data Validation. Select the cells you want to control first, then open it to reach the Settings, Input Message and Error Alert tabs. It is in the same place across recent desktop versions of Excel and in Excel for the web under the Data tab.
Why is my Excel data validation not working?
The most common reason is that validation only checks values typed into a cell. Microsoft states the messages do not appear when data is copied or filled, so a paste can bypass the rule. Other causes are a formula error such as #REF! in the validated cell, which Excel then ignores, or a workbook that is shared or protected, which locks the settings. Check those three first.
Does data validation stop someone pasting over it?
Not on its own. Data validation is designed to warn and block only when someone types directly in a cell, so pasting a value can overwrite the rule without a prompt. To close that gap, protect the validated cells, restrict where paste is allowed and run Circle Invalid Data now and then to catch anything that slipped in. Validation plus sheet protection is what actually holds the line.
What is the difference between data validation and conditional formatting?
Data validation controls what can be entered into a cell. Conditional formatting changes how a cell looks based on its value. Validation prevents bad data, formatting highlights it. They work well as a pair, a drop-down to keep entries valid and a colour rule to flag anything unusual at a glance. Use validation to stop the error and formatting to draw the eye to what still needs attention.
Can you create a dependent drop-down list in Excel?
Yes. A dependent, or cascading, drop-down narrows the second list based on the first choice, for example picking a region and then seeing only the sites in that region. You build it with named ranges and a lookup so the second list points at the right set of values. It is one of the most useful validation patterns for structured data entry and we cover the full method in our Excel drop-down lists guide.
Building spreadsheets your dashboards can trust
Excel data validation is a small habit with an outsized payoff. A few well-placed rules, backed by dynamic lists, custom formulas and sheet protection, are the difference between a spreadsheet people trust and one someone cleans up by hand every week. It matters most where the data moves on, into a report or a dashboard, because that is where a single bad entry does the most damage.
If your team relies on a spreadsheet that keeps filling with inconsistent data, or one that feeds a report you cannot fully trust, that is the work we do every week for Australian organisations. Book a free call and we will look at your workbook and the cleanest way to make the data reliable, with no obligation.

