How to lookup data and round down to the lower of the return results if the lookup value falls in betwween the values in the lookup column

wpyles

New Member
Joined
Aug 8, 2013
Messages
1
I have a table full of values that I want to look up in a table like below (incomplete data set just for iillustration):


[TABLE="width: 96"]
<COLGROUP><COL style="WIDTH: 48pt" span=2 width=64><TBODY>[TR]
[TD="class: xl70, width: 64, bgcolor: transparent"]Aggregate Industry Equivalent Unit Score[/TD]
[TD="class: xl70, width: 64, bgcolor: transparent"]Industry Diversity Score[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.05[/TD]
[TD="bgcolor: transparent, align: right"]0.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.15[/TD]
[TD="bgcolor: transparent, align: right"]0.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.25[/TD]
[TD="bgcolor: transparent, align: right"]0.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.35[/TD]
[TD="bgcolor: transparent, align: right"]0.4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.45[/TD]
[TD="bgcolor: transparent, align: right"]0.5[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.55[/TD]
[TD="bgcolor: transparent, align: right"]0.6[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.65[/TD]
[TD="bgcolor: transparent, align: right"]0.7[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.75[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.85[/TD]
[TD="bgcolor: transparent, align: right"]0.9[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.95[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.05[/TD]
[TD="bgcolor: transparent, align: right"]1.05[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.15[/TD]
[TD="bgcolor: transparent, align: right"]1.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.25[/TD]
[TD="bgcolor: transparent, align: right"]1.15[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.35[/TD]
[TD="bgcolor: transparent, align: right"]1.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.45[/TD]
[TD="bgcolor: transparent, align: right"]1.25[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.55[/TD]
[TD="bgcolor: transparent, align: right"]1.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.65[/TD]
[TD="bgcolor: transparent, align: right"]1.35[/TD]
[/TR]
</TBODY>[/TABLE]

If the value I am looking up falls in between any of the values in Column A above (Aggregate Industry Equivalent Unit Score), I want it to return the applicable lower value from Column B (Industry Diversity Score) of the two numbers that it falls in between. For example, the results would be:


[TABLE="width: 96"]
<COLGROUP><COL style="WIDTH: 48pt" span=2 width=64><TBODY>[TR]
[TD="class: xl70, width: 64, bgcolor: transparent"]Aggregate Industry Equivalent Unit Score[/TD]
[TD="class: xl70, width: 64, bgcolor: transparent"]Industry Diversity Score[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.54[/TD]
[TD="bgcolor: transparent, align: right"]0.5[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.26[/TD]
[TD="bgcolor: transparent, align: right"]0.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.049[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.061[/TD]
[TD="bgcolor: transparent, align: right"]1.05[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.96[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.275[/TD]
[TD="bgcolor: transparent, align: right"]0.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.585[/TD]
[TD="bgcolor: transparent, align: right"]0.6[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.315[/TD]
[TD="bgcolor: transparent, align: right"]1.15[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1.315[/TD]
[TD="bgcolor: transparent, align: right"]1.15[/TD]
[/TR]
</TBODY>[/TABLE]

Is there are good formula trick for this?

Thank you.

 
Hi wpyles,
Yes you can use =VLOOKUP(D2,$A$2:$B$19,2,1)
When the last parameter is set to true (in this case 1) it works like you need/described
Cheers
Sergio
 
Upvote 0

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