summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/scalc/01/04060101.xhp
diff options
context:
space:
mode:
Diffstat (limited to 'helpcontent2/source/text/scalc/01/04060101.xhp')
-rw-r--r--helpcontent2/source/text/scalc/01/04060101.xhp638
1 files changed, 638 insertions, 0 deletions
diff --git a/helpcontent2/source/text/scalc/01/04060101.xhp b/helpcontent2/source/text/scalc/01/04060101.xhp
new file mode 100644
index 000000000..76e83be24
--- /dev/null
+++ b/helpcontent2/source/text/scalc/01/04060101.xhp
@@ -0,0 +1,638 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<helpdocument version="1.0">
+
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ -->
+
+
+<meta>
+ <topic id="textscalc0104060101xml" indexer="include">
+ <title xml-lang="en-US" id="tit">Database Functions</title>
+ <filename>/text/scalc/01/04060101.xhp</filename>
+ </topic>
+ </meta>
+ <body>
+<bookmark xml-lang="en-US" branch="index" id="bm_id3148946"><bookmark_value>Function Wizard; databases</bookmark_value>
+ <bookmark_value>functions; database functions</bookmark_value>
+ <bookmark_value>databases; functions in $[officename] Calc</bookmark_value>
+</bookmark>
+<h1 id="hd_id3148946">Database Functions</h1>
+ <paragraph xml-lang="en-US" id="par_id3145173" role="paragraph"><variable id="datenbanktext">This section deals with functions used with data organized as one row of data for one record.</variable></paragraph>
+ <note id="par_id3154016">The Database category may be confused with a database integrated in $[officename]. However, there is no connection between a database in $[officename] and the Database category in $[officename] Calc.</note>
+ <h3 id="hd_id3150329">Example Data:</h3>
+ <paragraph xml-lang="en-US" id="par_id3153713" role="paragraph">The following data will be used in some of the function description examples:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3155766" role="paragraph">The range A1:E10 lists the children invited to Joe's birthday party. The following information is given for each entry: column A shows the name, B the grade, then age in years, distance to school in meters and weight in kilograms.</paragraph>
+ <table id="tbl_id3159264">
+ <tablerow>
+ <tablecell>
+</tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3145232" role="tablehead">A</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3146316" role="tablehead">B</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150297" role="tablehead">C</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150344" role="tablehead">D</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150785" role="tablehead">E</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150090" role="tablecontent">1</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3152992" role="tablecontent">
+<item type="input">Name</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3155532" role="tablecontent">
+<item type="input">Grade</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3156448" role="tablecontent">
+<item type="input">Age</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3154486" role="tablecontent">
+<item type="input">Distance to School</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3152899" role="tablecontent">
+<item type="input">Weight</item>
+</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3153816" localize="false" role="tablecontent">2</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3151240" role="tablecontent">
+<item type="input">Andy</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3156016" localize="false" role="tablecontent"><item type="input">3</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3145073" localize="false" role="tablecontent"><item type="input">9</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3154956" localize="false" role="tablecontent"><item type="input">150</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3153976" localize="false" role="tablecontent"><item type="input">40</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150894" localize="false" role="tablecontent">3</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3152870" role="tablecontent">
+<item type="input">Betty</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149692" localize="false" role="tablecontent"><item type="input">4</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3154652" localize="false" role="tablecontent"><item type="input">10</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149381" localize="false" role="tablecontent"><item type="input">1000</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3153812" localize="false" role="tablecontent"><item type="input">42</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3146965" localize="false" role="tablecontent">4</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3155596" role="tablecontent">
+<item type="input">Charles</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3147244" localize="false" role="tablecontent"><item type="input">3</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149871" localize="false" role="tablecontent"><item type="input">10</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3155752" localize="false" role="tablecontent"><item type="input">300</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149052" localize="false" role="tablecontent"><item type="input">51</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3146097" localize="false" role="tablecontent">5</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3147296" role="tablecontent">
+<item type="input">Daniel</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150393" localize="false" role="tablecontent"><item type="input">5</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3145236" localize="false" role="tablecontent"><item type="input">11</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150534" localize="false" role="tablecontent"><item type="input">1200</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150375" localize="false" role="tablecontent"><item type="input">48</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3159121" localize="false" role="tablecontent">6</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150456" role="tablecontent">
+<item type="input">Eva</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3146886" localize="false" role="tablecontent"><item type="input">2</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149945" localize="false" role="tablecontent"><item type="input">8</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3157904" localize="false" role="tablecontent"><item type="input">650</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149352" localize="false" role="tablecontent"><item type="input">33</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150028" localize="false" role="tablecontent">7</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3145826" role="tablecontent">
+<item type="input">Frank</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150743" localize="false" role="tablecontent"><item type="input">2</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3154844" localize="false" role="tablecontent"><item type="input">7</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3148435" localize="false" role="tablecontent"><item type="input">300</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3148882" localize="false" role="tablecontent"><item type="input">42</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150140" localize="false" role="tablecontent">8</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3146137" role="tablecontent">
+<item type="input">Greta</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3148739" localize="false" role="tablecontent"><item type="input">1</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3148583" localize="false" role="tablecontent"><item type="input">7</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3154556" localize="false" role="tablecontent"><item type="input">200</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3155255" localize="false" role="tablecontent"><item type="input">36</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3145141" localize="false" role="tablecontent">9</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3153078" role="tablecontent">
+<item type="input">Harry</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149955" localize="false" role="tablecontent"><item type="input">3</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150005" localize="false" role="tablecontent"><item type="input">9</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3155951" localize="false" role="tablecontent"><item type="input">1200</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3145169" localize="false" role="tablecontent"><item type="input">44</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3153571" localize="false" role="tablecontent">10</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3148761" role="tablecontent">
+<item type="input">Irene</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149877" localize="false" role="tablecontent"><item type="input">2</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3154327" localize="false" role="tablecontent"><item type="input">8</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3155435" localize="false" role="tablecontent"><item type="input">1000</item></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3145353" localize="false" role="tablecontent"><item type="input">42</item></paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150662" localize="false" role="tablecontent">11</paragraph>
+ </tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150568" localize="false" role="tablecontent">12</paragraph>
+ </tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3149393" localize="false" role="tablecontent">13</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3153544" role="tablecontent">
+<item type="input">Name</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3158414" role="tablecontent">
+<item type="input">Grade</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3152820" role="tablecontent">
+<item type="input">Age</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3154866" role="tablecontent">
+<item type="input">Distance to School</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3150471" role="tablecontent">
+<item type="input">Weight</item>
+</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3153920" localize="false" role="tablecontent">14</paragraph>
+ </tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3148429" localize="false" role="tablecontent"><item type="input">&gt;600</item></paragraph>
+ </tablecell>
+ <tablecell>
+</tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3152588" localize="false" role="tablecontent">15</paragraph>
+ </tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3083286" localize="false" role="tablecontent">16</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3163823" role="tablecontent">
+<item type="input">DCOUNT</item>
+</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph xml-lang="en-US" id="par_id3145083" localize="false" role="tablecontent"><item type="input">5</item></paragraph>
+ </tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ <tablecell>
+</tablecell>
+ </tablerow>
+ </table>
+
+ <paragraph xml-lang="en-US" id="par_id3149282" role="paragraph">The formula in cell B16 is =DCOUNT(A1:E10;D1;A13:E14)</paragraph>
+ <h3 id="hd_id3150962">Database Function Parameters:</h3>
+ <paragraph xml-lang="en-US" id="par_id3155837" role="paragraph">The following items are the parameter definitions for all database functions:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3149453" role="paragraph">
+<emph>Database</emph> is the cell range defining the database. The first row of the range contains the field names, and following rows are records with corresponding field values.</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3151272" role="paragraph">
+<emph>DatabaseField</emph> specifies the column where the function operates on after the search criteria of the first parameter is applied and the data rows are selected. It is not related to the search criteria itself. <variable id="quotes">For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of <emph>Database</emph> range), place quotation marks around the header name.
+</variable></paragraph>
+ <paragraph xml-lang="en-US" id="par_id3147083" role="paragraph">
+<emph>SearchCriteria</emph> is the cell range containing search criteria. Like <emph>Database</emph>, its first row is also field names, and following rows are conditions for related fields. If you write several criteria in one row they are connected by AND. If you write the criteria in different rows they are connected by OR. Empty cells in the search criteria range will be ignored.</paragraph>
+<paragraph xml-lang="en-US" id="par_id3151188" role="paragraph">Choose <link href="text/shared/optionen/01060500.xhp" name="Spreadsheet - Calculate"><switchinline select="sys"><caseinline select="MAC"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><menuitem> - %PRODUCTNAME Calc - Calculate</menuitem></link> to define how $[officename] Calc acts when searching for identical entries.</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3882869" role="paragraph">See also the Wiki page about <link href="https://wiki.documentfoundation.org/Documentation/How_Tos/Conditional_Counting_and_Summation" name="wiki.documentfoundation.org Documentation/HowTo/Calc/Conditional Counting and Summation">Conditional Counting and Summation</link>.</paragraph>
+<sort order="asc">
+<section id="Section1">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3150882"><bookmark_value>DCOUNT function</bookmark_value>
+ <bookmark_value>counting rows;with numeric values</bookmark_value>
+</bookmark><comment>mw added "counting rows;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBANZAHL" id="bm_id3152926" localize="false"/>
+<h2 id="hd_id3150882">DCOUNT</h2>
+ <paragraph xml-lang="en-US" id="par_id3156133" role="paragraph"><ahelp hid="HID_FUNC_DBANZAHL">DCOUNT counts the number of rows (records) in a database that match the specified search criteria and contain numerical values in the DatabaseField column.</ahelp></paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3153218" role="code">DCOUNT(Database; [DatabaseField]; SearchCriteria)</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3153273" role="paragraph">If the DatabaseField argument is omitted, DCOUNT returns the count of all records that satisfy Criteria. <embedvar href="text/scalc/01/04060101.xhp#quotes"/></paragraph>
+ <paragraph xml-lang="en-US" role="paragraph" id="par_id301587321851330">If you choose to omit the DatabaseField argument, your formula should be of the form =DCOUNT(Database; ; SearchCriteria).</paragraph>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3153623" role="paragraph">In the example above (scroll up, please), we want to know how many children have to travel more than 600 meters to school. The result is to be stored in cell B16. Set the cursor in cell B16. Enter the formula <item type="input">=DCOUNT(A1:E10;D1;A13:E14)</item> in B16. The <emph>Function Wizard</emph> helps you to input ranges.</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3149142" role="paragraph">
+<emph>Database</emph> is the range of data to be evaluated, including its headers: in this case A1:E10. <emph>DatabaseField</emph> specifies the column for the search criteria: in this case, the column with the numerical distance values. <emph>SearchCriteria</emph> is the range where you can enter the search parameters: in this case, A13:E14.</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3145652" role="paragraph">To learn how many children in second grade are over 7 years of age, delete the entry &gt;600 in cell D14 and enter <item type="input">2</item> in cell B14 under Grade, and enter <item type="input">&gt;7</item> in cell C14 to the right. The result is 2. Two children are in second grade and over 7 years of age. As both criteria are in the same row, they are connected by AND.</paragraph>
+ </section>
+ <section id="Section2">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3156123"><bookmark_value>DCOUNTA function</bookmark_value>
+ <bookmark_value>records;counting in Calc databases</bookmark_value>
+ <bookmark_value>counting rows;with numeric or alphanumeric values</bookmark_value>
+</bookmark><comment>mw added "records;" and "counting rows;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBANZAHL2" id="bm_id3154055" localize="false"/>
+<h2 id="hd_id3156123">DCOUNTA</h2>
+ <paragraph xml-lang="en-US" id="par_id3156110" role="paragraph"><ahelp hid="HID_FUNC_DBANZAHL2">DCOUNTA counts the number of rows (records) in a database that match the specified search conditions, and contain numeric or alphanumeric values.</ahelp></paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3146893" role="code">DCOUNTA(Database; [DatabaseField]; SearchCriteria)</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3153274" role="paragraph">If the DatabaseField argument is omitted, DCOUNTA returns the count of all records that satisfy Criteria. <embedvar href="text/scalc/01/04060101.xhp#quotes"/></paragraph>
+ <paragraph xml-lang="en-US" role="paragraph" id="par_id31587322048553">If you choose to omit the DatabaseField argument, your formula should be of the form =DCOUNTA(Database; ; SearchCriteria).</paragraph>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3153982" role="paragraph">In the example above (scroll up, please), you can search for the number of children whose name starts with an E or a subsequent letter. Edit the formula in B16 to read <item type="input">=DCOUNTA(A1:E10;"Name";A13:E14)</item>. Delete the old search criteria and enter <item type="input">&gt;=E</item> under Name in field A14. The result is 5. If you now delete all number values for Greta in row 8, the result changes to 4. Row 8 is no longer included in the count because it does not contain any values. The name Greta is text, not a value. Note that the DatabaseField parameter must point to a column that can contain values.<comment>see i25407</comment></paragraph>
+ </section>
+ <section id="Section3">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3147256"><bookmark_value>DGET function</bookmark_value>
+ <bookmark_value>cell contents;searching in Calc databases</bookmark_value>
+ <bookmark_value>searching;cell contents in Calc databases</bookmark_value>
+</bookmark><comment>mw added "cell contents;" and "searching;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBAUSZUG" id="bm_id3149198" localize="false"/>
+<h2 id="hd_id3147256">DGET</h2>
+ <paragraph xml-lang="en-US" id="par_id3152801" role="paragraph"><ahelp hid="HID_FUNC_DBAUSZUG">DGET returns the contents of the referenced cell in a database which matches the specified search criteria.</ahelp> In case of an error, the function returns either #VALUE! for no row found, or Err502 for more than one cell found.</paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3154696" role="code">DGET(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3155388" role="paragraph">In the above example (scroll up, please), we want to determine what grade a child is in, whose name was entered in cell A14. The formula is entered in cell B16 and differs slightly from the earlier examples because only one column (one database field) can be entered for <emph>DatabaseField</emph>. Enter the following formula:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3153096" role="paragraph">
+<item type="input">=DGET(A1:E10;"Grade";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3150524" role="paragraph">Enter the name <item type="input">Frank</item> in A14, and you see the result 2. Frank is in second grade. Enter <item type="input">"Age"</item> instead of "Grade" and you will get Frank's age.</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3148833" role="paragraph">Or enter the value <item type="input">11</item> in cell C14 only, and delete the other entries in this row. Edit the formula in B16 as follows:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3149912" role="paragraph">
+<item type="input">=DGET(A1:E10;"Name";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3148813" role="paragraph">Instead of the grade, the name is queried. The answer appears at once: Daniel is the only child aged 11.</paragraph>
+ </section>
+ <section id="Section4">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3149766"><bookmark_value>DMAX function</bookmark_value>
+ <bookmark_value>maximum values in Calc databases</bookmark_value>
+ <bookmark_value>searching;maximum values in columns</bookmark_value>
+</bookmark><comment>mw added "maximum..." and "searching;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBMAX" id="bm_id3158401" localize="false"/>
+<h2 id="hd_id3149766">DMAX</h2>
+ <paragraph xml-lang="en-US" id="par_id3154903" role="paragraph"><ahelp hid="HID_FUNC_DBMAX">DMAX returns the maximum content of a cell (field) in a database (all records) that matches the specified search conditions.</ahelp></paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3159157" role="code">DMAX(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3148442" role="paragraph">To find out how much the heaviest child in each grade weighed in the above example (scroll up, please), enter the following formula in B16:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3148804" role="paragraph">
+<item type="input">=DMAX(A1:E10;"Weight";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3150510" role="paragraph">Under Grade, enter <item type="input">1, 2, 3,</item> and so on, one after the other. After entering a grade number, the weight of the heaviest child in that grade appears.</paragraph>
+ </section>
+ <section id="Section5">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3159141"><bookmark_value>DMIN function</bookmark_value>
+ <bookmark_value>minimum values in Calc databases</bookmark_value>
+ <bookmark_value>searching;minimum values in columns</bookmark_value>
+</bookmark><comment>mw added "minimum..." and "searching;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBMIN" id="bm_id3159152" localize="false"/>
+<h2 id="hd_id3159141">DMIN</h2>
+ <paragraph xml-lang="en-US" id="par_id3154261" role="paragraph"><ahelp hid="HID_FUNC_DBMIN">DMIN returns the minimum content of a cell (field) in a database that matches the specified search criteria.</ahelp></paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3148479" role="code">DMIN(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3148925" role="paragraph">To find the shortest distance to school for the children in each grade in the above example (scroll up, please), enter the following formula in B16:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3149161" role="paragraph">
+<item type="input">=DMIN(A1:E10;"Distance to School";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3148917" role="paragraph">In row 14, under Grade, enter <item type="input">1, 2, 3,</item> and so on, one after the other. The shortest distance to school for each grade appears.</paragraph>
+ </section>
+ <section id="Section6">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3154274"><bookmark_value>DAVERAGE function</bookmark_value>
+ <bookmark_value>averages; in Calc databases</bookmark_value>
+ <bookmark_value>calculating;averages in Calc databases</bookmark_value>
+</bookmark><comment>mw added "averages;..." and "calculating;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBMITTELWERT" id="bm_id3166435" localize="false"/>
+<h2 id="hd_id3154274">DAVERAGE</h2>
+ <paragraph xml-lang="en-US" id="par_id3166453" role="paragraph"><ahelp hid="HID_FUNC_DBMITTELWERT">DAVERAGE returns the average of the values of all cells (fields) in all rows (database records) that match the specified search criteria.</ahelp></paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3150710" role="code">DAVERAGE(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3149104" role="paragraph">To find the average weight of all children of the same age in the above example (scroll up, please), enter the following formula in B16:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3153688" role="paragraph">
+<item type="input">=DAVERAGE(A1:E10;"Weight";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3155587" role="paragraph">In row 14, under Age, enter <item type="input">7, 8, 9,</item> and so on, one after the other. The average weight of all children of the same age appears.</paragraph>
+ </section>
+ <section id="Section7">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3159269"><bookmark_value>DPRODUCT function</bookmark_value>
+ <bookmark_value>multiplying;cell contents in Calc databases</bookmark_value>
+</bookmark><comment>mw added "multiplying..."</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBPRODUKT" id="bm_id3159281" localize="false"/>
+<h2 id="hd_id3159269">DPRODUCT</h2>
+ <paragraph xml-lang="en-US" id="par_id3152879" role="paragraph"><ahelp hid="HID_FUNC_DBPRODUKT">DPRODUCT multiplies all cells of a data range where the cell contents match the search criteria.</ahelp></paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3154854" role="code">DPRODUCT(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3148986" role="paragraph">With the birthday party example above (scroll up, please), there is no meaningful application of this function.</paragraph>
+ </section>
+ <section id="Section8">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3148462"><bookmark_value>DSTDEV function</bookmark_value>
+ <bookmark_value>standard deviations in databases;based on a sample</bookmark_value>
+</bookmark><comment>mw added "standard deviations...;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBSTDABW" id="bm_id3145370" localize="false"/>
+<h2 id="hd_id3148462">DSTDEV</h2>
+ <paragraph xml-lang="en-US" id="par_id3154605" role="paragraph"><ahelp hid="HID_FUNC_DBSTDABW">DSTDEV calculates the standard deviation of a population based on a sample, using the numbers in a database column that match the given conditions.</ahelp> The records are treated as a sample of data. That means that the children in the example represent a cross section of all children. Note that a representative result can not be obtained from a sample of less than one thousand.</paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3148661" role="code">DSTDEV(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3149934" role="paragraph">To find the standard deviation of the weight for all children of the same age in the example (scroll up, please), enter the following formula in B16:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3150630" role="paragraph">
+<item type="input">=DSTDEV(A1:E10;"Weight";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3153536" role="paragraph">In row 14, under Age, enter <item type="input">7, 8, 9,</item> and so on, one after the other. The result shown is the standard deviation of the weight of all children of this age.</paragraph>
+ </section>
+ <section id="Section9">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3150429"><bookmark_value>DSTDEVP function</bookmark_value>
+ <bookmark_value>standard deviations in databases;based on populations</bookmark_value>
+</bookmark><comment>mw added "standard deviations...;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBSTDABWN" id="bm_id3149523" localize="false"/>
+<h2 id="hd_id3150429">DSTDEVP</h2>
+ <paragraph xml-lang="en-US" id="par_id3145598" role="paragraph"><ahelp hid="HID_FUNC_DBSTDABWN">DSTDEVP calculates the standard deviation of a population based on all cells of a data range which match the search criteria.</ahelp> The records from the example are treated as the whole population.</paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3149484" role="code">DSTDEVP(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3155431" role="paragraph">To find the standard deviation of the weight for all children of the same age at Joe's birthday party (scroll up, please), enter the following formula in B16:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3148411" role="paragraph">
+<item type="input">=DSTDEVP(A1:E10;"Weight";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3143271" role="paragraph">In row 14, under Age, enter <item type="input">7, 8, 9,</item> and so on, one after the other. The result is the standard deviation of the weight for all same-aged children whose weight was checked.</paragraph>
+ </section>
+ <section id="Section10">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3154794"><bookmark_value>DSUM function</bookmark_value>
+ <bookmark_value>calculating;sums in Calc databases</bookmark_value>
+ <bookmark_value>sums;cells in Calc databases</bookmark_value>
+</bookmark><comment>mw added "calculating;" and "sums;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBSUMME" id="bm_id3148687" localize="false"/>
+<h2 id="hd_id3154794">DSUM</h2>
+ <paragraph xml-lang="en-US" id="par_id3149591" role="paragraph"><ahelp hid="HID_FUNC_DBSUMME">DSUM returns the total of all cells in a database field in all rows (records) that match the specified search criteria.</ahelp></paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3150989" role="code">DSUM(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3152766" role="paragraph">To find the length of the combined distance to school of all children at Joe's birthday party (scroll up, please) who are in second grade, enter the following formula in B16:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3151312" role="paragraph">
+<item type="input">=DSUM(A1:E10;"Distance to School";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3150596" role="paragraph">Enter <item type="input">2</item> in row 14 under Grade. The sum (1950) of the distances to school of all the children who are in second grade is displayed.</paragraph>
+ </section>
+ <section id="Section11">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3155614"><bookmark_value>DVAR function</bookmark_value>
+ <bookmark_value>variances;based on samples</bookmark_value>
+</bookmark><comment>mw added "variances;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBVARIANZ" id="bm_id3159391" localize="false"/>
+<h2 id="hd_id3155614">DVAR</h2>
+ <paragraph xml-lang="en-US" id="par_id3154418" role="paragraph"><ahelp hid="HID_FUNC_DBVARIANZ">DVAR returns the variance of all cells of a database field in all records that match the specified search criteria.</ahelp> The records from the example are treated as a sample of data. A representative result cannot be obtained from a sample population of less than one thousand.</paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3156138" role="code">DVAR(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3153701" role="paragraph">To find the variance of the weight of all children of the same age of the above example (scroll up, please), enter the following formula in B16:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3153676" role="paragraph">
+<item type="input">=DVAR(A1:E10;"Weight";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3153798" role="paragraph">In row 14, under Age, enter <item type="input">7, 8, 9,</item> and so on, one after the other. You will see as a result the variance of the weight values for all children of this age.</paragraph>
+ </section>
+ <section id="Section12">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3153880"><bookmark_value>DVARP function</bookmark_value>
+ <bookmark_value>variances;based on populations</bookmark_value>
+</bookmark><comment>mw added "variances;"</comment>
+<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DBVARIANZEN" id="bm_id3153891" localize="false"/>
+<h2 id="hd_id3153880">DVARP</h2>
+ <paragraph xml-lang="en-US" id="par_id3155119" role="paragraph"><ahelp hid="HID_FUNC_DBVARIANZEN">DVARP calculates the variance of all cell values in a database field in all records that match the specified search criteria.</ahelp> The records are from the example are treated as an entire population.</paragraph>
+ <embed href="text/shared/00/00000001.xhp#regulaer"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/>
+ <paragraph xml-lang="en-US" id="par_id3153776" role="code">DVARP(Database; DatabaseField; SearchCriteria)</paragraph>
+ <embed href="text/scalc/01/04060101.xhp#quotes"/>
+ <embed href="text/scalc/01/common_func.xhp#sectionexample"/>
+ <paragraph xml-lang="en-US" id="par_id3147099" role="paragraph">To find the variance of the weight for all children of the same age at Joe's birthday party (scroll up, please), enter the following formula in B16:</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3147322" role="paragraph">
+<item type="input">=DVARP(A1:E10;"Weight";A13:E14)</item>
+</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3146902" role="paragraph">In row 14, under Age, enter <item type="input">7, 8, 9,</item> and so on, one after the other. The variance of the weight values for all children of this age attending Joe's birthday party appears.</paragraph>
+ </section>
+</sort>
+<section id="relatedtopics">
+ <embed href="text/scalc/01/04060100.xhp#drking"/>
+ </section>
+ </body>
+</helpdocument>