21.08.2013 Views

LibreOffice 3.4 Calc Guide - The Document Foundation Wiki

LibreOffice 3.4 Calc Guide - The Document Foundation Wiki

LibreOffice 3.4 Calc Guide - The Document Foundation Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Tip<br />

A simple range contains one contiguous rectangular region of cells. It is possible to<br />

define a multi-range that contains multiple simple ranges. If the reference consists of<br />

multiple ranges, you must enclose the reference or range name in parentheses.<br />

If reference argument to the INDEX function is a multi-range, then the range argument specifies<br />

which simple range to use (see Table 28).<br />

Table 28. Using INDEX with a multi-range.<br />

Function Returns<br />

=INDEX(B2:G2; 1; 2) 93<br />

=INDEX(B5:G5; 1; 2) 65<br />

=INDEX((B2:G2;B5:G5); 1; 2) 93<br />

=INDEX((B2:G2;B5:G5); 1; 2; 1) 93<br />

=INDEX((B2:G2;B5:G5); 1; 2; 2) 65<br />

Database-specific functions<br />

Although every <strong>Calc</strong> function can be used for database manipulation, the functions in Table 29 are<br />

specifically designed for use as a database. <strong>The</strong> descriptions in Table 29 use the following terms<br />

interchangeably: row and record, cell and field, and database and all rows.<br />

Table 29. Database functions in a <strong>Calc</strong> document.<br />

Function Description<br />

DAVERAGE Return the average of all fields that matches the search criteria.<br />

DCOUNT Count the number of records containing numeric data that match the search<br />

criteria.<br />

DCOUNTA Count the number of records containing text data that match the search criteria.<br />

DGET Return the contents of a field that matches the search criteria.<br />

DMAX Return the maximum content of a field that matches the search criteria.<br />

DMIN Return the minimum content of a field that matches the search criteria.<br />

DPRODUCT Return the product of the fields that matches the search criteria.<br />

DSTDEV <strong>Calc</strong>ulate the standard deviation using the fields that match the search criteria.<br />

<strong>The</strong> fields are treated as a sample.<br />

DSTDEVP <strong>Calc</strong>ulate the standard deviation using the fields that match the search criteria.<br />

<strong>The</strong> fields are treated as the entire population.<br />

DSUM Return the sum of all fields that matches the search criteria.<br />

DVAR <strong>Calc</strong>ulate the variance using the fields that match the search criteria. <strong>The</strong> fields<br />

are treated as a sample.<br />

DVARP <strong>Calc</strong>ulatesthe variance using the fields that match the search criteria. <strong>The</strong> fields<br />

are treated as the entire population.<br />

<strong>The</strong> syntax for the database functions are identical.<br />

DCOUNT(database; database field; search criteria)<br />

318 <strong>LibreOffice</strong> <strong>3.4</strong> <strong>Calc</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!