Next highest Value

T

Thanks

I have a list of values...
B1 0
B2 238
B3 263
B4 510
B5 585
B6 774
B7 931

=INDEX(R22:R28,MATCH(R21,R21:R28,1)) works except when there is an exact
match (i.e., 238)

I would like a formula that will, when I enter a value in A1 that if not in
the list will look up the next highest value.

A1=238 Formula returns 238 A1=24 Formula returns 263

Help I cant see the forest for the trees....
 
T

T. Valko

Try this array formula** :

=MIN(IF(B1:B7>=A1,B1:B7))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

If the lookup value is greater than the max value of the range the result
will be 0.
 

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