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.

534<br />

Part V: Miscellaneous <strong>Formula</strong> Techniques<br />

Locating cells that contain conditional formatting<br />

You can’t tell, just by looking at a cell, whether it contains conditional formatting. You can, however,<br />

use Excel’s Go To dialog box to select such cells.<br />

1. Choose Home➜Editing➜Find & Select➜Go To Special.<br />

2. In the Go To Special dialog box, select the Conditional Formats option.<br />

3. To select all cells on the worksheet containing conditional formatting, select the All<br />

option. To select only the cells that contain the same conditional formatting as the active<br />

cell, select the Same option.<br />

4. Click OK.<br />

Excel selects the cells for you.<br />

Creating formula-based rules<br />

Excel’s conditional formatting feature is versatile, but sometimes it’s just not quite versatile<br />

enough. Fortunately, you can extend its versatility by writing conditional formatting formulas.<br />

The examples later in this section describe how to create conditional formatting formulas for the<br />

following:<br />

To identify text entries<br />

To identify dates that fall on a weekend<br />

To format cells that are in odd-numbered rows or columns (for dynamic alternate row or<br />

columns shading)<br />

To format groups of rows (for example, shading every group of two rows)<br />

To display a sum only when all precedent cells contain values<br />

To identify text cells that begin with the same first letter as a letter in a cell<br />

To identify cells that contain a value that meets a criterion entered in a cell<br />

Some of these formulas may be useful to you. If not, they may inspire you to create other conditional<br />

formatting formulas.<br />

To specify conditional formatting based on a formula, select the cells and then choose Home➜<br />

Styles➜Conditional Formatting➜New Rule. This command displays the New Formatting Rule dialog<br />

box. Click the rule type labeled Use a <strong>Formula</strong> to Determine Which Cells to Format, and you’ll<br />

be able to specify the formula.<br />

You can type the formula directly into the <strong>Formula</strong> box, or you can enter a reference to an existing<br />

formula. As with normal Excel formulas, the formula you enter here must begin with an equal<br />

sign (=).

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

Saved successfully!

Ooh no, something went wrong!