LOOKUP FORMULA - USING THRESHOLDS - HELP

T

txm49

Trying to create a lookup using thresholds. Col B represents the upper
limit, Col C represents the return value. Using the table below:

If I had a cell in Col A with the value of 8, I would expect a return value
of 1 from Col C.

If I had a cell in Col A with the value of 78, I would expect a return value
of 3 from Col C.

Col B Col C
18 1
54 2
90 3
126 4
162 5
198 6
234 7
270 8
306 9
342 10
378 11
414 12
450 13
486 14
522 15
558 16
594 17

Is there a lookup formula for this? Is there a better way of doing this?

Thanks!
 
N

Niek Otten

Note that with a slight change in your data layout you could have used a
much simpler formula:

0 1
18 2
54 3
90 4
etc.

Your formula in that case:

=VLOOKUP(A1,B1:C100,2)
 
N

NBVC

or even more simple:

=LOOKUP(A1,B1:C100)

Note that with a slight change in your data layout you could have use
a
much simpler formula:

0 1
18 2
54 3
90 4
etc.

Your formula in that case:

=VLOOKUP(A1,B1:C100,2)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel
 

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