<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - countif function incorrectly counts empty cells when using "=0" or "<>0" criteria"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=122321">122321</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>countif function incorrectly counts empty cells when using "=0" or "<>0" criteria
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.1.4.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anwx@protonmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
Open new calc sheet.
Left column A empty
In cell A2 type function =countif($A$1:$A$2;"<>0")
In cell A3 type function =countif($A$1:$A$2;"=0")
Result:
Criteria "<>0" (cell A2) is 2 should be 0
Criteria "=0" (cell A3) is 0 should be 2
Till version 6.1.2 was correct.
Steps to Reproduce:
1. Open new calc sheet.
2. Left column A empty
3. In cell A2 type function =countif($A$1:$A$2;"<>0")
4. In cell A3 type function =countif($A$1:$A$2;"=0")
5. Check the results
Actual Results:
countif($A$1:$A$2;"<>0") = 2
countif($A$1:$A$2;"=0") = 0
Expected Results:
countif($A$1:$A$2;"<>0") = 0
countif($A$1:$A$2;"=0") = 2
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 6.1.4.2 (x64)
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
Threads CPU: 8; OS:Windows 6.1; UI render:default;
Regional settings: pl-PL (pl_PL); Calc: group threaded
Results was correct in version 6.1.2.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>