Bug 125365 - XIRR function doesn't work with concatenated ranges (using ~)
Summary: XIRR function doesn't work with concatenated ranges (using ~)
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Function
  Show dependency treegraph
 
Reported: 2019-05-19 05:23 UTC by abe
Modified: 2019-06-04 10:27 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abe 2019-05-19 05:23:10 UTC
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:

https://ask.libreoffice.org/en/question/81399/how-to-concatenate-two-ranges/
https://forum.openoffice.org/en/forum/viewtopic.php?p=122245
Comment 1 raal 2019-05-20 14:56:36 UTC
Confirm with Version: 6.3.0.0.alpha0+
Build ID: 630db80d17616d635cf2e5f1d5a0852428b794a3
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: x11; 

Looks like inherited from OOo:https://wiki.openoffice.org/wiki/Documentation/How_Tos/Calc:_XIRR_function
Comment 2 Eike Rathke 2019-05-21 09:20:07 UTC
Nobody said it would. Union ranges work only with a few functions. AFAIR Excel doesn't support union ranges in XIRR() either, or does it?
Comment 3 abe 2019-05-23 01:46:05 UTC
Tried in Excel 2010, also doesn't support it.

What other info is needed? Let's change to an enhancement request then if it isn't considered a bug?
Comment 4 QA Administrators 2019-05-23 02:51:30 UTC Comment hidden (obsolete)
Comment 5 Regina Henschel 2019-06-01 11:40:45 UTC
Correct component is Calc
Comment 6 Eike Rathke 2019-06-03 10:57:53 UTC
I don't see much of a use case, it would just introduce yet another interoperability hurdle. I'd rather close this as wontfix/notabug.
Comment 7 Xisco Faulí 2019-06-04 10:27:39 UTC
(In reply to Eike Rathke from comment #6)
> I don't see much of a use case, it would just introduce yet another
> interoperability hurdle. I'd rather close this as wontfix/notabug.

Let's do it then