Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default How do it set up a SUMIF equation with 2 conditions

=AVERAGE(IF((B19:B42="warm")*(C19:C42="breath"),G1 9:G42))

which is an array formula, so commit with Ctrl-Shift-Enter, not just Enter

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jenna" wrote in message
...
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!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default How do it set up a SUMIF equation with 2 conditions

try sumproduct
=sumproduct(--(B19:B42="warm"),--(C19:C42="breath"),(G19:G42))/sumproduct(--(B19:B42="warm"),--(C19:C42="breath"))
--
*****
birds of the same feather flock together..



"Jenna" wrote:

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!

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

Thanks for the answer,

I am nto sure however if this gives me an average.

I want to divide the sum of
sumproduct(--(B19:B42="warm"),--(C19:C42="breath"),(G19:G42)) by the number
of these that exist.

does that make sense?

"driller" wrote:

try sumproduct
=sumproduct(--(B19:B42="warm"),--(C19:C42="breath"),(G19:G42))/sumproduct(--(B19:B42="warm"),--(C19:C42="breath"))
--
*****
birds of the same feather flock together..



"Jenna" wrote:

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!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default How do it set up a SUMIF equation with 2 conditions

Try it and see.

If you doubt, try mine, it is obviously an average.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jenna" wrote in message
...
Thanks for the answer,

I am nto sure however if this gives me an average.

I want to divide the sum of
sumproduct(--(B19:B42="warm"),--(C19:C42="breath"),(G19:G42)) by the
number
of these that exist.

does that make sense?

"driller" wrote:

try sumproduct
=sumproduct(--(B19:B42="warm"),--(C19:C42="breath"),(G19:G42))/sumproduct(--(B19:B42="warm"),--(C19:C42="breath"))
--
*****
birds of the same feather flock together..



"Jenna" wrote:

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!





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default How do it set up a SUMIF equation with 2 conditions

u can test the sumproduct formula.

u can notice the end part of the formula, this is the supposed divisor to
obtain the average "/sumproduct(--(B19:B42="warm"),--(C19:C42="breath"))"
of the accounted data that pass thru your "Warm" n " Breath" criteria that
make sense to your post.

no need to hit ctrl-shft-ent.
regards
--
*****
birds of the same feather flock together..



"Jenna" wrote:

Thanks for the answer,

I am nto sure however if this gives me an average.

I want to divide the sum of
sumproduct(--(B19:B42="warm"),--(C19:C42="breath"),(G19:G42)) by the number
of these that exist.

does that make sense?

"driller" wrote:

try sumproduct
=sumproduct(--(B19:B42="warm"),--(C19:C42="breath"),(G19:G42))/sumproduct(--(B19:B42="warm"),--(C19:C42="breath"))
--
*****
birds of the same feather flock together..



"Jenna" wrote:

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!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIF with 2 conditions Louise Excel Worksheet Functions 6 May 12th 06 06:39 PM
SUMIF function with 2 conditions rlandlin Excel Worksheet Functions 4 September 28th 05 05:50 PM
SUMIF with two conditions Fred Holmes Excel Discussion (Misc queries) 3 May 1st 05 10:10 PM
sumif with two conditions ww Excel Worksheet Functions 3 March 31st 05 01:44 AM
SUMIF based on 2 conditions TimH Excel Worksheet Functions 3 October 28th 04 08:18 PM


All times are GMT +1. The time now is 07:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"