ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Comparison of SUMPRODUCT, SUMIFS and DSUM
2
Duncan Williamson: Excel Master from excelmaster.co
3
25th March 2010 revised 11th April 2019 and 12th December 2024
4
5
RegionCityChainProductTotal Sales
6
North GAAtlantaFruit R UsOranges61,650
7
North GAAtlantaFruit R UsApples85,106
8
North GAAtlantaFruit R UsBananas75,548
9
North GAAtlantaBob's FruitOranges93,816
10
North GAAtlantaBob's FruitApples21,910
11
North GAAtlantaBob's FruitBananas98,420
12
North GABlue Ridge Mountain FruitOranges89,810
13
North GABlue RidgeMountain FruitApples83,538
14
North GABlue RidgeMountain FruitBananas60,900
15
North GAClarkesvilleFruit DirectOranges9,604
16
North GAClarkesvilleFruit DirectApples82,030
17
North GAClarkesvilleMiddle Georgia FruitBananas107,406
18
Mid GAMaconMiddle Georgia FruitOranges71,097
19
Mid GAMaconMiddle Georgia FruitApples15,764
20
Mid GAMaconWhistlestop Fruit StandBananas14,730
21
Mid GAMaconWhistlestop Fruit StandOranges149,745
22
Mid GAMaconWhistlestop Fruit StandApples108,147
23
Mid GAMaconWhistlestop Fruit StandBananas87,934
24
25
Change one or more of the variables you want to test for
26
ProductRegionCityChain
27
ApplesNorth GAAtlantaFruit R Us
28
SUMPRODUCTSUMIFSDAVERAGE
29
Product396,495396,49566,083=DAVERAGE(A$5:E$23,E$5,F26:F27)
30
Product and Region272,584272,58468,146=DAVERAGE(A$5:E$23,E$5,F26:G27)
31
Product, Region and City107,016107,01653,508=DAVERAGE(A$5:E$23,E$5,F26:H27)
32
Product, Region, City and Chain85,10685,10685,106=DAVERAGE(A$5:E$23,E$5,F26:I27)
33
34
=ARRAY_CONSTRAIN(ARRAYFORMULA(SUMPRODUCT((D6:D23=F27)*E6:E23)), 1, 1)
=SUMIFS(E6:E23,D6:D23,F27)
35
=SUMPRODUCT((A6:A23=G27)*(D6:D23=F27)*E6:E23)
=SUMIFS(E6:E23,A6:A23,G27,D6:D23,F27)
36
=SUMPRODUCT((A6:A23=G27)*(B6:B23=H27)*(D6:D23=F27)*E6:E23)
=SUMIFS(E6:E23,A6:A23,G27,B6:B23,H27,D6:D23,F27)
37
=SUMPRODUCT((A6:A23=G27)*(B6:B23=H27)*(C6:C23=I27)*(D6:D23=F27)*E6:E23)
=SUMIFS(E6:E23,A6:A23,G27,B6:B23,H27,C6:C23,I27,D6:D23,F27)
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100