Combination of looking up a value in a given range with a certain criteria in excel

Macro212

New Member
Joined
Aug 29, 2018
Messages
11
Here is an example of what my dataset looks like in excel:

Column A Column B Column C Column D
Row 2 A B C
Row 3 1-1400 .25 .75 .50
Row 4 1400-1500 .50 .25 .30
Row 5 1501 .4 .5 .6
Row 6 1502-1700 .5 .6 .8


Rate Table

Range Category Rate
1300 A
1550 B
1300 B
1543 B


I essentially want to look up the number that is in the range column in the rate table, along with the associate category to find the appropriate rate. Im thinking it should be a combination of an index match statement but nothing seems to be working. Can you please help?

I.e. for the first one, my value would be .25, since it falls in the 1-1400 rate and is assigned a category A.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome to the MrExcel board!

Just put the starting value for each range instead of the whole range in column A. (I have assumed the second range should actually start at 1401 since 1400 was already included in the first range.)
If you really want to see the end of the range too, put it in another column as I have done below.

Formula in C9 is copied down.

Excel Workbook
ABCDE
1StartEndABC
2114000.250.750.5
3140115000.50.250.3
4150115010.40.50.6
5150217000.50.60.8
6
7
8RangeCategoryRate
91300A0.25
101550B0.6
111300B0.75
121543B0.6
Lookup rate
 
Last edited:
Upvote 0
You’re welcome. Thanks for letting us know. :)
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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