SUMIF formula on Filtered (or visible cells) - HELP

Deano4iu

New Member
Joined
Jan 30, 2024
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
I am attempting to have the functionality to be able to filter on the [BRAND] column and receive back the summed quantity of both Types (LEGACY and NPD).

#1 - I am using the subtotal formula above each month to sum the filtered months for that particular month.

1706641875222.png



I would now like to be able to filter on other columns and receive the total of the filter for the 2 TYPES listed below.



#2 - I am using the SUMIF formula to sum the different types of data provided in the TYPE column.

1706642060977.png




Notice that when I filter to the [CONVERSE] brand that the SUBTOTAL functionality works correctly but the SUMIF functionality does not ignore all the filtered fields as it keeps the same total even after filtering on the BRAND column.
1706641716260.png



Is it possible to make this happen??
 

Attachments

  • 1706641737449.png
    1706641737449.png
    57.1 KB · Views: 11
  • 1706642009423.png
    1706642009423.png
    61 KB · Views: 11
  • 1706642038745.png
    1706642038745.png
    56.5 KB · Views: 12

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
When there may be any kind of filtering, and I want the filtered subtotals, I use a helper column that just checks if the row is visible or not (using subtotal) and then sums up the column of interest times the helper column (which is 1 or 0).

MrExcelPlayground20.xlsx
ABCDEF
1NameSectionVisibleSales6200
2Jamie5111000
3Jamie401500
4Harry3012000
5Harry451600
6Sally2512100
Sheet27
Cell Formulas
RangeFormula
F1F1=SUM(Table2[Sales]*Table2[Visible])
C2:C6C2=SUBTOTAL(102,B2)
 
Upvote 0
Another set of options:


For your subtotal headers you can use the AGGREGATE function, and use the argument to ignore hidden rows.

The next part I am not entirely sure if your asking for filtered values in the LEGACY and NBD cells.
For the summary at the top you can use SUM function with an calculated array (entered by CNTL-SHFT-ENTR keystroke)
IF SUM does not work, replace it with SUMPRODUCT.


Book1
ABCDEF
1BRANDConverse
2LEGACY619
3NBD233
4
523232243
6DESCRIPTIONBRANDTYPE2024-04-042024-05-01
7Shoe 01NikeLegacy6853
8Shoe 02AdidasNBD5256
9Shoe 03PumaNBD5366
10Shoe 04ConverseNBD5459
11Shoe 05Under ArmourLegacy5171
12Shoe 06NikeLegacy6056
13Shoe 07AdidasLegacy6667
14Shoe 08PumaNBD5251
15Shoe 09ConverseNBD6852
16Shoe 10Under ArmourLegacy7451
17Shoe 11NikeLegacy7065
18Shoe 12AdidasLegacy5555
19Shoe 13PumaNBD7359
20Shoe 14ConverseLegacy6761
21Shoe 15Under ArmourLegacy6764
22Shoe 16NikeLegacy6373
23Shoe 17AdidasNBD5371
24Shoe 18PumaLegacy7272
25Shoe 19ConverseLegacy5266
26Shoe 20Under ArmourNBD6061
27Shoe 21NikeNBD6451
28Shoe 22AdidasLegacy7154
29Shoe 23PumaNBD6068
30Shoe 24ConverseLegacy5755
31Shoe 25Under ArmourLegacy5973
32Shoe 26NikeNBD5870
33Shoe 27AdidasNBD5163
34Shoe 28PumaNBD7350
35Shoe 29ConverseLegacy6661
36Shoe 30Under ArmourNBD7150
37Shoe 31NikeNBD6858
38Shoe 32AdidasLegacy7358
39Shoe 33PumaNBD7467
40Shoe 34ConverseLegacy7064
41Shoe 35Under ArmourLegacy5859
42Shoe 36NikeNBD5052
43Shoe 37AdidasNBD7061
44
Sheet3
Cell Formulas
RangeFormula
D2:D3D2=SUM(($B$7:$B$43=$D$1)*($C2=$C$7:$C$43)*(($D$7:$D$43)+($E$7:$E$43)))
D5:E5D5=AGGREGATE(9,5,D$7:D$43)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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