#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default sumproduct?

Is there any way to next an "or" function within sumproduct?

I have about 1000 lines of data representing individual cases. I want to
create a formula that uses 3 columns A, B and C: Return the # of cases that
demonstrate a value greater than x in column A or y in column B. In
addition, each must also have a "1" in column C to be included. those that
have meet criteria in both column A and B should be counted only once.

anand
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default sumproduct?

Maybe:-

=SUMPRODUCT((A1:A10D1)*(B1:B10D2)*(C1:C10=1))

Where D1 is your X value and D2 is your Y value

Mike

"anand" wrote:

Is there any way to next an "or" function within sumproduct?

I have about 1000 lines of data representing individual cases. I want to
create a formula that uses 3 columns A, B and C: Return the # of cases that
demonstrate a value greater than x in column A or y in column B. In
addition, each must also have a "1" in column C to be included. those that
have meet criteria in both column A and B should be counted only once.

anand

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default sumproduct?

Doesn't that give an AND function, rather than an OR, Mike?
--
David Biddulph

"Mike H" wrote in message
...
Maybe:-

=SUMPRODUCT((A1:A10D1)*(B1:B10D2)*(C1:C10=1))

Where D1 is your X value and D2 is your Y value


"anand" wrote:

Is there any way to next an "or" function within sumproduct?

I have about 1000 lines of data representing individual cases. I want to
create a formula that uses 3 columns A, B and C: Return the # of cases
that
demonstrate a value greater than x in column A or y in column B. In
addition, each must also have a "1" in column C to be included. those
that
have meet criteria in both column A and B should be counted only once.

anand



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default sumproduct?

David,

You are of course correct, perhaps I should learn to read more carefully:)

Perhaps I meant:-

=SUMPRODUCT(-(A1:A5D1),-(C1:C5=1))+SUMPRODUCT(-(B1:B5D2),-(C1:C5=1))-SUMPRODUCT((A1:A5D1)*(B1:B5D2)*(C1:C5=1))

But I bet there's a simpler way

Mike

"David Biddulph" wrote:

Doesn't that give an AND function, rather than an OR, Mike?
--
David Biddulph

"Mike H" wrote in message
...
Maybe:-

=SUMPRODUCT((A1:A10D1)*(B1:B10D2)*(C1:C10=1))

Where D1 is your X value and D2 is your Y value


"anand" wrote:

Is there any way to next an "or" function within sumproduct?

I have about 1000 lines of data representing individual cases. I want to
create a formula that uses 3 columns A, B and C: Return the # of cases
that
demonstrate a value greater than x in column A or y in column B. In
addition, each must also have a "1" in column C to be included. those
that
have meet criteria in both column A and B should be counted only once.

anand




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default sumproduct?

Does this work for you?

With D1 = x
and D2 = y

=SUMPRODUCT(((A1:A10D1)*(B1:B10<D2)*(C1:C10=1))+( (B1:B10D2)*(C1:C10=1)))
--

HTH,

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


"anand" wrote in message
...
Is there any way to next an "or" function within sumproduct?

I have about 1000 lines of data representing individual cases. I want to
create a formula that uses 3 columns A, B and C: Return the # of cases that
demonstrate a value greater than x in column A or y in column B. In
addition, each must also have a "1" in column C to be included. those that
have meet criteria in both column A and B should be counted only once.

anand




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default sumproduct?

A little shorter:

=SUMPRODUCT((((A1:A10D1)*(B1:B10<D2))+(B1:B10D2) )*(C1:C10=1))

--

HTH,

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

"RagDyeR" wrote in message
...
Does this work for you?

With D1 = x
and D2 = y

=SUMPRODUCT(((A1:A10D1)*(B1:B10<D2)*(C1:C10=1))+( (B1:B10D2)*(C1:C10=1)))
--

HTH,

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


"anand" wrote in message
...
Is there any way to next an "or" function within sumproduct?

I have about 1000 lines of data representing individual cases. I want to
create a formula that uses 3 columns A, B and C: Return the # of cases that
demonstrate a value greater than x in column A or y in column B. In
addition, each must also have a "1" in column C to be included. those that
have meet criteria in both column A and B should be counted only once.

anand



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
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
sumproduct Rex Excel Discussion (Misc queries) 5 October 9th 06 08:49 PM
Sumproduct help David Excel Worksheet Functions 3 October 8th 06 02:45 AM
Sumproduct Esrei Excel Discussion (Misc queries) 2 August 12th 05 04:22 PM
HELP!!! On SumProduct Wally Excel Worksheet Functions 2 July 17th 05 04:52 PM


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