View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jenna Jenna is offline
external usenet poster
 
Posts: 20
Default How do it set up a SUMIF equation with 2 conditions

Currently I am using the following SUMIF equation:
=SUMIF(B9:B32,"warm",G9:G32)/COUNTIF(B9:B32,"warm")

However, I want to expand the conditions so that it only sums if b9 :b32,
"warm" and c9:c32, "breath" AND so that it only counts if :b32, "warm"
and c9:c32, "breath"

I have tried using :=SUMIF((B19:B42,"warm",G19:G42)&(
C19:C42,"breath",G19:G42))/COUNTIF((B19:B42,"warm")&(c19:c42,"breath"))

but this doesnt work.

Does anyone have any suggestions?

thanks!