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.

254<br />

Part II: Using Functions in Your <strong>Formula</strong>s<br />

Although I entered the formula into the first data row of the table, that’s not necessary. Any time<br />

you enter a formula into any cell in an empty table column, it will automatically fill all the cells in<br />

that column. And if you need to edit the formula, edit the copy in any row, and Excel automatically<br />

copies the edited formula to the other cells in the column.<br />

The preceding steps use the pointing technique to create the formula. Alternatively, you can<br />

enter the formula manually using standard cell references. For example, you can enter the following<br />

formula in cell E3:<br />

=D3–C3<br />

If you type the formulas using cell references, Excel still copies the formula to the other cells<br />

automatically: It just doesn’t use the column headings.<br />

When Excel inserts a calculated column formula, it also displays a Smart Tag, with some<br />

options, one of which is Stop Automatically Creating Calculated Columns. Select this<br />

option if you prefer to do your own copying within a column.<br />

Referencing data in a table<br />

The preceding section describes how to create a column of formulas within a table. What about<br />

formulas outside of a table that refer to data inside of a table? You can take advantage of the<br />

structured table referencing that uses the table name, column headers, and other table elements.<br />

You no longer need to create names for these items.<br />

The table itself has a name (for example, Table1), and you can refer to data within the table by<br />

using column headers.<br />

You can, of course, use standard cell references to refer to data in a table, but the structured<br />

table referencing has a distinct advantage: The names adjust automatically if the table size<br />

changes by adding or deleting rows.<br />

Refer to Figure 9-13, which shows a simple table that contains regional sales information. Excel<br />

named this table Table2 when it was created; it was the second table in the workbook. To calculate<br />

the sum of all the values in the table, use this formula:<br />

=SUM(Table2)<br />

This formula always returns the sum of all the data, even if rows or columns are added or deleted.<br />

And if you change the name of the table, Excel adjusts all formulas that refer to that table automatically.<br />

For example, if you rename Table1 to be Q1Data, the preceding formula changes to<br />

=SUM(Q1Data)

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

Saved successfully!

Ooh no, something went wrong!