<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 - XIRR function doesn't work with concatenated ranges (using ~)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125365">125365</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>XIRR function doesn't work with concatenated ranges (using ~)
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Windows (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>Formula Editor
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>abe@ualberta.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
XIRR function doesn't work with concatenated/unioned ranges (using the tilde
operator ~)

This works:
=XIRR(L2:L289,C2:C289)

This doesn't work, and gives an Err:504 instead:
=XIRR(L2:L288~L289, C2:C288~C289)

Using the tilde ~ operator works for other functions, such as SUM(). All of
these work and give the same result:
=SUM(L2:L289)
=SUM(L2:L288~L289)
=SUM(L2:L287~L288:L289)

Steps to Reproduce:
1. Create 2 columns, one with dates and one with numbers
2. Use the XIRR function, giving it those 2 columns as input and using a ~
concatenation for at least one of the 2 columns, concatenating two halves of
it.


Actual Results:
Err:504

Expected Results:
XIRR returns a correct result.


Reproducible: Always


User Profile Reset: No



Additional Info:
Others have noticed this bug too:

<a href="https://ask.libreoffice.org/en/question/81399/how-to-concatenate-two-ranges/">https://ask.libreoffice.org/en/question/81399/how-to-concatenate-two-ranges/</a>
<a href="https://forum.openoffice.org/en/forum/viewtopic.php?p=122245">https://forum.openoffice.org/en/forum/viewtopic.php?p=122245</a></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>