Formula to get the data compared to table

Sathisc

Board Regular
Joined
Jul 29, 2008
Messages
103
Hi,

I have the below table with "From (column A), To(Column B) & Unit(Column C)". In E1 when the data is entered, the formula should check if the numbers is between or equal to the number and give the updated units. In the below table if E1 = 200 then E2 should get 3.5(formula) comparing the table.


FromToUnits
0450
46601
61751.25
76901.5
911051.75
1061202
1211352.25
1361502.5
1511652.75
1661803
1811953.25
1962103.5
2112253.75
2262404
2412554.25
2562704.5
2712854.75
2863005
3013155.25
3163305.5
3313455.75
3463606
3613756.25
3763906.5
3914056.75
4064207
4214357.25
4364507.5
4514657.75
4664808

<tbody>
</tbody>

thanks in advance
 
Last edited by a moderator:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Simply use VLOOKUP with the approximate match argument.
Set you lookup tables exactly as you have shown here.

Let's say that the data is in cells A2:C31, and the value you are looking up is in cell E1.
Then use this formula:
Code:
=VLOOKUP(E1,A2:C31,3,TRUE)

You can Google "Excel VLOOKUP" if you want to learn more about VLOOKUP, and see other examples.
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,216,756
Messages
6,132,533
Members
449,733
Latest member
Nameless_

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