I am building a cash flow model to determine my IRR depending on when I sell the investment.
The logic I am trying to follow for the equation is:
My Harvest Period is cell B11
My Current Period row ranges from 0:17 which equates to cells E2:V2
My cash flow if current period = harvest period ranges from E11:V11
My cash flow if current period > harvest period ranges from E12:V12
My cash flow if current period < harvest period ranges from E10:V10
(I only created these individual rows calculating my cash flow for each scenario for each period bc my equations were getting lengthy and I was trying to simplify the equation for troubleshooting)
My equation for Current Period 0 is: =IF($B$11=E2,E11,IF($B$11<E2,E12,E10))
I then copy and paste this into my subsequent periods.
What happens is I have my Harvest Period set at 4, and the equation works for Periods 0:4, then pulls 0 for Periods 5:9 like it should, but when I get to Periods 10:17 it pulls the value from row 10 like the current period < harvest period.
I've tried all sorts of things trying to figure this out and don't know what to do!
Can someone please help me?
I am happy to share the spreadsheet if that would make it easier, I just need some guidance on how to do that.
The logic I am trying to follow for the equation is:
- If current period is equal to harvest period, then populate the cell with the sell price minus the cash outflow for that period.
- If current period is greater than harvest period, then populate the cell with 0.
- If current period is less than harvest period, then populate the cell with the cash outflow for that period.
My Harvest Period is cell B11
My Current Period row ranges from 0:17 which equates to cells E2:V2
My cash flow if current period = harvest period ranges from E11:V11
My cash flow if current period > harvest period ranges from E12:V12
My cash flow if current period < harvest period ranges from E10:V10
(I only created these individual rows calculating my cash flow for each scenario for each period bc my equations were getting lengthy and I was trying to simplify the equation for troubleshooting)
My equation for Current Period 0 is: =IF($B$11=E2,E11,IF($B$11<E2,E12,E10))
I then copy and paste this into my subsequent periods.
What happens is I have my Harvest Period set at 4, and the equation works for Periods 0:4, then pulls 0 for Periods 5:9 like it should, but when I get to Periods 10:17 it pulls the value from row 10 like the current period < harvest period.
I've tried all sorts of things trying to figure this out and don't know what to do!
Can someone please help me?
I am happy to share the spreadsheet if that would make it easier, I just need some guidance on how to do that.