Nested If(and maxed out

Craigc3814

Board Regular
Joined
Mar 7, 2016
Messages
217
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.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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)
 
Upvote 0
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)
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,207
Members
448,554
Latest member
Gleisner2

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