Replace Subtotal with Sum

cagauravgarg

New Member
Joined
Mar 17, 2023
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Is there any shortcut way to replace the Subtotal formula in groupings with Sum formula? I have multiple level of groupings in the excel. Attached an image for example

1679066211072.png
 
Once you have tested the macro, feel free to share your comments
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I am not sure what you are trying to do.
A concise example of your challenge would help.

My post considers your post #6.
If you want to check the total you could just use sum with the total. See the sum highlighted with green.

T202303a.xlsm
ABCDEF
1
2Location IS -
3
4Acct #Unique ID$'0004386143890
5Regular
6501.1501.1 - Retail tiresRetail tires12
7501.1501.1 - LaborLabor12
8501.7501.7 - Commercial tireCommercial tire12
9501.4501.4 - ChainsChains12
10501501 - SalesSales34232
11Regular34640
12Miscellaneous
13501.9501.9 - Finance chargeFinance charge12
14501.9.5501.9.5 - Oregon state surchargeOregon state surcharge12
15501.9.4501.9.4 - Merchant services fraudMerchant services fraud12
16501.9.3501.9.3 - Nat. account charge backNat. account charge back12
17501.9.2501.9.2 - PinmarxPinmarx12
18501.9501.9 - Misc salesMisc sales1231
19Miscellaneous1741
20Net sales36381
21
3c
Cell Formulas
RangeFormula
D11D11=D5
E11:F11E11=SUM(E6:E10)
D19D19=D12
E19:F19E19=SUM(E12:E18)
E20:F20E20=SUM(E5:E19)/2
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,664
Members
448,976
Latest member
sweeberry

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