Simple IF and/or question

Tedjars

New Member
Joined
Jan 4, 2019
Messages
3
Good day to all. I have a table with multiple conditions with specific amounts if conditions are met, but Im stymied on how to create the IF and/or formula since the conditions have min/max ranges. Hoping for some help :( Thanks a lot!

Sample table below:
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
Emp80 - 84.985 - 89.990 - 94.995 - 100
4.9 +7001,200.002,000.003,000.00
4.8 - 4.897001,200.001,800.002,800.00
4.7 - 4.795001,000.001,600.002,600.00
4.69 -5001,000.001,500.002,500.00

<colgroup><col style="width: 100px"><col width="100"><col width="100"><col width="100"><col width="100"></colgroup><tbody>
</tbody>

So, if Emp gets a score between 80 to 84.9 and a rating between 4.7 to 4.79, the amount should return "500", so on and so forth. Im trying to create a formula using IF and/or or if anyone can help me with another formula Id appreciate it much.

Many thanks!

Ted
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi, welcome to the forum! If you can re-arrange your lookup table like below (using ascending order is important) then you can use a simple INDEX(MATCH(),MATCH()) formula.


Excel 2013/2016
ABCDEFGH
1Emp80859095Rating4.7
20.005001,000.001,500.002,500.00Score80.00
34.705001,000.001,600.002,600.00Amount500
44.807001,200.001,800.002,800.00
54.907001,200.002,000.003,000.00
Sheet1
Cell Formulas
RangeFormula
H3=INDEX($B$2:$E$5,MATCH(H1,A2:A5,1),MATCH(H2,B1:E1,1))
 
Upvote 0
Emp80 - 84.985 - 89.990 - 94.995 - 100
4.9 +7001,200.002,000.003,000.00
4.8 - 4.897001,200.001,800.002,800.00
4.7 - 4.795001,000.001,600.002,600.00
4.69 -5001,000.001,500.002,500.00
col Ecol J
Emp80 - 84.985 - 89.990 - 94.995 - 100
row 1505001,000.001,500.002,500.001.00mytable
4.695001,000.001,500.002,500.002.00
4.795001,000.001,600.002,600.003.00
4.897001,200.001,800.002,800.004.00801
row 19107001,200.002,000.003,000.005.00852
903
954
1004
score =83.7
rating =4.75
500
=OFFSET($E$14,VLOOKUP($F$26,mytable2,6),VLOOKUP($F$25,mytable,2))
note that mytable2 is E15 to J19
ie it does not include the top headings

<colgroup><col width="64" span="17" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Thank you for the suggestions! Ill try them out (excited :) )

The assistance greatly appreciated!

Cheers
Ted
 
Upvote 0
Hi, welcome to the forum! If you can re-arrange your lookup table like below (using ascending order is important) then you can use a simple INDEX(MATCH(),MATCH()) formula.

Excel 2013/2016
ABCDEFGH
1Emp80859095Rating4.7
20.005001,000.001,500.002,500.00Score80.00
34.705001,000.001,600.002,600.00Amount500
44.807001,200.001,800.002,800.00
54.907001,200.002,000.003,000.00

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
H3=INDEX($B$2:$E$5,MATCH(H1,A2:A5,1),MATCH(H2,B1:E1,1))

<tbody>
</tbody>

<tbody>
</tbody>
This works great! Again, thank you so much for the help. Was able to try it now since I was away for the weekend. This definitely helps me much! \m/.

Might I add another difficulty:

There are 4 tables, and instead of "EMP", its 1, 2, 3, 4 (for tenure years). Each tenured year have different corresponding amounts to the same headers (ratings and score):

080859095
0 500.00 1,000.00 1,500.00 2,500.00Tenure1
4.7 500.00 1,000.00 1,600.00 2,600.00Rating4.9
4.8 700.00 1,200.00 1,800.00 2,800.00Score99
4.9 700.00 1,200.00 2,000.00 3,000.00Amount 3,000.00
180859095
0 500.00 1,000.00 1,500.00 2,500.00Tenure1
4.7 500.00 1,000.00 1,800.00 2,800.00Rating4.75
4.8 750.00 1,250.00 2,150.00 3,150.00Score92
4.9 1,000.00 1,500.00 2,500.00 3,500.00Amount 1,800.00
280859095
0 500.00 1,000.00 1,500.00 2,500.00Tenure1
4.7 500.00 1,000.00 2,000.00 3,000.00Rating4.9
4.8 1,000.00 1,500.00 2,500.00 3,500.00Score80
4.9 1,300.00 2,000.00 3,000.00 4,000.00Amount 1,300.00
380859095
0 500.00 1,000.00 1,500.00 2,500.00Tenure1
4.7 500.00 1,000.00 2,250.00 3,250.00Rating4.84
4.8 1,250.00 1,750.00 3,000.00 4,000.00Score89
4.9 1,500.00 2,500.00 4,000.00 5,000.00Amount 1,750.00

<tbody>
</tbody>


So if I have to query that reads from the 4 tables and return the amount depending on tenure, I tried IFS + INDEX MATCH(()) but it always comes up with an error or too many arguments :(

Tenure:
Rating:
Score:
Amount:

Thank you (bow)
 
Upvote 0
There are 4 tables

Hi, if instead of 4 tables you can layout one lookup table like this, then here is an option you can try.


Excel 2013/2016
ABCDEFGHI
1Score
2TenureRating80859095Tenure:1.00
3005001,000.001,500.002,500.00Rating:4.81
404.75001,000.001,600.002,600.00Score:85.00
504.87001,200.001,800.002,800.00Amount:1250
604.97001,200.002,000.003,000.00
7105001,000.001,500.002,500.00
814.75001,000.001,800.002,800.00
914.87501,250.002,150.003,150.00
1014.91,000.001,500.002,500.003,500.00
11205001,000.001,500.002,500.00
1224.75001,000.002,000.003,000.00
1324.81,000.001,500.002,500.003,500.00
1424.91,300.002,000.003,000.004,000.00
15305001,000.001,500.002,500.00
1634.75001,000.002,250.003,250.00
1734.81,250.001,750.003,000.004,000.00
1834.91,500.002,500.004,000.005,000.00
Sheet1
Cell Formulas
RangeFormula
I5=LOOKUP(2,1/(($A$3:$A$18=I2)*($B$3:$B$18<=I3)),INDEX($C$3:$F$18,0,MATCH(I4,$C$2:$F$2,1)))
 
Upvote 0

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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