Lookup with a Range/Limit

DBCox

Board Regular
Joined
Jul 5, 2012
Messages
52
Hello everyone,

I am working on a workbook where I need to look up a value based on a range of values. I need a formula (not a macro) to locate a parameter based on another parameter that must fall within a bracket/limit. So, I will need Excel to compare two values in a table to determine which row it should be looking at, and then return a value.

Example:

A
B
1
Beam Length
Thickness
2
12
1.5
3
7
1

<TBODY>
</TBODY>

Column B should be automatically determined with the formula by referencing the lookup table below.

D
E
F
1
MIN. LENGTH
MAX. LENGTH
THICKNESS
2
0.0
5.99
0.5
3
6
9.99
1
4
10
13.99
1.5
5
14
20
2

<TBODY>
</TBODY>


I have been able to make it work by using:
Code:
=if(and(A2">"D2,A2"<"E2,F2,if(...<E2),F2,IF(...[COLOR=#222222][FONT=Verdana]<E2),F2,IF(... span  <>[/FONT][/COLOR]
That gets quite cumbersome though as the lookup table grows. I am hoping there is a better way.<E2),F2,IF... grows.="" table="" lookup="" the="" as="" gets="" cumbersome="" quite="" is="" that="" better="" a="" there="" hoping="" am="" i="" though="" way.


Sorry for the quotes around the carrots. HTML didn't like it without them...

Thanks!

David</E2),F2,IF...>
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,214,632
Messages
6,120,649
Members
448,975
Latest member
sweeberry

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top