Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Sumif SumProduct Several Criteria

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:A L999)
but I get Syntax Error.

I'm also going to have to count the same records. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Sumif SumProduct Several Criteria

There is a bracket misisng at the end

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

or even

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

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)

"StephanieH" wrote in message
...
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:A L999)
but I get Syntax Error.

I'm also going to have to count the same records. Is this possible?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Sumif SumProduct Several Criteria

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:A L999))
and got a Syntax error.
So I tried:
MyTotal = SUMPRODUCT((BR1:BR999="Y")*(BJ1:BJ999="S1"),(AL1:A L999))
and it highlights the first ":" between BR1 and BR999 and says "Expected: )"

~sigh~

"Bob Phillips" wrote:

There is a bracket misisng at the end

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

or even

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

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)

"StephanieH" wrote in message
...
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:A L999)
but I get Syntax Error.

I'm also going to have to count the same records. Is this possible?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Sumif SumProduct Several Criteria

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)

"StephanieH" wrote in message
...
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:A L999))
and got a Syntax error.
So I tried:
MyTotal = SUMPRODUCT((BR1:BR999="Y")*(BJ1:BJ999="S1"),(AL1:A L999))
and it highlights the first ":" between BR1 and BR999 and says
"Expected: )"

~sigh~

"Bob Phillips" wrote:

There is a bracket misisng at the end

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

or even

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

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)

"StephanieH" wrote in message
...
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:A L999)
but I get Syntax Error.

I'm also going to have to count the same records. Is this possible?






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
Awkward sumif/sumproduct with three criteria over two ranges PBcorn Excel Worksheet Functions 4 June 13th 08 04:43 PM
Sumproduct (Sumif) with Nested Or Criteria bkt Excel Worksheet Functions 9 September 5th 06 06:45 PM
date criteria with SUMIF or SUMPRODUCT Addy Excel Programming 3 August 25th 06 07:21 PM
SUMIF/SUMPRODUCT/IF - 2 criteria - Date and Text James T Excel Discussion (Misc queries) 4 May 25th 06 08:00 PM
sumif or sumproduct with date as criteria jhahes[_22_] Excel Programming 3 August 2nd 05 05:59 PM


All times are GMT +1. The time now is 12:43 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"