<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 - MATCH applied to a search array introduced by an OFFSET subexpression results in Err:504."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116100">116100</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MATCH applied to a search array introduced by an OFFSET subexpression results in Err:504.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0.2.1 release
          </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>jag@psilosoph.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=140235" name="attach_140235" title="The demo mentioned in the text">attachment 140235</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=140235&action=edit" title="The demo mentioned in the text">[details]</a></span>
The demo mentioned in the text

A formula like =MATCH($B$3;OFFSET($C$3;G3:G8;H3:H8;1;1);0) fails returning
Err:504.
The OFFSET subexpression turned into the formula =OFFSET($C$3;G3:G8;H3:H8;1;1)
elswhere returns the expected array, however.

Conclusion: MATCH does not correctly accept a search array returned by an
OFFSET expression under (iterative) array-evaluation due to arrays on the
second and the third parameter position. 

Older versions evaluate expressions of the mentioned kind correctly as
expected.

I came about this trying to answer a user question about searching in 2D-arrays
in a forum. I tried to reactivate older examples using formulae of the kind
that had worked but did no longer.

A reduced example is attached.</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>