11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

270<br />

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

Figure 9-25: Using the DSUM function to sum a table using a criteria range.<br />

Inserting Subtotals<br />

Excel’s Data➜Outline➜Subtotal command is a handy tool that inserts formulas into a worksheet<br />

database automatically. These formulas use the SUBTOTAL function. To use this feature, your<br />

database must be sorted because the formulas are inserted whenever the value in a specified<br />

field changes. For more information about the SUBTOTAL function, refer to the sidebar, “About<br />

the SUBTOTAL function,” earlier in this chapter.<br />

When a table is selected, the Data➜Outline➜Subtotal command is not available.<br />

Therefore, this section applies only to worksheet databases. If your data is in a table<br />

and you need to insert subtotals automatically, convert the table to a range by using<br />

Table Tools➜Design➜Tools➜Convert To Range. After you insert the subtotals, you can<br />

convert the range back to a table by using Insert➜Tables➜Table.<br />

Figure 9-26 shows an example of a range that is appropriate for subtotals. This database is<br />

sorted by the Month field, and the Region field is sorted within months.<br />

This workbook, named nested subtotals.xlsx, is available on the companion<br />

CD-ROM.<br />

To insert subtotal formulas into a worksheet database automatically, move the cell pointer anywhere<br />

in the range and choose Data➜Outline➜Subtotal. You will see the Subtotal dialog box, as<br />

shown in Figure 9-27.

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

Saved successfully!

Ooh no, something went wrong!