<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 conditions does not work correct when data are loaded from a .xls file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108978">108978</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>countif conditions does not work correct  when data are loaded from a .xls file
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>5.4.0.1 rc
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (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>alfredocubitos@yahoo.com.mx
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Loading data from a .xls file COUNTIF works only if the condition is defined in
the selected range.
A condition defined in a different cell or within the formula does not work.

example
A  B
1  1
1
2
3
4

COUNTIF(A1:A5;1) => 0 -> wrong
COUNTIF(A1:A5;B1) => 0 -> wrong
COUNTIF(A1:A5;&B1) => ### -> wrong

COUNTIF(A1:A5;A1) => 2 -> correct

When I add a separate ranges manually COUNTIF works correct
This seems to be a character encoding problem 

Also loading the data from a csv file ISO-8859-15 encoded COUNTIF works correct</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>