Excel VBA Filter Out Zero Subtotal of Multiple Columns

Biz

Well-known Member
Joined
May 18, 2009
Messages
1,773
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I'm trying to create Excel 2010 VBA code for Pivot tables, to filter out Subtotal if multiple columns are zero.

Test Data.xlsm
ABCDEF
1ProjectItemsSum of ActualSum of BudgetSum of ForecastSum of Fcast
212Sales110001
312Sales26552234
412Sales2026983850
512Sales260000
612 Total321536085
713Sales120000
813Sales30000
913Sales210000
1013Sales270000
1113 Total0000
1214Sales1397365713
1314Sales490000
1414Sales2253183195
1514Sales2897365713
1614 Total33790145121
1715Sales1441731924
1815Sales526983850
1915Sales23
2015Sales2941731924
2115 Total1082447698
2216Sales15
2316Sales6
2416Sales24
2516Sales30
2616 Total
2717Sales168817817
2817Sales753183195
2917Sales2599374439
3017Sales318817817
3117 Total3288991168
3218Sales1791136126
3318Sales80000
3418Sales3291136126
3518 Total1822612252
3619Sales188067646
3719Sales90100
3819Sales338067646
3919 Total16013512812
4020Sales100010
4120Sales199031325
4220 Total9031425
43Grand Total1237768626561
Summary


Looking at example above Project 16 should exist as Actual, Budget, Forecast and Fcast is zero.

Your help would be greatly appreciated.

Kind Regards

Biz
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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