OS version: Windows 11
App version: 9.1.0
Downloaded from: ONLYOFFICE website
The financial functions IRR and XNPV have a bug in that they will not accept ranges that specify the sheet, nor if you use a named range. This will result in either a #NUM! or #VALUE! error, with the details in the two examples below.
IRR example
e.g. assume there is a range of monetary values in the cells from B2 to E2 in sheet “sheet2”, and that this range is also named NamedMoneyRange. For my example below, I use -5000, 2000, 2000, 2000.
If you try IRR(B2:E2), the program will output the IRR, e.g. “9.70%”.
If you try IRR(Sheet1!B2:E2) or IRR(NamedMoneyRange), you will get a #NUM! error.
XNPV example
e.g. assume again there is a range of monetary values in the cells from B2 to E2 in sheet “Sheet1”, and that this range is named NamedMoneyRange. Assume also that there are a series of dates in the cells from B1 to E1 in “Sheet1” and that this range is named “NamedDateRange”. For my example below, I again use monetary values of -5000, 2000, 2000, 2000, and I use dates of 30/11/2025, 30/11/2026, 30/11/2027, 31/12/2028.
If you try XNPV(5%,B2:E2,B1:E1), the program will output the NPV, e.g. “$439.12”.
You will get a #NUM! error though if you do one of the following:
XNPV(5%,Sheet1!B2:E2,B1:E1) or XNPV(5%,B2:E2,Sheet1!B1:E1) or XNPV(5%,B2:E2,NamedDateRange) or XNPV(5%,NamedMoneyRange,B1:E1)
You will get a #VALUE! error if you do one of the following:
XNPV(5%,Sheet1!B2:E2,Sheet1!B1:E1)
XNPV(5%,NamedMoneyRange,NamedDateRange)
I hope that this succinctly describes the bug with sufficient detail.
Also note that the XIRR and NPV functions are NOT affected by this bug. Both those functions behave as expected when using either named ranges or specifying the sheet in the formula.


