Sumif SumProduct Several Criteria

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

Guest

I need to sum column AL IF column BR = "Y" AND column BJ = "S1". Is this
possible? I've tried:
RiskShareCount = SUMPRODUCT((BR1:BR999="Y")*(BJ1:BJ999="S1");(AL1:AL999)
but I get Syntax Error.

I'm also going to have to count the same records. Is this possible?
 
There is a bracket misisng at the end

= SUMPRODUCT((BR1:BR999="Y")*(BJ1:BJ999="S1");(AL1:AL999))

or even

= SUMPRODUCT((BR1:BR999="Y")*(BJ1:BJ999="S1");AL1:AL999)

should work, assuming that you have a Continental version of Excel that uses
; \(semi-coln) as a separator, not , (comma)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
No, it's not a Continental version. I'd picked that up from another posting
(doing my homework before I ask ; - )

I just tried:
MyTotal = SUMPRODUCT((BR1:BR999="Y")*(BJ1:BJ999="S1");(AL1:AL999))
and got a Syntax error.
So I tried:
MyTotal = SUMPRODUCT((BR1:BR999="Y")*(BJ1:BJ999="S1"),(AL1:AL999))
and it highlights the first ":" between BR1 and BR999 and says "Expected: )"

~sigh~
 
Stephanie,

I just plugged that comma based version into my spreadsheet and got no
error. No answer as I have no data, but it parsed fine.

--
HTH

Bob

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

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

Back
Top