Reputation: 1
I'm trying to add XIRR formula to pivot table but either I'm doing something wrong, either it's impossible.
Here on the picture is sample data, formula I've put and XIRR calculated in single cell with the same data (so It works outside pivot table)
Upvotes: 0
Views: 1034
Reputation: 84465
I don't think so as the calculated field cannot work with arrays and will sum across the underlying data.
Look at how SUMPRODUCT misbehaves due to summing underlying data:
Pivottable calculated fields will operate on the underlying data and the XIRR
function needs at least one negative and one positive value, which it wouldn't have with the summed underlying data.
As per Microsoft XIRR guidance:
XIRR expects at least one positive cash flow and one negative cash flow; otherwise, XIRR returns the #NUM! error value.
Upvotes: 0