Subtract an amount from a cell, then move and subtract from the next available amount

Digit4L

New Member
Joined
Feb 28, 2019
Messages
2
Dear All,

I have tried to subtract the Overdue Invoice Amount, It should go like below table.

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
QRS
T
U
V
W
X
Y
Z
AA
AB
2
AMT $
TTL DUE
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
DEC
PAID
OD BAL. TTL
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
DEC
3
XYZ INC
44
0
0
0
0
0
20
0
14
0
0
10
0
25
19
0
0
0
0
0
0
0
9
0
0
10
0

<tbody>
</tbody>



FORMULA USED
Q3
=MAX(SUM(C3:C3)-O3,0)
R3
=IF(OR(Q3>0, D3=""),"",MAX(SUM(C3:D3)-O3,0))
S3
=IF(OR(R3>0, E3=""),"",MAX(SUM(C3:E3)-O3,0))
T3
=IF(OR(S3>0, F3=""),"",MAX(SUM(C3:F3)-O3,0))
U3
=IF(OR(T3>0, G3=""),"",MAX(SUM(C3:G3)-O3,0))
V3
=IF(OR(U3>0, H3=""),"",MAX(SUM(C3:H3)-O3,0))
W3
=IF(OR(V3>0, I3=""),"",MAX(SUM(C3:I3)-O3,0))
X3
=IF(OR(W3>0, J3=""),"",MAX(SUM(C3:J3)-O3,0))
Y3
=IF(OR(X3>0, K3=""),"",MAX(SUM(C3:K3)-O3,0))
Z3
=IF(OR(Y3>0, L3=""),"",MAX(SUM(C3:L3)-O3,0))
AA3
=IF(OR(Z3>0, M3=""),"",MAX(SUM(C3:M3)-O3,0))
AB3
=IF(OR(AA3>0, N3=""),"",MAX(SUM(C3:N3)-O3,0))

<tbody>
</tbody>

But I am getting the below, Till Aug its fine, but after Aug it showing empty.
Totally Struck, Looking for support.

1
A
B
C
D
E
F
G
H
I
J
K
L
MNOP
Q
R
S
T
U
V
W
X
Y
Z
AA
AB
2
AMT $
TTL DUE
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
DEC
PAID
OD BAL>
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
DEC
3
XYZ INC
44
0
0
0
0
0
20
0
14
0
0
10
0
25
9
0
0
0
0
0
0
0
9





<tbody>
</tbody>

Thanks a lot,
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Why not just Sum C through O and make your payment amount negative? Then it's just the sum of all of those combined?
 
Upvote 0
How about in R3 copied right
=IF(D3=0,0,MAX(SUM($C3:D3)-$O3,0)-SUM($Q3:Q3))
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,267
Members
448,558
Latest member
aivin

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