View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,

I hope that you noticed I missed a trailing bracket

=SUMPRODUCT(--(A1:A10="Jon"),--(B1:B10=B"),C1:C10)
--
HTH

Bob

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

"Harry Seymour" wrote in message
...
very useful!
what is the -- function for??

"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A10="Jon"),--(B1:B10=B"),C1:C10

--
HTH

Bob

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

"Harry Seymour" <Harry wrote in
message
...
How can I sum values in my third column by specifying conditions in my
first
two?

e.g. Column A has values "Jon", "Max", "Mary", "Tom"
Column B has values "A" and "B".
Column C has values for each.

I need to sum C values where column A shows "Jon" and column B shows
"B".
I've tried =sumif(AND(A1:A10, "Jon"),(B1:B10, "B"), C1:C10) with no
luck.
the usual sumif should have the format =sumif(range to be assessed,
Criteria, range to be summed)