Vlookup (or IndexMatch) based on a range of values?

thp510

Board Regular
Joined
Oct 19, 2015
Messages
110
Office Version
  1. 365
Platform
  1. Windows
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>I have the following score bands (column C) and their associated categories (column D). I also have a list of scores of several hundred individuals. For example, if there's an individual that scores 351 (cell A3) --they would be in the SMB category since it's between 0-1000 (excluding 1000). If someone scores just 3513 pts (Cell A4), they would be in the ENT category since it's above 3000 but not yet above 5000, which is the score you need to be in the next category, etc. etc--you get the gist. I have hundreds of rows of individual scores that are between 0 and 5,000 and would like to do a Vlookup on the score bands so I can see which category to put them in. Is there a Vlookup function that can tell me which category to put someone in? I'd rather do this than do multiple IF statements. Please help! Thank you in advance.

Column AColumn BColumn CColumn D
Row 1SCORESCategory
Row 24130?SMB0
Row 3351?Grow1000
Row 43513?MID2000
Row 53?ENT3000
Row 6351?STRAT5000
Row 7511?
Row 8331?

<tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
try this


Excel 2013/2016
ABCD
1SCORESCategory
24130ENTSMB0
3351SMBGrow1000
43513ENTMID2000
53SMBENT3000
6351SMBSTRAT5000
7511SMB
8331SMB
Sheet1
Cell Formulas
RangeFormula
B2=LOOKUP(A2,$D$2:$D$6,$C$2:$C$6)
 
Upvote 0
One way of doing this is to swap your column C and D around so that you lookup the value and read off the category. You can then use =VLOOKUP(A2, $C$2:$D$6, 2, TRUE) to give you what you want. Notice that TRUE is used to give a result if an exact value is not found. This will find the largest value that is less than the value you're looking for if the exact one isn't found.
 
Upvote 0
try this

Excel 2013/2016
ABCD
1SCORESCategory
24130ENTSMB0
3351SMBGrow1000
43513ENTMID2000
53SMBENT3000
6351SMBSTRAT5000
7511SMB
8331SMB

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B2=LOOKUP(A2,$D$2:$D$6,$C$2:$C$6)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

BEAUTIFUL! Thanks!
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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