Running Totals and Formulas

excely121

New Member
Joined
Sep 9, 2022
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a problem I'm hoping one of you guys can solve.. so I have a running total column (B) that sums col A values up and another column (col C) that calculates a remittance amount based on the running total (col B). My current formula is =IF(B2>100000),A2*10%,IF(B2<=100000),A2*15%). However, the formula doesnt quite work when the change occurs at 100K because the amount needs to be split out. For example of the $4,224.76 below, the calculation would be $152.55*15% (the amount under 100K) + $4,072.21*10% (the amount over 100K). Any ideas as to what my the formula should be..? Can't seem to figure it out.

Thanks



Untitled.png
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Upvote 0
Solution
MrExcelPlayground14.xlsx
ABC
2$0.00$0.00$0.00
3$907.52$907.52$136.13
4$74.83$982.35$11.22
5$98,710.46$99,692.81$14,806.57
6$152.55$99,845.36$22.88
7$2.09$99,847.45$0.31
8$4,224.76$104,072.21$430.10
9$2,000.00$106,072.21$200.00
10$99,000.00
11$1,000.00$100,000.00$150.00
12$1,000.00$101,000.00$100.00
Sheet12
Cell Formulas
RangeFormula
C11:C12,C2:C9C2=LET(a,100000-B1,b,B2-100000,c,SIGN(a),d,SIGN(b),IF(AND(c=1,d=1),a*0.15+b*0.1,IF(B2>100000,A2*0.1,A2*0.15)))
B3:B9B3=A3+B2


Works perfectly. Thank you!
Will need to learn how this part of the formula works. LET(a,100000-B1,b,B2-100000,c,SIGN(a),d,SIGN(b),IF(AND(c=1,d=1)
 
Upvote 0
Here is my 'unpacked' table:
Cell Formulas
RangeFormula
C11:C12,C2:C9C2=LET(a,100000-B1,b,B2-100000,c,SIGN(a),d,SIGN(b),IF(AND(c=1,d=1),a*0.15+b*0.1,IF(B2>100000,A2*0.1,A2*0.15)))
B3:B9B3=A3+B2
D6:D9,D11:D12D6=100000-B5
E6:E9,E11:E12E6=B6-100000
F6:G9,F11:G12F6=SIGN(D6)
H6:H12H6=D6*0.15
I6:I12I6=E6*0.1
 
Upvote 0
Here is my 'unpacked' table:
Cell Formulas
RangeFormula
C11:C12,C2:C9C2=LET(a,100000-B1,b,B2-100000,c,SIGN(a),d,SIGN(b),IF(AND(c=1,d=1),a*0.15+b*0.1,IF(B2>100000,A2*0.1,A2*0.15)))
B3:B9B3=A3+B2
D6:D9,D11:D12D6=100000-B5
E6:E9,E11:E12E6=B6-100000
F6:G9,F11:G12F6=SIGN(D6)
H6:H12H6=D6*0.15
I6:I12I6=E6*0.1
Makes sense now. Thanks for the help.
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,222
Members
453,024
Latest member
Wingit77

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