Nested If(and maxed out

Craigc3814

Board Regular
Joined
Mar 7, 2016
Messages
212
Seniority Range Low High Score
0-2 0 1.99 1
3-4 2 3.99 2
4-8 4 7.99 3
8-12 8 11.99 4
12-16 12 15.99 5
16-20 16 19.99 6
20-24 20 23.99 7
24-28 24 27.99 8
28-32 28 31.99 9
32-36 32 100 10

I have the above table, On another sheet I have a seniority number we will use 9.01 for example. If Someone has worked here 9 years I want the value of 4 returned. I was going to do this with nested if(and but didn't realize there was a limit of 7 nested ifs. How can I get around that? I feel like it should be easier than I am making it.
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,216
Office Version
  1. 365
Platform
  1. Windows
If your table was in A1:D11 and the lookup value 9 was in F1:

=LOOKUP(F1,$B$2:$B$11,$D$2:$D$11)
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,350
Place the first value in a cell of its own, e.g. reading down 0,3,4,8,12 etc
Then use VLOOKUP something like

VLOOKUP(years,A$1:E$10,5,1)
 

Noodleski

Active Member
Joined
Nov 18, 2015
Messages
467
Assuming the table above is in A1 to D10 and your 9,01 lookup value is in F1 you could use

VLOOKUP(F1,$B$1:$D$10,3,3)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,217
Messages
5,594,887
Members
413,947
Latest member
gizmolucy

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
Top