From 849d86762b4db20bbe7ce00ee3603a081f4872ff Mon Sep 17 00:00:00 2001 From: Steve Fanning Date: Sun, 19 Apr 2020 19:38:45 +0100 Subject: Update syntax section of Help for Calc's DCOUNT and DCOUNTA functions to indicate how to omit middle parameter (see bug 131362). Change-Id: Ib1fd850371c1876f16c10905994a92ac83a5a351 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/92443 Tested-by: Olivier Hallot Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/scalc/01/04060101.xhp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') diff --git a/source/text/scalc/01/04060101.xhp b/source/text/scalc/01/04060101.xhp index 503f97d8db..76e83be244 100644 --- a/source/text/scalc/01/04060101.xhp +++ b/source/text/scalc/01/04060101.xhp @@ -421,6 +421,7 @@ DCOUNT(Database; [DatabaseField]; SearchCriteria) If the DatabaseField argument is omitted, DCOUNT returns the count of all records that satisfy Criteria. + If you choose to omit the DatabaseField argument, your formula should be of the form =DCOUNT(Database; ; SearchCriteria). 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. @@ -439,6 +440,7 @@ DCOUNTA(Database; [DatabaseField]; SearchCriteria) If the DatabaseField argument is omitted, DCOUNTA returns the count of all records that satisfy Criteria. + If you choose to omit the DatabaseField argument, your formula should be of the form =DCOUNTA(Database; ; SearchCriteria). 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 =DCOUNTA(A1:E10;"Name";A13:E14). Delete the old search criteria and enter >=E 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.see i25407 -- cgit