Sum columns

mdavontuur25

New Member
Joined
May 5, 2011
Messages
11
Hi Everyone

I have an spreadsheet with multiple columns. Column "F" is called Debit and column "G" Credit then Column "H" is and accumalative Column.

Ideally I want the macro to sumtract anything in the debit column and add what is in the credit column to give the cummulative figure.

eg. 100 (Debit) + 0 (Credit) = -100 (Cummulative)
0 (Debit) + 600 (Credit) = 500 (Commulative)

at the end the macro must put the total Cummulative amount in either the Debit column (if " - ") or the credit column (if "+") and place a single line above and a double line at the bottom.

I hope this makes sense
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I'm not sure what you mean when you say "a single line above" and "a double line at the bottom".
 
Upvote 0
The sheet is created from a macro so I can only add this functionality after the macro are created, therefore it has to be in a macro.

Single line refers to a line with a normal width (not a thick black line)
and double line refers to normal line width that looks like a equal sign.

Thanks
 
Upvote 0
You could actually insert a formula into the sheet using the same macro that creates the sheet. If you post your code somebody might be able to help you out. It would help if you pasted in a couple tables that show the layout of the source data too.
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

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