<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 - Sumproduct delivers wrong result from calculated external data"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123863">123863</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Sumproduct delivers wrong result from calculated external data
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Mac OS X (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>christoph@vogelbuschnet.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=149735" name="attach_149735" title="The attached to files are "BUG SUMPRODUCT" (open this and have the link updated automatically or manually) and "BUG External Data".">attachment 149735</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=149735&action=edit" title="The attached to files are "BUG SUMPRODUCT" (open this and have the link updated automatically or manually) and "BUG External Data".">[details]</a></span>
The attached to files are "BUG SUMPRODUCT" (open this and have the link updated
automatically or manually) and "BUG External Data".

Summary:
The attached example shows that under the given conditions SUMPRODUCT fails:
• Data is from an external table
• Data in that table is calculated
• Data is refreshed manually or automatically

Setup:
The attached tables are one data table that feeds content to our test table.
I use SUMPRODUCT which claims a certain word is found zero times. Below I do
the same comparison but with IF and it works and the SUM over the IF also
works.

What you see:
C1 is (after updating the table) 0 but should be like C2 8

Conditions to narrow the problem down:
The following changes make SUMPRODUCT work correctly:
• If the linked data is replaced by the same context but as text instead of
formula
• !!! Running SUMPRODUCT manually after the connections have been updated (copy
the Formula from C1 into C1 and the result is correct again) !!!

I hope with all of this the bug is trivial to find!</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>