This is my first post here so I hope I am inside the rules. I cannot find the solution to this problem anywhere.
I have a spreadsheet with the price of a stock in one column and projected future earnings in another. Projected future earnings runs for 300 years (the reason is not important -- it is somebody's else's sheet). At each historical point for which I have a stock value, up to the latest observation, I want to find the IRR of future earnings.
To find the IRR at each point, I need a new array that has the current stock price on the date in question (negative, obviously) and all of the future earnings in one column. To do this, I have used the following formula, entered as an array formula:
{=INDEX(A57:D$300,ROW(A57:A$300)-ROW(A56),IF(ROW(A57:A$300)-ROW(A57)+3>4,4,ROW(A57:A$300)-ROW(A57)+3))}
The first value in this array is the negative starting value (from column 3) and the rest of the values are the positive future earnings (from column 4).
Now, when I put this array into a range of cells, so that I can see the array in full, and then apply the IRR formula to that range of cells, I get the answer I am expecting. However, if I change the formula to:
{=IRR(INDEX(A57:D$300,ROW(A57:A$300)-ROW(A56),IF(ROW(A57:A$300)-ROW(A57)+3>4,4,ROW(A57:A$300)-ROW(A57)+3)))}
... then I get a #NUM error.
Any help much appreciated!
I have a spreadsheet with the price of a stock in one column and projected future earnings in another. Projected future earnings runs for 300 years (the reason is not important -- it is somebody's else's sheet). At each historical point for which I have a stock value, up to the latest observation, I want to find the IRR of future earnings.
To find the IRR at each point, I need a new array that has the current stock price on the date in question (negative, obviously) and all of the future earnings in one column. To do this, I have used the following formula, entered as an array formula:
{=INDEX(A57:D$300,ROW(A57:A$300)-ROW(A56),IF(ROW(A57:A$300)-ROW(A57)+3>4,4,ROW(A57:A$300)-ROW(A57)+3))}
The first value in this array is the negative starting value (from column 3) and the rest of the values are the positive future earnings (from column 4).
Now, when I put this array into a range of cells, so that I can see the array in full, and then apply the IRR formula to that range of cells, I get the answer I am expecting. However, if I change the formula to:
{=IRR(INDEX(A57:D$300,ROW(A57:A$300)-ROW(A56),IF(ROW(A57:A$300)-ROW(A57)+3>4,4,ROW(A57:A$300)-ROW(A57)+3)))}
... then I get a #NUM error.
Any help much appreciated!