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.

Figure 9-13: This table shows sales by month and by region.<br />

Chapter 9: Tables and Worksheet Databases 255<br />

To change the name of a table, select any cell in the table, use the Table Name box in<br />

the Table Tools➜Design➜Properties group. Or, you can use the Name Manager to<br />

change the name of a table (<strong>Formula</strong>s➜Defined Names➜Name Manager).<br />

Most of the time, your formulas will refer to a specific column in the table, rather than the entire<br />

table. The following formula returns the sum of the data in the Sales column:<br />

=SUM(Table2[Sales])<br />

Notice that the column name is enclosed in square brackets. Again, the formula adjusts automatically<br />

if you change the text in the column heading.<br />

Keep in mind that the preceding formula does not adjust if table rows are hidden as a<br />

result of filtering. SUBTOTAL and AGGREGATE are the only functions that change their<br />

result to ignore hidden rows. To ignore filtered rows, use either of the following formulas:<br />

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

=AGGREGATE(9,1,Table2[Sales])<br />

Even better, Excel provides some helpful assistance when you create a formula that refers to<br />

data within a table. Figure 9-14 shows the <strong>Formula</strong> AutoComplete feature helping create a formula<br />

by showing a list of the elements in the table.<br />

Here’s another example that returns the sum of the January sales:<br />

=SUMIF(Table2[Month],”Jan”,Table2[Sales])<br />

For an explanation of the SUMIF worksheet function, refer to Chapter 7.

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

Saved successfully!

Ooh no, something went wrong!