sumif function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the syntax for sumif function with two criteria range and two criteria?
 
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 said:
What is the syntax for sumif function with two criteria range and two
criteria?
 
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
What is the syntax for sumif function with two criteria range and two
criteria?
 
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!
 
nope, didn't work...

I should get a value of 6, but I'm only getting 4. Any other ideas?
 
=SUMIF(A1:A3,"Jim",B1:B3) + SUMIF(C1:C3,"Jim",D1:D3)

HTH,
Bernie
MS Excel MVP
 
The formula definitely returns the correct amount. Can you post the
exact formula you're using?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

subtotal with sumif nested 1
Sumif using Arrays 2
Sumif Question 1
=sumif function 1
SUMIFS - How to use a variable with > or < in criteria 2
SUMIF Function ? 1
SUMPRODUCT returns !Value# 5
sumifs criteria 3

Back
Top