Use Data Validation

Use Data Validation

What is data validation?

Data validation is an Excel feature that you can use to define restrictions on what data can or should be entered in a cell. You can configure data validation to prevent users from entering data that is not valid. If you prefer, you can allow users to enter invalid data but warn them when they try to type it in the cell. You can also provide messages to define what input you expect for the cell, and instructions to help users correct any errors.

For example, in a marketing workbook, you can set up a cell to allow only account numbers that are exactly three characters long. When users select the cell, you can show them a message such as this one:

1

If users ignore this message and type invalid data in the cell, such as a two-digit or five-digit number, you can show them an actual error message.

In a slightly more advanced scenario, you might use data validation to calculate the maximum allowed value in a cell based on a value elsewhere in the workbook. In the following example, the user has typed $4,000 in cell E7, which exceeds the maximum limit specified for commissions and bonuses.

2

If the payroll budget were to increase or decrease, the allowed maximum in E7 would automatically increase or decrease with it.

Data validation options are located in the Data Tools group.

3

You configure data validation in the Data Validation dialog box.

4

Share this post
[social_warfare]
Group and Outline Data
Create and Modify List Ranges

Get industry recognized certification – Contact us

keyboard_arrow_up