Calculating Total from Debit and Credit columns

judgedredd

New Member
Joined
Dec 13, 2015
Messages
27
I haven't seen this exact question answered so would like some help here. It is related to a bank account running total on an Excel Spreadsheet.

I have 3 columns: Credit, Debit and Total

I have tried this formula:

=IF(OR(ISBLANK(B3),ISBLANK(C3)),"0.00",D2+B3-C3) for the 'Total' cell (column D in my sheet, column A being the date). But this does not work and brings up 0.00 in the 'Total' cell.

Can anyone see where the formula is wrong?
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If you enter it as "0.00", it will get added as Text, and won't work in any calculations. You would want to use 0 (without quotes), and use cell formatting to handle the decimal places.

I am also a little unclear on the structure of your formula.
If the cells truly are blank, you shouldn't need to check for blanks. Excel will handle them as zeroes.
So, maybe all you need it:
Code:
=D2+B3-C3
 
Upvote 0
Hi Joe4,

Thanks for your answer. That makes sense. In the end I did something similar to what you suggested and used this formula instead:

Code:
=IF(B4+C4=0,0,D3+B4-C4)
 
Last edited:
Upvote 0
OK, great. I assume that you are doing it that way for the first line, and every line below has an amount in either columns B or C.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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