11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 19: Conditional Formatting and Data Validation 545<br />

In many cases, you can simply take advantage of Excel’s data validation feature, which is<br />

described next.<br />

Data Validation<br />

Excel’s data validation feature is similar in many respects to the conditional formatting feature.<br />

This feature enables you to set up certain rules that dictate what you can enter into a cell. For<br />

example, you may want to limit data entry to whole numbers between 1 and 12. If the user makes<br />

an invalid entry, you can display a custom message, such as the one shown in Figure 19-25.<br />

Figure 19-25: Displaying a message when the user makes an invalid entry.<br />

As with the conditional formatting feature, you can use a logical formula to specify your data validation<br />

criteria.<br />

The data validation suffers from a potentially serious problem: If the user copies a cell<br />

that does not use data validation and pastes it to a cell that does use data validation,<br />

the data validation rules are deleted. In other words, the cell then accepts any type of<br />

data.<br />

Specifying validation criteria<br />

To specify the type of data allowable in a cell or range, follow these steps:<br />

1. Select the cell or range.<br />

2. Choose Data➜Data Tools➜Data Validation.<br />

Excel displays its Data Validation dialog box.<br />

3. Click the Settings tab (see Figure 19-26).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!