Forum Discussion

mrcuenco's avatar
mrcuenco
Copper Contributor
Jan 29, 2022

Help. How can I total the BL, IP, NP, etc. per month using sumproduct. Thank you.

PaulyNP12-Feb-21JOANA        
TriziaBL18-Mar-21IP1 =SUMPRODUCT((A1:A15=D1)*(B1:B15=D2))  
MykeBL17-Mar-21Jan-210 =SUMPRODUCT(($A$1:$A$15=D1)*($B$1:$B$15=D2)*($C$1:$C$15=D3))
JOANAIP12-Jan-21         
TriziaBL12-Mar-21         
LeeBL13-Feb-21         
PaulySOA09-Feb-21      
PaulyC22010-Jan-21         
JOANARP12-Mar-21         
LeeBL15-Jan-21         
LeeRP12-Jan-21         
JOANABL09-Feb-21         
MykeBL29-Jan-21         
TriziaNP29-Jan-21         
MykeNP12-Jan-21         

8 Replies

  • mrcuenco's avatar
    mrcuenco
    Copper Contributor
    D3 is custom formatted as mmm-yy, intended for the whole month. What I would like to get is the total of all BL, C220 etc. for the month. Further info column D3 is a list made in data validation. Thank you.
    • mrcuenco's avatar
      mrcuenco
      Copper Contributor
      D3 is custom formatted as mmm-yy, intended for the whole month. What I would like to get is the total of all BL, C220 etc. for the month. Further info column D3 is a list made in data validation. Thank you.
      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        mrcuenco 

        In general for such counting it's better to use PivotTable

        If formula

        =SUMPRODUCT(
          ($A$2:$A$16 = D2) *
          ($B$2:$B$16 = D3) *
          ( MONTH($C$2:$C$16) = MONTH(D4) ) )

        here