PDA

View Full Version : Help with finding the right function



leal72
01-08-2010, 09:29 AM
I'm trying to find a function to use rather than using a loop, or a function that maybe work like a loop.

What I need to do is go through column B and find the first instance that is equal to ro greater than the number in cell H2.

I was able to do this using a loop but the end user would like it to be more flexible. I may just have set it so the user could just run the loop again if and when the value of H2 gets changed but I'm looking for a possible alternative.

Bob Phillips
01-08-2010, 10:15 AM
Use an array formula

=INDEX(A:A,MIN(IF(A1:A2000>=H2,ROW(A1:A2000))))

Bob Phillips
01-08-2010, 10:16 AM
Use an array formula

=INDEX(A:A,MIN(IF(A1:A2000>=H2,ROW(A1:A2000))))