Best way for multiple condition to be meet for answer

OzDude

New Member
Joined
Jun 21, 2015
Messages
2
All,

I am trying to find the best way to get the correct answer from the below table. Basically the answer will depend on 2 things:
  • The percentage range in A & B
  • The value the product is between.

I have two cells in another sheet, one states the percentage, and the other the amount. What I need is an easy way to get if cell F17 falls into one if the below percentage ranges, and cell F16 is between any of those amounts, then calculate the answer.

EG. F17 = 83.4% & F16 = 570,000. The answer would be 570,000*0.801= 4,565.70
500,000 600,000 750,000
80.01%81.00%0.540%0.894%0.931%
81.01%82.00%0.540%0.894%0.931%
82.01%83.00%0.568%0.922%1.071%
83.01%84.00%0.801%0.922%1.071%
84.01%85.00%0.857%1.146%1.323%
85.01%86.00%0.997%1.146%1.323%
86.01%87.00%1.006%1.388%1.602%
87.01%88.00%1.267%1.388%1.602%
88.01%89.00%1.369%1.919%2.180%
89.01%90.00%1.723%1.919%2.180%
90.01%91.00%2.581%3.028%3.578%
91.01%92.00%2.637%3.028%3.578%
92.01%93.00%2.981%3.401%3.783%
93.01%94.00%2.981%3.401%4.025%
94.01%95.00%3.298%3.401%4.370%

<tbody>
</tbody>

So basically if have tried the IF/AND combination, and while it works, it's a huge to maintain, and if the boss changes the percentage amounts, or adds more by making the ranges smaller, it kills the formula.

Just seeing if there is a better way.

Regards
Oz
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Welcome to Mr Excel

Try something like this (using comma as decimal and dot as thousands separator)


A
B
C
D
E
F
G
H
I
1
500.000​
600.000​
700.000​
%​
Amount​
Result​
2
80,01%​
81,00%​
0,540%​
0,894%​
0,931%​
83,40%​
570.000​
4.565,70​
3
81,01%​
82,00%​
0,540%​
0,894%​
0,931%​
4
82,01%​
83,00%​
0,568%​
0,922%​
1,071%​
5
83,01%​
84,00%​
0,801%​
0,922%​
1,071%​
6
84,01%​
85,00%​
0,857%​
1,146%​
1,323%​
7
85,01%​
86,00%​
0,997%​
1,146%​
1,323%​
8
86,01%​
87,00%​
1,006%​
1,388%​
1,602%​
9
87,01%​
88,00%​
1,267%​
1,388%​
1,602%​
10
88,01%​
89,00%​
1,369%​
1,919%​
2,180%​
11
89,01%​
90,00%​
1,723%​
1,919%​
2,180%​
12
90,01%​
91,00%​
2,581%​
3,028%​
3,578%​
13
91,01%​
92,00%​
2,637%​
3,028%​
3,578%​
14
92,01%​
93,00%​
2,981%​
3,401%​
3,783%​
15
93,01%​
94,00%​
2,981%​
3,401%​
4,025%​
16
94,01%​
95,00%​
3,298%​
3,401%​
4,370%​

Formula in I2
=H2*INDEX($C$2:$E$16,MATCH(G2,$A$2:$A$16),MATCH(H2,$C$1:$E$1))

Hope this helps

M.
 
Upvote 0
Thanks Marcelo,

Changed the formula a touch to match my setup, but the basics were exactly as you had them.

Regards
Oz
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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