From 4e4118d7e8b08b9ea42e37f75f7ef168bdab0745 Mon Sep 17 00:00:00 2001 From: Seth Chaiklin Date: Thu, 19 Nov 2020 18:03:38 +0100 Subject: [PATCH] tdf#114660 add explanation about setting regex option in Calc help example Change-Id: I6da4f95cb4cdb09a4d2ccdbf35fab7f5f5db1102 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/106137 Tested-by: Jenkins Reviewed-by: Seth Chaiklin --- source/text/scalc/01/func_countifs.xhp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/text/scalc/01/func_countifs.xhp b/source/text/scalc/01/func_countifs.xhp index 8d57b125ca..9047b8b324 100644 --- a/source/text/scalc/01/func_countifs.xhp +++ b/source/text/scalc/01/func_countifs.xhp @@ -44,6 +44,7 @@ =COUNTIFS(B2:B6;">=20";C2:C6;">70") Counts the amount of rows that contain simultaneously values greater than 70 in the C2:C6 range and values greater than or equal to 20 in the B2:B6 range. Returns 2, because the second, the fifth and the sixth rows do not meet at least one criterion.

Using regular expressions and nested functions

+For these examples to work as described, make sure that Enable regular expressions in formulas is selected in %PRODUCTNAME > PreferencesTools > Options > $[officename] Calc > Calculate. =COUNTIFS(B2:B6;"[:alpha:]*") Counts the amount of rows of the B2:B6 range that contain only alphabet symbols. Returns 1, because only sixth row meets the criterion. =COUNTIFS(B2:B6;">"&MIN(B2:B6);B2:B6;"<"&MAX(B2:B6))