Chapter 26Using Data Validation

IN THIS CHAPTER

  1. Getting an overview of Excel's data validation feature
  2. Looking at practical examples of using data validation formulas

This chapter explores a useful Excel feature: data validation. Data validation enables you to add rules for what's acceptable in specific cells and allows you to add dynamic elements to your worksheet without using any macro programming.

About Data Validation

The Excel data validation feature allows you to set up rules that determine what can be entered into a cell. For example, you may want to limit data entry in a particular cell to whole numbers between 1 and 12. If the user makes an invalid entry, you can display a custom message, such as the one shown in Figure 26.1.

Snipped image of a worksheet displaying input items in cell A4 (Enter the month number (1–12)) and Cell B4 (15) with Try Again dialog box containing "The number must be between 1 and 12" custom message.

Figure 26.1 Displaying a message when the user makes an invalid entry.

Excel makes it easy to specify the validation criteria. You can also use a formula for more complex criteria.

Specifying Validation Criteria

To specify the type of data allowable in a cell ...

Get Excel 2016 Bible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.