Sum if Week Number and style is equal to any condition

  • Thread starter Thread starter ldiaz
  • Start date Start date
L

ldiaz

Could you help me on this?


I want to make a sum if Range is a week number and if style is Equal to
CONC-92 or CONC-45

Week# 49 Week# 50
CONC-92= 27 CONC-92= 30
CONC-45= 27 CONC-45= 30


Datas are in a pivot table and...
Pivot table looks like this:
Week# CONC-92 CONC-45 CONC-92 CONC-45
49 5 5 10 10
49 2 2 10 10
50 5 5 10 10
50 5 5 10 10
 
With the text Week# in A1, the other text in B1:E1
Row 2 has: 49, 5,5,10,10
To sum for week = 49 and type is CON-92
SUMIF(A2:A5,49,B2:B5)+SUMIF(A2:A5,49,D2:D5)
OR
=SUMIF($A$2:$A$5,G1,$B$2:$B$5)+SUMIF($A$2:$A$5,G1,$D$2:$D$5)
if G1 hold the value 49
Copy down to the next cell with G2 holding the value 50
best wishes
 
Thanks for your help,

LD

--
Lorenzo Díaz
Cad Technician


Bernard Liengme said:
With the text Week# in A1, the other text in B1:E1
Row 2 has: 49, 5,5,10,10
To sum for week = 49 and type is CON-92
SUMIF(A2:A5,49,B2:B5)+SUMIF(A2:A5,49,D2:D5)
OR
=SUMIF($A$2:$A$5,G1,$B$2:$B$5)+SUMIF($A$2:$A$5,G1,$D$2:$D$5)
if G1 hold the value 49
Copy down to the next cell with G2 holding the value 50
best wishes
 
Back
Top