Lookup (between) formula

SimonHughes

Well-known Member
Joined
Sep 16, 2009
Messages
507
Office Version
  1. 365
Platform
  1. Windows
Hi All, I need to return a value, (Band) based on the Score and where it fits between From and To and I cannot work out the formula for doing so. Can anyone help? TIA

NameScoreBandFromToBand
Bill2.741.001.501
Jim1.801.512.002
Sue3.152.012.503
Joe2.122.513.004
3.013.505
3.514.006
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
You already have your LOOKUP table set up correctly, so this is easy if you use the approximate match argument of VLOOKUP.

1727266686215.png


Formula in C2:
Excel Formula:
=VLOOKUP(B2,E$2:G$7,3,TRUE)
and copy down to cell C5.
 
Upvote 0
Or try this:

Formula.xlsx
ABCDEFG
1NameScoreBandFromToBand
2Bill2.744411.51
3Jim1.8221.5122
4Sue3.15552.012.53
5Joe2.12332.5134
63.013.55
73.5146
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=MATCH(1,($E$2:$E$7<=B2)*($F$2:$F$7>=B2),0)
D2:D5D2=MATCH(B2,$E$2:$E$7,1)
 
Upvote 0
Solution
Or try this:

Formula.xlsx
ABCDEFG
1NameScoreBandFromToBand
2Bill2.744411.51
3Jim1.8221.5122
4Sue3.15552.012.53
5Joe2.12332.5134
63.013.55
73.5146
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=MATCH(1,($E$2:$E$7<=B2)*($F$2:$F$7>=B2),0)
D2:D5D2=MATCH(B2,$E$2:$E$7,1)
Also solves the question, many thanks indeed
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
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