scan a series of numbers and when it turns postive give me the yea

G

Guest

Hi,

I have two rows; one is a row of years and the other is a series of negative
to positive values (goes from negative then positive) for each year.

i.e.
2002,2003,2004,2005,2006,2007,2008
-100, -75, -33,-12, 5, 8, 50

The values row will change over time based on other formulas. (they're a
series of cash flows)

so if I had to do it manually, based on the sample above, for the first
year the values turned positive, the answer would be year 2006. But of
course the values will change as they are formulas.

So how can I set up a function to give me in a designated cell the first
year that the values turn from negative to positive.

I was thinking hlookup but that depends on a specific value such as 0 so I
am not sure. Can you help?

thank you very much

Craig
 
V

vezerid

This relatively simple formula will work if you already have one
positive value.

=INDEX(A1:AZ1,MATCH(0,A2:AZ2,1)+1)

How likely is it to get a 0 before going positive?

HTH
Kostis Vezerides
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top