Data Validation in Excel
Data Validation in Excel
Data Validation Example | Create Data Validation Rule | Input Message | Error Alert | Data
Validation Result
Use data validation in Excel to make sure that users enter certain values into a cell.
Data Validation Example
In this example, we restrict users to enter a whole number between 0 and 10.
2. On the Data tab, in the Data Tools group, click Data Validation.
2. Enter a title.
2. Enter a title.
4. Click OK.
Note: to remove data validation from a cell, select the cell, on the Data tab, in the Data Tools group,
click Data Validation, and then click Clear All. You can use Excel's Go To Special feature to quickly
select all cells with data validation.
Apply data
validation to cells
Use data validation to restrict the type of data or the
values that users enter into a cell. One of the most
common data validation uses is to create a drop-down
list.
3. On the Settings tab, under Allow, select an option:
Whole Number - to restrict the cell to accept
decimal numbers.
List - to pick data from the drop-down list.
More on data
validation
Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel
2013 Excel 2010 Excel 2007
Note: This is an advanced topic on data validation. For an introduction to data validation, and how
to validate a cell or a range, see Add data validation to a cell or a range.
WindowsmacOSWeb
Notes:
Why should you put your data in a table? When your data is in a table, then as you add or
remove items from the list, any drop-downs you based on that table will automatically
update. You don't need to do anything else.
Now is a good time to Sort data in a range or table in your drop-down list.
2. Click Data >Data Validation.
3. On the Settings tab, click Clear All.
4. Click OK
If you need to remove all Data Validation from a
worksheet, including drop-down lists, but you don't
know where they are, then you can use the Go To
Special dialog. Press Ctrl+G > Special, then Data
Validation > All or Same, and repeat the steps above.