Balance Column for Cost, Refund and Deposit

pjangie

New Member
Joined
Feb 26, 2019
Messages
3
I have a very basic expense sheet that I cannot figure out how to calculate the total balance column/cells properly.

DateClient NameItem DescriptionCostRefundDepositBalance
3/29/19AdminCall Deposit$300$300
4/1/19JonesCall Cost$86$214
4/2/19JonesCall Refund$86$300

<tbody>
</tbody>

I need the balance column to calculate to either add or subtract the Cost/Refund/Deposit amounts. One balance cell should have a formula to let it know to add or subtract depending on which amount is added to the other columns/cells (Cost column will be a subtraction while Refund and Deposit are additions). Make sense? Please help. Thanks!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try

<b></b><br /><br /><table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:116px;" /><col style="width:116px;" /><col style="width:116px;" /><col style="width:80px;" /><col style="width:80px;" /><col style="width:80px;" /><col style="width:80px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td><td >F</td><td >G</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Date</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Client Name</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Item Description</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Cost</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Refund</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Deposit</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Balance</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">3/29/19</td><td >Admin</td><td >Call Deposit</td><td > </td><td > </td><td style="text-align:right; ">$300</td><td style="text-align:right; ">$300</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="text-align:right; ">04/01/2019</td><td >Jones</td><td >Call Cost</td><td style="text-align:right; ">$86</td><td > </td><td > </td><td style="text-align:right; ">$214</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="text-align:right; ">04/02/2019</td><td >Jones</td><td >Call Refund</td><td > </td><td style="text-align:right; ">$86</td><td > </td><td style="text-align:right; ">$300</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Sheet</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >G2</td><td >=IF(ISNUMBER(G1),G1,0)+SUM(E2:F2)-D2</td></tr></table></td></tr></table> <br /><br />
 
Upvote 0
In cell G2: =E2+F2-D2
In cell G3: =G2+E3-D3+F3 and copy down the column
 
Upvote 0
Thank you! Another question - how do I get the copied cells to show either $0 balance or blank until something has been entered in that row. Right now each of the cells below are reflecting the amount above. Thank you!!
 
Upvote 0
How about


Excel 2013/2016
ABCDEFG
1DateClient NameItem DescriptionCostRefundDepositBalance
23/29/19AdminCall Deposit300300
3########JonesCall Cost86214
4########JonesCall Refund86300
5
Report
Cell Formulas
RangeFormula
G2=IF(COUNT(D2:F2)>0,N(G1)+SUM(E2:F2)-D2,"")
 
Last edited:
Upvote 0
In cell G2: =IF(AND(D2="",E2="",F2=""),"",E2+F2-D2)
In cell G3: =IF(AND(D3="",E3="",F3=""),"",G2+E3-D3+F3) and copy down the column
 
Upvote 0
Thank you! Another question - how do I get the copied cells to show either $0 balance or blank until something has been entered in that row. Right now each of the cells below are reflecting the amount above. Thank you!!

You're Welcome.

I understand that to save time you decide to copy the formula down, but it is not advisable to use formulas if you are not occupying them, that is, in this case, there is no data to add, so do not copy the formula; it takes up space and memory in your file.
Either way, here is my solution.

=IF(A2="","",IF(ISNUMBER(G1),G1,0)+SUM(E2:F2)-D2)
 
Upvote 0

Forum statistics

Threads
1,215,398
Messages
6,124,688
Members
449,179
Latest member
kfhw720

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