View Single Post
  #1   Report Post  
Alex
 
Posts: n/a
Default calculating SUM with two conditions

I have a main spreadsheet with columns as follow:
A C AT
Product ID Group TOTAL
BBB TOP formula ?
SSS TOP
CCC AAP
BBB AAP

And some spreadsheets with the same structure
Sheet 1:
A C AT
Product ID Group TOTAL
BBB TOP 100
SSS AAP 200
CCC AAP 100
CCC TOP 400

The same product can be for different groups.

To calculate just TOTAL for Product ID without Group Im using the following
formula:
=SUMIF('Sheet 1'!$A$4:$A$390,A3, 'Sheet 1'!$AY$4:$AY$390) for the
spreadsheet where are only Product ID and TOTAL

This formula is taking the same Product ID from the Sheet1 and calculating
the SUM.
Its working well.

How is it possible to take the same product and the same group from the
Sheet 1 to calculate SUM?

Thanks