Problem description: Steps to reproduce: 1. Cell A1 = "text (more text)" 2. Cell B1 = =COUNTIF(A1:A4,A1) Current behavior: Cell B1 = 0 Expected behavior: Cell B1 = 1 Without the () the formula works correctly. ex: 1. Cell A1 = "text more text" 2. Cell B1 = =COUNTIF(A1:A4,A1) Cell B1 = 1 Operating System: Windows 7 Version: 4.2.2.1 release
Hi Nick, thanks for reporting. If you disable regular expressions in: Menu/Tools/Options/LibreOffice calc/Calculation - regular expression, the formula works fine. Please take in account that COUNTIF() use regular expressions and the parenthesis are part of them, to search for a parenthesis with regular expressions activated you need to precede the parenthesis with a back slash \( or \). (Search in the help for regular expression to learn more about it). To solve this situation you can do: =COUNTIF(A1:A4;SUBSTITUTE(SUBSTITUTE(A1;"(";"\(");")";"\)")) So for me there is not a bug, please if you are not agree reopen it.