11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Any Value: Selecting this option removes any existing data validation. Note, however,<br />

that the input message (if any) still displays if the check box is selected in the Input<br />

Message tab.<br />

Whole Number: The user must enter a whole number. You specify a valid range of whole<br />

numbers by using the Data drop-down list. For example, you can specify that the entry<br />

must be a whole number greater than or equal to 100.<br />

Decimal: The user must enter a number. You specify a valid range of numbers by using<br />

the Data drop-down list. For example, you can specify that the entry must be greater<br />

than or equal to 0 and less than or equal to 1.<br />

List: The user must choose from a list of entries that you provide. This option is very useful,<br />

and I discuss it in detail later in this chapter (see the section “Creating a drop-down list”).<br />

Date: The user must enter a date. You specify a valid date range by using the Data dropdown<br />

list. For example, you can specify that the entered data must be greater than or<br />

equal to January 1, 2010, and less than or equal to December 31, 2010.<br />

Time: The user must enter a time. You specify a valid time range by using the Data<br />

drop-down list. For example, you can specify that the entered data must be greater than<br />

12:00 p.m.<br />

Text Length: The length of the data (number of characters) is limited. You specify a valid<br />

length by using the Data drop-down list. For example, you can specify that the length of<br />

the entered data be 1 (a single alphanumeric character).<br />

Custom: To use this option, you must supply a logical formula that determines the validity<br />

of the user’s entry. (A logical formula returns either TRUE or FALSE.) You can enter<br />

the formula directly into the <strong>Formula</strong> control (which appears when you select the Custom<br />

option), or you can specify a cell reference that contains a formula. This chapter contains<br />

examples of useful formulas.<br />

The Settings tab of the Data Validation dialog box contains two other check boxes:<br />

Ignore Blank: If checked, blank entries are allowed.<br />

Apply These Changes to All Other Cells with the Same Settings: If checked, the changes<br />

you make apply to all other cells that contain the original data validation criteria.<br />

It’s important to understand that even with data validation in effect, the user can enter invalid<br />

data. If the Style setting in the Error Alert tab of the Data Validation dialog box is set to anything<br />

except Stop, invalid data can be entered. Also, remember that data validation does not apply to<br />

the calculated results of formulas. In other words, if the cell contains a formula, applying data validation<br />

to that cell will have no effect.<br />

The Data➜Data Tools➜Data Validation drop-down control contains an item named<br />

Circle Invalid Data. When you click this item, circles appear around cells that contain<br />

incorrect entries. If you correct an invalid entry, the circle disappears. To get rid of the<br />

circles, choose Data➜Data Tools➜Data Validation➜Clear Validation Circles. In Figure<br />

19-27, invalid entries are defined as values that are greater than 100.

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

Saved successfully!

Ooh no, something went wrong!