<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 - Exporting to XLSX makes Excel show error and drop pivot table, if table's data has Err:504 instead of #REF!"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123923">123923</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Exporting to XLSX makes Excel show error and drop pivot table, if table's data has Err:504 instead of #REF!
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>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>mikekaganski@hotmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=149786" name="attach_149786" title="Exporting this to XLSX makes Excel to drop pivot table">attachment 149786</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=149786&action=edit" title="Exporting this to XLSX makes Excel to drop pivot table">[details]</a></span>
Exporting this to XLSX makes Excel to drop pivot table

When a pivot table is based on data including a formula like this:

<span class="quote">> =COUNTIF(#REF!;0)</span >

then saving the spreadsheet to XLSX produces a file that MS Excel opens with
error like

<span class="quote">> We found a problem with some content in `file.xlsx`. Do you want us to try to
> recover as much as we can? If you trust the source of this workbook, click Yes.</span >

And confirming this drops the pivot table.

The attachment contains a minimal reproducer.

Tested with Version: 6.2.2.1 (x64)
Build ID: fcd633fb1bf21b0a99c9acb3ad6e526437947b01
CPU threads: 12; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL</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>