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.

536<br />

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

Notice that the formula that you enter in Step 4 contains a relative reference to the upper-left<br />

cell in the selected range.<br />

Generally, when entering a conditional formatting formula for a range of cells, you’ll use a reference<br />

to the active cell, which is normally the upper-left cell in the selected range. One exception<br />

is when you need to refer to a specific cell. For example, suppose that you select range A1:B10,<br />

and you want to apply formatting to all cells in the range that exceed the value in cell C1. Enter<br />

this conditional formatting formula:<br />

=A1>$C$1<br />

In this case, the reference to cell C1 is an absolute reference: It will not be adjusted for the cells in<br />

the selected range. In other words, the conditional formatting formula for cell A2 looks like this:<br />

=A2>$C$1<br />

The relative cell reference is adjusted, but the absolute cell reference is not.<br />

Using references to other sheets<br />

Previous versions of Excel did not allow references to other worksheets in conditional formatting<br />

formulas. That restriction has been lifted in Excel 2010.<br />

If you plan to share your workbook with others who don’t use Excel 2010, you need to avoid<br />

using references to other worksheets. Rather, create a reference to that cell on the sheet that<br />

contains the conditional formatting. For example, if your conditional formatting formula needs to<br />

refer to cell A1 on Sheet3, you can insert the following formula into a cell on the active sheet:<br />

=Sheet3!A1<br />

Then use a reference to that cell in your conditional formatting formula.<br />

Another option is to create a name for the cell (by using <strong>Formula</strong>s➜Defined Names➜<br />

Define Name). After defining the name, you can use the name in place of the cell reference<br />

in your conditional formatting formula. If you use this technique, the named cell<br />

can be in any worksheet in the workbook.<br />

Conditional formatting formula examples<br />

Each of these examples uses a formula entered directly into the New Formatting Rule dialog box,<br />

after you select the rule type labeled Use a <strong>Formula</strong> to Determine Which Cells to Format. You<br />

decide the type of formatting that you want to apply conditionally.

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

Saved successfully!

Ooh no, something went wrong!