A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"OR" operator to evaluate multiple conditions



 
 
Thread Tools Display Modes
  #1  
Old June 30th, 2004, 03:31 PM
Scott P
external usenet poster
 
Posts: n/a
Default "OR" operator to evaluate multiple conditions

Is there an arithmetic operator that represents "OR" for use in functions such as SUMPRODUCT? I am aware that you may use the "*" operator in SUMPRODUCT to represent an "AND" as in the following case: =SUMPRODUCT((Condition1)*(Condition2)). What is the appropriate operator to evaluate "OR" instead of "AND"?
  #2  
Old June 30th, 2004, 03:37 PM
Andy B
external usenet poster
 
Posts: n/a
Default "OR" operator to evaluate multiple conditions

Hi

I think an OR is usually done by adding two conditions, but it depends on
the circumstances. Another alternative is to have 2 SUMPRODUCTS and add them
together.
=SUMPRODUUCT((OptionA=1)*(value))+SUMPRODUCT((Opti onA=2)*(value))

--
Andy.


"Scott P" wrote in message
...
Is there an arithmetic operator that represents "OR" for use in functions

such as SUMPRODUCT? I am aware that you may use the "*" operator in
SUMPRODUCT to represent an "AND" as in the following case:
=SUMPRODUCT((Condition1)*(Condition2)). What is the appropriate operator to
evaluate "OR" instead of "AND"?


  #3  
Old June 30th, 2004, 03:40 PM
Leo Heuser
external usenet poster
 
Posts: n/a
Default "OR" operator to evaluate multiple conditions

Scott

It's +

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Scott P" skrev i en meddelelse
...
Is there an arithmetic operator that represents "OR" for use in functions

such as SUMPRODUCT? I am aware that you may use the "*" operator in
SUMPRODUCT to represent an "AND" as in the following case:
=SUMPRODUCT((Condition1)*(Condition2)). What is the appropriate operator to
evaluate "OR" instead of "AND"?


  #4  
Old June 30th, 2004, 03:51 PM
Scott P
external usenet poster
 
Posts: n/a
Default "OR" operator to evaluate multiple conditions

Thank you Leo and Andy -- I appreciate your help.

-Scott

"Leo Heuser" wrote:

Scott

It's +

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Scott P" skrev i en meddelelse
...
Is there an arithmetic operator that represents "OR" for use in functions

such as SUMPRODUCT? I am aware that you may use the "*" operator in
SUMPRODUCT to represent an "AND" as in the following case:
=SUMPRODUCT((Condition1)*(Condition2)). What is the appropriate operator to
evaluate "OR" instead of "AND"?



  #5  
Old June 30th, 2004, 05:14 PM
RagDyeR
external usenet poster
 
Posts: n/a
Default "OR" operator to evaluate multiple conditions

The plus sign can be used to designate "or" between multiple conditions
existing in *multiple ranges*:

=Sumproduct((Range1-Condition1)+(Range2-Condition2)*( ... ))

However, to designate "or" between multiple conditions existing in a
*single* range, you can create an array of these "or" conditions, using an
array constant, as:
=Sumproduct((Range1-{Condition1,Condition2,Condition3})*( ... ))
--

HTH,

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


"Scott P" wrote in message
...
Thank you Leo and Andy -- I appreciate your help.

-Scott

"Leo Heuser" wrote:

Scott

It's +

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Scott P" skrev i en meddelelse
...
Is there an arithmetic operator that represents "OR" for use in

functions
such as SUMPRODUCT? I am aware that you may use the "*" operator in
SUMPRODUCT to represent an "AND" as in the following case:
=SUMPRODUCT((Condition1)*(Condition2)). What is the appropriate operator

to
evaluate "OR" instead of "AND"?





  #6  
Old June 30th, 2004, 07:08 PM
Harlan Grove
external usenet poster
 
Posts: n/a
Default

"RagDyeR" wrote...
The plus sign can be used to designate "or" between multiple conditions
existing in *multiple ranges*:

=Sumproduct((Range1-Condition1)+(Range2-Condition2)*( ... ))

...

If both conditions are met, this double counts/sums (...). Safer to use

=SUMPRODUCT(--((Condition1)+...+(ConditionN)0),(...))

--
To top-post is human, to bottom-post and snip is sublime.
  #7  
Old July 1st, 2004, 07:36 AM
Leo Heuser
external usenet poster
 
Posts: n/a
Default "OR" operator to evaluate multiple conditions

You're welcome Scott, and we appreciate
your feedback :-)

LeoH


"Scott P" skrev i en meddelelse
...
Thank you Leo and Andy -- I appreciate your help.

-Scott



  #8  
Old July 1st, 2004, 11:29 PM
Aladin Akyurek
external usenet poster
 
Posts: n/a
Default "OR" operator to evaluate multiple conditions

If more than 2 conditions involved, it pays to switch to...

=SUMPRODUCT(--ISNUMBER(MATCH(Range1,ConditionList,0)),...)

"Scott P" wrote in message
...
Is there an arithmetic operator that represents "OR" for use in functions

such as SUMPRODUCT? I am aware that you may use the "*" operator in
SUMPRODUCT to represent an "AND" as in the following case:
=SUMPRODUCT((Condition1)*(Condition2)). What is the appropriate operator to
evaluate "OR" instead of "AND"?


  #9  
Old May 23rd, 2005, 08:24 PM
anand
external usenet poster
 
Posts: n/a
Default

What does a minus sign do? is this a "but not"

anand

"Leo Heuser" wrote:

Scott

It's +

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Scott P" skrev i en meddelelse
...
Is there an arithmetic operator that represents "OR" for use in functions

such as SUMPRODUCT? I am aware that you may use the "*" operator in
SUMPRODUCT to represent an "AND" as in the following case:
=SUMPRODUCT((Condition1)*(Condition2)). What is the appropriate operator to
evaluate "OR" instead of "AND"?



  #10  
Old May 23rd, 2005, 08:49 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default

see other question.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"anand" wrote in message
...
What does a minus sign do? is this a "but not"

anand

"Leo Heuser" wrote:

Scott

It's +

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Scott P" skrev i en meddelelse
...
Is there an arithmetic operator that represents "OR" for use in

functions
such as SUMPRODUCT? I am aware that you may use the "*" operator in
SUMPRODUCT to represent an "AND" as in the following case:
=SUMPRODUCT((Condition1)*(Condition2)). What is the appropriate

operator to
evaluate "OR" instead of "AND"?





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
return results based on multiple conditions Drabbacs Worksheet Functions 3 May 28th, 2004 11:34 PM
Multiple Conditions and Multiple Solutions Frank Kabel Worksheet Functions 0 February 4th, 2004 09:22 PM
Excel Help - Counting Multiple Conditions & Multiple Values MAX258 Worksheet Functions 5 October 13th, 2003 09:40 PM


All times are GMT +1. The time now is 09:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.