Grand Total Macro for All Individual Total Account

Warmhearted

Board Regular
Joined
Nov 17, 2012
Messages
96
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Below is just a sample short list of my long list of accounts that I have to manually grand total in cell F4 for all individual total accounts. Could you please help creating a macro that performs this calculation? Thanks for your help!
BankStatements2020.xlsm
ABCDEFG
1Chase Bank Feb-2020Acct# 0000 0000 0000
21.800-000-0000
3Algona MRR
440 4.30 11-Feb-20Grand Total 804.32
540 17.10 24-Feb-20
640 78.30 28-Feb-20
7 99.70
8
9Auburn
1045 12.70 03-Feb-20
1145 91.59 10-Feb-20
1245 23.40 13-Feb-20
1345 110.46 28-Feb-20
14 238.15
15
16Bellevue
1750 49.05 03-Feb-20
1850 15.00 18-Feb-20
1950 159.43 20-Feb-20
2050 16.39 24-Feb-20
2150 145.40 27-Feb-20
22 385.27
23
24Black Diamond
2560 0.70 05-Feb-20
2660 2.70 25-Feb-20
2760 28.45 25-Feb-20
28 31.85
29
30Boulevard Park
3180 24.70 04-Feb-20
3280 0.60 25-Feb-20
3380 24.05 25-Feb-20
34 49.35
Sheet1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
You don't need a macro, try this in the cell you want the grand total:

=SUMIFS(B2:B32,A2:A32,"<>",B2:B32,"<>")

The real answer is to pull the data into PowerQuery and present it using PowerPivot, the combination is so much more powerful and flexible.

HTH
 
Upvote 0
You don't need a macro.
Why not just use
Rich (BB code):
=SUMIF($C$4:$C$34,"<>",$B$4:$B$34)
 
Upvote 0
Thank you Michael M! It works perfectly. I just replace number of cell B to reflect my real account. I run a macro, and the last step is to grand total all accounts, so, that why I need to add this step to my current macro. Do you have any idea? Thanks!
 
Upvote 0
You don't need a macro, try this in the cell you want the grand total:

=SUMIFS(B2:B32,A2:A32,"<>",B2:B32,"<>")

The real answer is to pull the data into PowerQuery and present it using PowerPivot, the combination is so much more powerful and flexible.

HTH

Thank you pjmorris! It works perfectly. I just replace number of cell A and B to reflect my real account. I run a macro, and the last step is to grand total all accounts, so, that why I need to add this step to my current macro. Do you have any idea? Thanks!
 
Upvote 0

Forum statistics

Threads
1,216,163
Messages
6,129,223
Members
449,495
Latest member
janzablox

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