Hello Guys !
Is there any formula to do automate this calculation ?
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10% Discount[/TD]
[TD]3[/TD]
[TD]( Insert Formula ) [/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]20% Discount[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]15% Discount[/TD]
[TD]50[/TD]
[TD][/TD]
[TD]333[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]VIP 7%[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Weekend 25%[/TD]
[TD]25[/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Weekend 25%[/TD]
[TD]25[/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Weekend 25%[/TD]
[TD]25[/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]15% Discount[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]67[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]20% Discount[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]
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%)
Is there any formula to do automate this calculation ?
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10% Discount[/TD]
[TD]3[/TD]
[TD]( Insert Formula ) [/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]20% Discount[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]15% Discount[/TD]
[TD]50[/TD]
[TD][/TD]
[TD]333[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]VIP 7%[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Weekend 25%[/TD]
[TD]25[/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Weekend 25%[/TD]
[TD]25[/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Weekend 25%[/TD]
[TD]25[/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]15% Discount[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]67[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]20% Discount[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]
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%)