Data Validation in Excel
Data validation in Excel is a useful tool to check if a user has entered the required values in a cell. For instance, you can design a cell in Excel in a way that a user can only enter a numeric value between 5 and 20. Below are steps that you can follow to create this rule.
We will create the rule first, where a user can only enter a numeric value from 5 to 20.
1. Select cell C3.
![data validation example](https://overallmoney.com/wp-content/uploads/2022/03/validation-1.png)
2. From the Data tab, click “Data Validation”.
![click data validation](https://overallmoney.com/wp-content/uploads/2022/03/validation-2.png)
3. From the Settings tab of the Data Validation dialog box, select the whole number and between, and then type in a minimum of 5 and a maximum of 20.
![data validation criteria](https://overallmoney.com/wp-content/uploads/2022/03/validation-3.png)
4. Click the Input Message tab. Type in the title as “County Level Index” and input message as “Please enter a whole number between 5 to 20”.
![enter input message](https://overallmoney.com/wp-content/uploads/2022/03/validation-4.png)
5. Click the Error Alert tab. . Type in the title as “Invalid Entry” and Error message as “Please type in a number within the range”.
6. Click OK.
![Enter Error Message](https://overallmoney.com/wp-content/uploads/2022/03/validation-5.png)
7. Select cell C3.
Now you see the yellow box instructing the user as to what to enter.
![Input Message](https://overallmoney.com/wp-content/uploads/2022/03/validation-6.png)
8. Try to enter a number that is outside the range of 5 to 20. For instance, we enter 25 in cell C3.
9. Press Enter.
![Error allert](https://overallmoney.com/wp-content/uploads/2022/03/validation-7.png)
Result: Excel shows the warning message for the user as you have set.
Note: To remove all the data validation rules, select the cell and then click the Data tab -> Data Validation -> Clear All -> OK.
1 of 8 finished! Recommending more on Data Validation: Next Example >> |
<< Previous Example | Skip to Next Chapter 09: Using Templates |