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.

256<br />

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

Figure 9-14: The <strong>Formula</strong> AutoComplete feature is useful when creating a formula that refers to data in a<br />

table.<br />

Using this structured table syntax is optional — you can use actual range references if you like.<br />

For example, the following formula returns the same result as the preceding one:<br />

=SUMIF(B3:B8,”Jan”,D3:D8)<br />

To refer to a cell in the Total row of a table, use a formula like this:<br />

=Table2[[#Totals],[Sales]]<br />

If the Total row in Table2 is not displayed, the preceding formula returns a #REF error.<br />

This formula returns the value in the Total row of the Sales column in Table2.<br />

To count the total number of rows in Table2, use the following formula:<br />

=ROWS(Table2[#All])<br />

The preceding formula counts all rows, including the Header row and Total row. To count only<br />

the data rows, use a formula like this:<br />

=ROWS(Table2[#Data])<br />

A formula that’s in the same row as a table can use a #This Row reference to refer to table data<br />

that’s in the same row. For example, assume the following formula is in row 3, in a column outside<br />

Table2. The formula counts the number of entries in row 3 of Table2:<br />

=COUNTA(Table2[@])

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

Saved successfully!

Ooh no, something went wrong!