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.

• Search_criteria is a cell range containing the search criteria.. Empty cells in the search<br />

criteria range will be ignored.<br />

Note<br />

Table 42: Database average<br />

All of the search-criteria arguments for the database functions support regular<br />

expressions. For example, “all.*” can be entered to find the first location of “all”<br />

followed by any characters. To search for text that is also a regular expression,<br />

precede every character with a \ character. You can switch the automatic evaluation of<br />

regular expressions on and off in Tools > Options > <strong>LibreOffice</strong> <strong>Calc</strong> > <strong>Calc</strong>ulate.<br />

Syntax Description<br />

DAVERAGE(database;<br />

database_field;<br />

search_criteria)<br />

DCOUNT(database;<br />

database_field;<br />

search_criteria)<br />

DCOUNTA(database;<br />

database_field;<br />

search_criteria)<br />

DGET(database;<br />

database_field;<br />

search_criteria)<br />

DMAX(database;<br />

database_field;<br />

search_criteria)<br />

DMIN(database;<br />

database_field;<br />

search_criteria)<br />

DPRODUCT(database;<br />

database_field;<br />

search_criteria)<br />

DSTDEV(database;<br />

database_field;<br />

search_criteria)<br />

DSTDEVP(database;<br />

database_field;<br />

search_criteria)<br />

DSUM(database;<br />

database_field;<br />

search_criteria)<br />

Returns the average of the values of all cells (fields) in all rows<br />

(database records) that match the specified search_criteria. <strong>The</strong><br />

search supports regular expressions.<br />

Counts the number of rows (records) in a database that match the<br />

specified search_criteria and contain numerical values. <strong>The</strong><br />

search supports regular expressions. For the database_field<br />

parameter, enter a cell address to specify the column, or enter the<br />

number 0 for the entire database. <strong>The</strong> parameter cannot be<br />

empty.<br />

Counts the number of rows (records) in a database that match the<br />

specified search_criteria and contain numeric or alphanumeric<br />

values. <strong>The</strong> search supports regular expressions.<br />

Returns the contents of the referenced cell in a database which<br />

matches the specified search_criteria. In case of an error, the<br />

function returns either #VALUE! for no row found, or Err502 for<br />

more than one cell found.<br />

Returns the maximum content of a cell (field) in a database (all<br />

records) that matches the specified search_criteria. <strong>The</strong> search<br />

supports regular expressions.<br />

Returns the minimum content of a cell (field) in a database that<br />

matches the specified search_criteria. <strong>The</strong> search supports<br />

regular expressions.<br />

Multiplies all cells of a data range where the cell contents match<br />

the search_criteria. <strong>The</strong> search supports regular expressions.<br />

<strong>Calc</strong>ulates the standard deviation of a population based on a<br />

sample, using the numbers in a database column that match the<br />

search_criteria. <strong>The</strong> records are treated as a sample of data.<br />

Note that a representative result for a large population can not be<br />

obtained from a sample of fewer than one thousand.<br />

<strong>Calc</strong>ulates the standard deviation of a population based on all<br />

cells of a data range which match the search_criteria. <strong>The</strong><br />

records from the example are treated as the whole population.<br />

Returns the total of all cells in a database field in all rows (records)<br />

that match the specified search_criteria. <strong>The</strong> search supports<br />

regular expressions.<br />

382 <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!