I want to calculate IRR where I have 3 sequential inputs: initial value, a series of payments, a final value. The number of payments is variable and therefore, I want to create a dynamic array within the formula which IRR can take as input. I wrote a formula below but the result is sort of unexpected:
Data:
A
-----
1 -15
2 10
3 10
4 10
5 5
{=IF( ROW(1:5)=1 , IF(ROW(1:1),$A$1,"") , IF(ROW(1:4)<4,$A$2:$A$4,$A$5))}
This should result in {-15,10,10,10,5}
However, this results in {-15,10,10,5,#N/A}
What is wrong here? Or is there an easier/better way?


...ROW(1:4)<=4...