AGGREGATE as Sum not work

Dossfm0q

Banned User
Joined
Mar 9, 2009
Messages
570
Office Version
  1. 2019
Platform
  1. Windows
K13=SUM(IFERROR((D13=$C$2:$K$2)/(E13=$C$3:$K$3)*$C$4:$K$9,""))
F13=AGGREGATE(9,6,(D13=$C$2:$K$2)/(E13=$C$3:$K$3)*$C$4:$K$9,6)

Book1.xlsm
ABCDEFGHIJK
1Styleunit1002/NP1006/AT1009/NB1010/LA1012/SF1014/WC1019/MA1020/BN7088/DIR
2707970997099707770777099709970997088
3100210061009101010121014101910207088
41758871288879
52708771087779
6365776977769
74708710777710
853581089
9635871089
10
11
12DCStoreTotal# Styles by StoreTotal# Units by StoreTotal# Units by Dc
131010/LA7077101061 #VALUE!
141012/SF7077101246107
151002/NP707910024747
167088/DIR708870885555
171006/AT7099100629 
181009/NB7099100927 
191014/WC7099101429 
201019/MA7099101929 
211020/BN7099102027141
Sheet2
Cell Formulas
RangeFormula
C13:C21C13=INDEX($1:$1,AGGREGATE(15,6,COLUMN($C$1:$K$1)/($C$2:$K$2=D13),COUNTIF(D$13:D13,D13)))
D13:D21D13=AGGREGATE(15,6,$C$2:$K$2,ROWS($D$13:D13))
E13:E21E13=INDEX($3:$3,AGGREGATE(15,6,COLUMN($C$3:$K$3)/($C$2:$K$2=D13),COUNTIF(D$13:D13,D13)))
F13:F21F13=SUM(IFERROR((D13=$C$2:$K$2)/(E13=$C$3:$K$3)*$C$4:$K$9,""))
G21,G13:G19G13=IF(COUNTIF($D$13:$D$21,D13)=COUNTIF($D$13:D13,D13),SUM(IFERROR((D13=$C$2:$K$2)*$C$4:$K$9,"")),"")
G20G20=IF(COUNTIF($D$13:$D$21,D20)=COUNTIF($D$13:D20,D20),SUM(IFERROR((D20=$C$2:$K$2)*$C$4:$K$9,"")),"")
K13K13=AGGREGATE(9,6,(D13=$C$2:$K$2)/(E13=$C$3:$K$3)*$C$4:$K$9,6)
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
You can not sum arrays with aggregate. See posts 5 and 7 in the thread linked below for why

Why not just use
Excel Formula:
=SUMPRODUCT((D13=$C$2:$K$2)*(E13=$C$3:$K$3)*$C$4:$K$9)
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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