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 21: Tools and Methods for Debugging <strong>Formula</strong>s 591<br />

Tracing cell relationships<br />

To understand how to trace cell relationships, you need to familiarize yourself with the following<br />

two concepts:<br />

Cell precedents: Applicable only to cells that contain a formula, a formula cell’s precedents<br />

are all the cells that contribute to the formula’s result. A direct precedent is a cell<br />

that you use directly in the formula. An indirect precedent is a cell that is not used<br />

directly in the formula but is instead used by a cell that you refer to in the formula.<br />

Cell dependents: These are formula cells that depend on a particular cell. A cell’s dependents<br />

consist of all formula cells that use the cell. Again, the formula cell can be a direct<br />

dependent or an indirect dependent.<br />

For example, consider this simple formula entered into cell A4:<br />

=SUM(A1:A3)<br />

Cell A4 has three precedent cells (A1, A2, and A3), which are all direct precedents. Cells A1, A2,<br />

and A3 each have a dependent cell (cell A4), and they’re all direct dependents.<br />

Identifying cell precedents for a formula cell often sheds light on why the formula is not working<br />

correctly. Conversely, knowing which formula cells depend on a particular cell is also helpful.<br />

For example, if you’re about to delete a formula, you may want to check whether it has any<br />

dependents.<br />

Identifying precedents<br />

You can identify cells used by a formula in the active cell in a number of ways:<br />

Press F2. The cells that are used directly by the formula are outlined in color, and the<br />

color corresponds to the cell reference in the formula. This technique is limited to identifying<br />

cells on the same sheet as the formula.<br />

Display the Go To Special dialog box (choose Home➜Editing➜Find & Select➜Go To<br />

Special). Select the Precedents option and then select either Direct Only (for direct precedents<br />

only) or All Levels (for direct and indirect precedents). Click OK, and Excel selects<br />

the precedent cells for the formula. This technique is limited to identifying cells on the<br />

same sheet as the formula.<br />

Press Ctrl+[ to select all direct precedent cells on the active sheet.<br />

Press Ctrl+Shift+{ to select all precedent cells (direct and indirect) on the active sheet.<br />

Choose <strong>Formula</strong>s➜<strong>Formula</strong> Auditing➜Trace Precedents. Excel draws arrows to indicate<br />

the cell’s precedents. Click this button multiple times to see additional levels of precedents.<br />

Choose <strong>Formula</strong>s➜<strong>Formula</strong> Auditing➜Remove Arrows to hide the arrows. Figure 21-10<br />

shows a worksheet with precedent arrows drawn to indicate the precedents for the formula<br />

in cell C13.

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

Saved successfully!

Ooh no, something went wrong!