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.

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

You can also combine row and column references by nesting brackets and including multiple references<br />

separated by commas. The following example returns Sales from the current row divided<br />

by the total sales:<br />

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

A formula like the preceding one is much easier to create if you use the pointing method.<br />

Table 9-1 summarizes the row identifiers for table references and also describes which ranges<br />

they represent.<br />

Table 9-1: Table Row References<br />

Row Identifier Description<br />

#All Returns the range that includes the Header row, all data rows, and the Total row.<br />

#Data Returns the range that includes the data rows but not the Header and Total rows.<br />

#Headers Returns the range that includes the Header row only. Returns the #REF! error if<br />

there is no Header row.<br />

#Totals Returns the range that includes the Total row only. Returns the #REF! error if there<br />

is no Total row.<br />

@ Represents “this row.” Returns the range that is the intersection of the active row<br />

and the table’s data rows. If the active row does not intersect with the table or it’s<br />

the same row as the Header or Total row, the #VALUE! error is returned.<br />

You can use the SUBTOTAL function to generate consecutive numbers for nonhidden<br />

rows in a filtered table. The numbering will adjust as you apply filtering to hide or display<br />

rows. If your table has the field names in row 1, enter this formula in cell A2 and<br />

then copy it down for each row in your table:<br />

=SUBTOTAL(3,B$2:B2)<br />

Converting a table to a worksheet database<br />

If you need to convert a table back to a normal worksheet database, just select a cell in the table<br />

and choose Table Tools➜Design➜Tools➜Convert To Range. The table style formatting remains<br />

intact, but the range no longer functions as a table.<br />

<strong>Formula</strong>s inside and outside the table that use structured table references are converted, so they<br />

use range addresses rather than table items.

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

Saved successfully!

Ooh no, something went wrong!