18.11.2014 Views

Microsoft Office

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part II<br />

Working with Formulas and Functions<br />

FIGURE 11.10<br />

A simple table with three columns.<br />

ON the CD-ROM<br />

This workbook is available on the companion CD-ROM. It is named table formulas.xlsx.<br />

If you’d like to calculate the total projected and total actual sales, you don’t even need to write a formula.<br />

Simply click a button to add a row of summary formulas to the table:<br />

1. Activate any cell in the table.<br />

2. Place a check mark next to Table Tools ➪ Design ➪ Table Style Options ➪ Total Row.<br />

3. Activate a cell in the Total Row and use the drop-down list to select the type of summary<br />

formula to use (see Figure 11.11). For example, to calculate the sum of the Actual column,<br />

select SUM from the drop-down list in cell D15. Excel creates this formula:<br />

=SUBTOTAL(109,[Actual])<br />

For the SUBTOTAL function, 109 is an enumerated argument that represents SUM. The second argument for<br />

the SUBTOTAL function is the column name, in square brackets. Using the column name within brackets is<br />

a new way to create “structured” references within a table. (I discuss this further in an upcoming section,<br />

“Referencing data in a table.”)<br />

192

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

Saved successfully!

Ooh no, something went wrong!