From c1724f5eeef808cefac89d5101c25f06aab1a55a Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 26 May 2016 23:55:42 +0200 Subject: tdf#70806 get rid of the "number 0 for the entire database" nonsense 1. there is no "entire database" in this context 2. 0 was an old workaround for an omitted argument that Excel knows for DCOUNT and DCOUNTA functions to count records that match the criteria without applying a further count on a selected column, but not for other functions 3. Excel does not know a 0 argument 4. ODFF does not specify a 0 argument => so give examples that don't use it. Change-Id: I03654e90798a97bfd37a5f20de26d45e96726206 (cherry picked from commit f5f2b4982350ee6e0616d49742b29b0a57edbbbb) Reviewed-on: https://gerrit.libreoffice.org/25525 Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- source/text/scalc/01/04060101.xhp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/text/scalc/01/04060101.xhp') diff --git a/source/text/scalc/01/04060101.xhp b/source/text/scalc/01/04060101.xhp index cceac7d3c5..41dc0c9c05 100644 --- a/source/text/scalc/01/04060101.xhp +++ b/source/text/scalc/01/04060101.xhp @@ -398,14 +398,14 @@ - The formula in cell B16 is =DCOUNT(A1:E10;0;A13:E14) + The formula in cell B16 is =DCOUNT(A1:E10;D1;A13:E14) Database Function Parameters: The following items are the parameter definitions for all database functions: Database is the cell range defining the database. -DatabaseField 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. Use the number 0 to specify the whole data range. To reference a column by means of the column header name, place quotation marks around the header name. +DatabaseField 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. To reference a column by means of the column header name, place quotation marks around the header name. SearchCriteria is the cell range containing search criteria. 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. @@ -419,18 +419,18 @@ DCOUNT - DCOUNT counts the number of rows (records) in a database that match the specified search criteria and contain numerical values. + DCOUNT counts the number of rows (records) in a database that match the specified search criteria and contain numerical values in the DatabaseField column. Syntax DCOUNT(Database; DatabaseField; SearchCriteria) - For the DatabaseField parameter you can enter a cell to specify the column, or enter the number 0 for the entire database. The parameter cannot be empty. + For the DatabaseField parameter you can enter a cell to specify the column. Example - 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 =DCOUNT(A1:E10;0;A13:E14) in B16. The Function Wizard helps you to input ranges. + 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 =DCOUNT(A1:E10;D1;A13:E14) in B16. The Function Wizard helps you to input ranges. -Database is the range of data to be evaluated, including its headers: in this case A1:E10. DatabaseField specifies the column for the search criteria: in this case, the whole database. SearchCriteria is the range where you can enter the search parameters: in this case, A13:E14. +Database is the range of data to be evaluated, including its headers: in this case A1:E10. DatabaseField specifies the column for the search criteria: in this case, the column with the numerical distance values. SearchCriteria is the range where you can enter the search parameters: in this case, A13:E14. To learn how many children in second grade are over 7 years of age, delete the entry >600 in cell D14 and enter 2 in cell B14 under Grade, and enter >7 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.
@@ -672,4 +672,4 @@
- \ No newline at end of file + -- cgit