Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default how do I use OR in a way that true return calculation


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default how do I use OR in a way that true return calculation

Ask a better question.

Give us an example of how you are using the OR function, and what you mean by
"true return".

--
Regards,
Fred


"NZRM" wrote in message
...



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 418
Default how do I use OR in a way that true return calculation

"NZRM" wrote apparently;
Subject: how do I use OR in a way that true return calculation


In the future, please include your question in the __body__ of your
posting, not just the subject. When I saw this inquiry in MS
Discussion Groups
( http://www.microsoft.com/communities...s/default.aspx ),
I could not even read the complete subject line.

Your question is unclear. A concrete example would be helpful.

If you mean that you would like OR() to evaluate to 0 for false and 1
for true, there are two ways depending on circumstance. As part of
arithmetic expression, nothing special is needed. For example:

=OR(A10,B1<0) * SUM(C1:C10)

If OR() stands alone, you can use one of the following tricks:

=--OR(A10,B1<0)
=1*OR(A10,B1<0)

On the other hand, if you mean that you would like the result of a
calculation returned depending on the OR of two conditions, you could
use the first example above, if applicable. Alternatively, try
something the following:

=IF( OR(A10,B1<0), SUM(C1:C10), SUM(D1:D10) )

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
Using COUNTIF to search for existence Epinn Excel Worksheet Functions 31 October 27th 06 04:57 AM
Open CSV causes calculation in manual calc mode [email protected] Excel Discussion (Misc queries) 0 July 25th 06 09:22 PM
Search for 2 true arguments and return true or false David Excel Discussion (Misc queries) 3 July 15th 06 10:18 AM
How do I make the true return a drop down list in the IF function? Brian Excel Worksheet Functions 5 April 13th 06 09:40 PM
If condition is true return sumproduct of two arrays Felipe Excel Worksheet Functions 0 October 14th 05 05:26 AM


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