If , Round and Max with criterias.

Velven

New Member
Joined
Nov 30, 2017
Messages
37
Hello Guys !

Is there any formula to do automate this calculation ?

ABCD
110% Discount3( Insert Formula ) 30
220% Discount1030
315% Discount50333
4VIP 7%10143
5Weekend 25%25100
6Weekend 25%25100
7Weekend 25%25100
815% Discount1067
920% Discount1030

<tbody>
</tbody>



My Expected Answer is in D.
Why is 20% listed as 30 because maximum claimable amount is 30 only. So I expect a Max formula here.

Formula should be With Round figures.
10% Discount = 10%
20% Discount = 20% with max capped of RM 30.
15% Discount = 15%
Weekend 25% = 25%
VIP 7% = 7%

I've been using And the list goes on and on. Any simpler way of doing it? And I want to add a max formula too.
Round(if(A1="10% Discount",B1/10%)+If(A1="20% Discount",B1/20%)
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
You could build a table like this:

ABCDEFG
1DiscountAmtFormulaDiscountRateCap
210% Discount33010% Discount10%9999999
320% Discount103020% Discount20%30
415% Discount5033315% Discount15%9999999
5VIP 7%10143VIP 7%7%9999999
6Weekend 25%25100Weekend 25%25%9999999
7Weekend 25%25100
8Weekend 25%25100
915% Discount1067
1020% Discount1030

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
C2=ROUND(MIN(B2/VLOOKUP(A2,$E$2:$G$6,2,0),VLOOKUP(A2,$E$2:$G$6,3,0)),0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
A
B
C
D
E
F
G
1
10% Discount
3​
30​
30​
10% Discount
10%​
2
20% Discount
10​
30​
30​
15% Discount
15%​
3
15% Discount
50​
333.3333333​
333​
VIP 7%
7%​
4
VIP 7%
10​
142.8571429​
143​
Weekend 25%
25%​
5
Weekend 25%
25​
100​
100​
6
Weekend 25%
25​
100​
100​
7
Weekend 25%
25​
100​
100​
8
15% Discount
10​
66.66666667​
67​
9
20% Discount
10​
30​
30​
Sheet: Sheet75

Formula in cell C1:

=IF(A1="20% Discount",IF(B1/0.2>30,30,B1/0.2),B1/INDEX($G$1:$G$4,MATCH(A1,$F$1:$F$4,0)))
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,605
Members
449,038
Latest member
Arbind kumar

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