Formula to identify first year of positive cash flows

CHBC1

New Member
Joined
Aug 10, 2015
Messages
21
EDIT: I just figured it out. I don't know why I was having such a brain fart, but I just used a nested If statement to check whether the number was above 0. There are only 5 columns, so it wasn't bad at all. I guess I'm just curious now...are there any other cool excel functions to do this for me other than using a nested IF statement?

Thanks!

Initial post:
-------------------
Hello,

I know there must be a relatively straightforward situation, but I can't seem to wrap my mind around this. I have a spreadsheet that's calculating the cumulative net returns on investment of a project. I want to write a formula to automatically look at the data and tell me how many years it will take to turn positive. The data set looks something like this

Year:CY16CY17CY18CY19CY20
Cumulative Net Returns-16-26-13942

<tbody>
</tbody>

So the data is basically saying our payback period is 4 years (i.e. it will take 4 years for the additional revenue produced fromt his project to outweigh the initial implementation/ongoing costs).

What formula can I write to look at this data table and tell me how many years it takes to get to positive cash flows? For the sake of this example, let's say the "Year" cell is A1.

Thanks for your help!
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
This might be simpler than a nest of IFs.

ABCDEFG
1Year:CY16CY17CY18CY19CY20
2Cumulative Net Returns-16-26-13942
34

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet23

Array Formulas
CellFormula
G3{=MATCH(TRUE,B2:F2>0,0)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
This might be simpler than a nest of IFs.

ABCDEFG
1Year:CY16CY17CY18CY19CY20
2Cumulative Net Returns-16-26-13942
34

<tbody>
</tbody>
Sheet23

Array Formulas
CellFormula
G3{=MATCH(TRUE,B2:F2>0,0)}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

Very clever formula! That works perfectly. Thanks for the answer!
 
Upvote 0

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top