#1   Report Post  
AHANG JJJ
 
Posts: n/a
Default sumif function

What is the syntax for sumif function with two criteria range and two criteria?
  #2   Report Post  
RagDyer
 
Posts: n/a
Default

Use a different function ... SumProduct().

=SumProduct((A1:A100=criteria1)*(B1:B100=criteria2 )*C1:C100)
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"AHANG JJJ" <AHANG wrote in message
...
What is the syntax for sumif function with two criteria range and two

criteria?

  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

SUMIF and COUNTIF allow for only one criterion. You need array formulas or
SUMPRODUCT if you have multiple criteria. See the other response for one way.

On Fri, 30 Sep 2005 19:11:16 -0700, AHANG JJJ <AHANG
wrote:

What is the syntax for sumif function with two criteria range and two

criteria?
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
oomyoo
 
Posts: n/a
Default sumif function

I have something like this:

A B C D

jim 4 jim 2
cathy 2 cathy 4
mary 5 mary 3

I would like to sum the values in B and D that corresponds to jim. I tried
=sumproduct((criteria1)*(criteria2)*(range B,D)), but this doesn't work. Any
help would be much appreciated.

Thanks!




"RagDyer" wrote:

Use a different function ... SumProduct().

=SumProduct((A1:A100=criteria1)*(B1:B100=criteria2 )*C1:C100)
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"AHANG JJJ" <AHANG wrote in message
...
What is the syntax for sumif function with two criteria range and two

criteria?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default sumif function

Try...

=SUMIF(A1:C3,"Jim",B1:D3)

Hope this helps!

In article ,
oomyoo wrote:

I have something like this:

A B C D

jim 4 jim 2
cathy 2 cathy 4
mary 5 mary 3

I would like to sum the values in B and D that corresponds to jim. I tried
=sumproduct((criteria1)*(criteria2)*(range B,D)), but this doesn't work. Any
help would be much appreciated.

Thanks!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
oomyoo
 
Posts: n/a
Default sumif function

nope, didn't work...

I should get a value of 6, but I'm only getting 4. Any other ideas?

"Domenic" wrote:

Try...

=SUMIF(A1:C3,"Jim",B1:D3)

Hope this helps!

In article ,
oomyoo wrote:

I have something like this:

A B C D

jim 4 jim 2
cathy 2 cathy 4
mary 5 mary 3

I would like to sum the values in B and D that corresponds to jim. I tried
=sumproduct((criteria1)*(criteria2)*(range B,D)), but this doesn't work. Any
help would be much appreciated.

Thanks!


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default sumif function

=SUMIF(A1:A3,"Jim",B1:B3) + SUMIF(C1:C3,"Jim",D1:D3)

HTH,
Bernie
MS Excel MVP


"oomyoo" wrote in message
...
nope, didn't work...

I should get a value of 6, but I'm only getting 4. Any other ideas?

"Domenic" wrote:

Try...

=SUMIF(A1:C3,"Jim",B1:D3)

Hope this helps!

In article ,
oomyoo wrote:

I have something like this:

A B C D

jim 4 jim 2
cathy 2 cathy 4
mary 5 mary 3

I would like to sum the values in B and D that corresponds to jim. I tried
=sumproduct((criteria1)*(criteria2)*(range B,D)), but this doesn't work. Any
help would be much appreciated.

Thanks!




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
oomyoo
 
Posts: n/a
Default sumif function

i was thinking complicated instead of simple... thanks!

"Bernie Deitrick" wrote:

=SUMIF(A1:A3,"Jim",B1:B3) + SUMIF(C1:C3,"Jim",D1:D3)

HTH,
Bernie
MS Excel MVP


"oomyoo" wrote in message
...
nope, didn't work...

I should get a value of 6, but I'm only getting 4. Any other ideas?

"Domenic" wrote:

Try...

=SUMIF(A1:C3,"Jim",B1:D3)

Hope this helps!

In article ,
oomyoo wrote:

I have something like this:

A B C D

jim 4 jim 2
cathy 2 cathy 4
mary 5 mary 3

I would like to sum the values in B and D that corresponds to jim. I tried
=sumproduct((criteria1)*(criteria2)*(range B,D)), but this doesn't work. Any
help would be much appreciated.

Thanks!




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default sumif function

The formula definitely returns the correct amount. Can you post the
exact formula you're using?

In article ,
oomyoo wrote:

nope, didn't work...

I should get a value of 6, but I'm only getting 4. Any other ideas?

"Domenic" wrote:

Try...

=SUMIF(A1:C3,"Jim",B1:D3)

Hope this helps!

In article ,
oomyoo wrote:

I have something like this:

A B C D

jim 4 jim 2
cathy 2 cathy 4
mary 5 mary 3

I would like to sum the values in B and D that corresponds to jim. I
tried
=sumproduct((criteria1)*(criteria2)*(range B,D)), but this doesn't work.
Any
help would be much appreciated.

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 Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
SumIF function ACDenver Excel Discussion (Misc queries) 2 August 17th 05 09:47 PM
Sumif function with remote cell references hennis Excel Worksheet Functions 1 August 12th 05 01:54 AM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:29 PM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM


All times are GMT +1. The time now is 01:34 AM.

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"