Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Find 1st positive no in series

45 views
Skip to first unread message

MAMonahan

unread,
May 30, 1998, 3:00:00 AM5/30/98
to

I have a spreadsheet showing projected cash flows for future periods for a
proposed investment. Each column represents a period (month, quarter or year),
and the foot of each column shows the net cash flow projected for that period
and the cumulative cash flow for all periods up through that one.

I am trying to have the spreadsheet return the payback period automatically.
That is, I want it to list on a cover page the period in which cumulative cash
flow first becomes positive. There must be some easy way to do this, but I
cannot find a built in function to handle it. Maybe I have to write a macro or
program to have it loop through the cumulative cash flow row, moving to the
next cell if the current one is negative and returning a reference to the top
cell (showing what period it is) when the loop finally hits a posive number?

Any guidance would be appreciated.

Ogilvy

unread,
May 30, 1998, 3:00:00 AM5/30/98
to

Mamonahan,

The following formula does this if the first positive number is less than
10,000. If it will be greater, increase the 10000 in the formula to a higher
number. This was tested on a sheet with the headers you want to return on row
1, The columns with the headers went from Column B to Column H (4 columns).
This formula returned the column header with the first positive value in in
row 10. This assumes that the numbers will be ascending since it returns the
header for the column with the minimum positive number in row 10.

=INDEX($B1:$E1,0,MATCH(MIN(IF($B$10:$E$10 <=
0,10000,$B$10:$E$10)),$B$10:$E$10,0))

Hope this does what you want.

Tom Ogilvy

In article <199805301916...@ladder01.news.aol.com>,
mamo...@aol.com says...

0 new messages