|
Names Tutorial F: Names that identify several cells |
This page in 2007 Top Previous Next |
|
NAMES ASSOCIATED WiTH MORE THAN ONE CELL.
This spreadsheet is different from the examples earlier in this tutorial, in that rather than having a single cell for Sales, and another one for Costs, we have five years of them. The sales are calculated by marking up the costs by 20%.
Excel offers the word Costs because it is located in a cell near to the selected cells and appears to be a plausible candidate for the name we'd like now to create. But Excel selects the name, so that if its choice isn't what we had in mind, we can conveniently overtype it.
HOw Excel interprets this formula The first of these Sales formulas is in cell B7. When Excel needs to evaluate the formula in that cell
But now Excel has a problem. It is trying to evaluate one formula, B7, but it has been given five cells, B3:F3. What is it to do? We've no hope of fitting the five numbers into one cell. Many spreadsheet programs would react to this situation by showing an error (though that's changing*). Excel does something more useful. It solves the problem that it has more inputs than are needed for a single-cell result by doing something pragmatic: it makes a choice of one of the cells from among the ones specified.
The rule used to make this choice is is simple: Excel picks out the cell that is in the same column as the calculation. Our calculation is in cell B7; so of the five cells, B3:F3, the one that it will involve in this calculation is B3. Subsequent Sales formulas, in cells C7, D7, etc, do the same thing; Excel matches columns so that their formulas act on cells C3, D3, and so on. * Open Office, Gnumeric, Google spreadsheets and the latest version of MS-Works now all support coordinate matching, no doubt to achieve strong compatibility with Excel. The major package that does not is the once dominant Lotus 1-2-3. See also |