|
Finding cell precedents |
This page in 2007 Top |
|
Understanding which cells a formula refers to, and coming to a view on whether they are the correct cells in the circumstances, is a central activity in checking a spreadsheet. Excel offers about seven ways of determining the precedents of a cell, and they are all slightly different. Inspection The most obvious method for checking a formula's precedents is to examine it and to navigate to any cells that it mentions, one after the other. Go To Special One of the options of Excel's Edit | Go To | Special is Precedents.
Activating this will
This command dates back to the very earliest versions of Excel, which were too primitive to have any notion of workbooks that might contain several worksheets. If a formula mentions a cell on another worksheet, with a formula such as =Sheet2!A1, Excel will ignore the fact. A selection of one or more formulas that don't mention any cells on the same worksheet will be reported as having no precedents even though they do refer to numerous cells on other worksheets. Ctrl+[ (left square bracket) The Ctrl+[ key combination works very like Go To | Special | Precedents. In fact, the actions are identical in many circumstances. But there are two situations in which Ctrl+[ will act differently.
Double click Older versions of Excel allowed the precedents of a cell to be selected if the cell was double clicked. More recent versions use double clicking on the cell to mean you want to edit its contents. But the old behaviour can be restored by turning off the "Edit directly in cell" feature. This option is reached with Tools | Option | Edit | Edit directly in cell. The action is identical to Ctrl+[, except that it applies to the cell double clicked on only (Ctrl-[ will show the precedents of all cells selected if there is more than one.) Tools | Formula auditing | Trace Precedents The Trace Precedents command draws
Tools | Formula auditing | Evaluate formula The Evaluate Formula command brings up a dialog through which a formula can be probed interactively.
Go To while editing Using Excel's Go To command is such a basic action that this section of the help starts by recapping it. The shortcut for it, F5, is well known. But what isn't so well known is that you can press F5 while editing a formula. If the portion of the formula being edited is a reference, then F5 will navigate to the reference and adjust the formula. For example,
You won't be able to see what's in A1, since Excel is busy displaying the formula that you are editing. But you will see where it is, and what labels surround it Why this is useful Understanding which cells a formula refers to, and coming to a view on whether they are the correct cells in the circumstances, is a central activity in checking a spreadsheet. That's why this help offered finding cell precedents as the most relevant example of why Excel's ability to select ranges that are of arbitrary shapes is interesting. |