<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 returns #N/A if found value is from a formula"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=144142">144142</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MATCH returns #N/A if found value is from a formula
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.2.0.4 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>andreas@netts.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
If the value, that would match, is from a formula (for example, from a
reference to another cell), match dos not return the row, but an #N/A


Steps to Reproduce:
Attached spreadsheet demonstrates the different results. 

Cell A15 contains the search value
Column B contains the raw values, B15 contain =MATCH(A15;B2:B13;0) -> 4
Column C contains the values as ref to column B, C15 contain
=MATCH(A15;C2:C13;0) -> #N/A

If only the cell, that contains the value, that match would find, if it worked,
is not a reference, than MATCH works again. This is demonstrated in column D



Actual Results:
MATCH fails, if found value is from a formula

Expected Results:
MATCH should find the value regardless, if it stems from a formula or not


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.4 / LibreOffice Community
Build ID: 20(Build:4)
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
7.2.0-1
Calc: threaded</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>