<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 - count functions count also empty fields"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123785">123785</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>count functions count also empty fields
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.1.3.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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>burkhard.kasten@gmx.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Commands like

 =ZĂ„HLENWENN(B11:B85;"<>0")
or
 =COUNTIF(D11:D85;"<>0")

count also empty fields.


Fields which contain 0 are not counted (correct)
Fields which contain nothing are counted (wrong)



Steps to Reproduce:
Create a new Calc file
Select field A1
Enter command like
 =ZĂ„HLENWENN(B11:B85;"<>0")
or
 =COUNTIF(D11:D85;"<>0")

Result is 75 even if all fields are empty

Actual Results:
75


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: de
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no</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>