ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Use of the "OR" function (https://www.excelbanter.com/excel-programming/281486-use-function.html)

GND

Use of the "OR" function
 
I am trying to use two logical conditions in writing an
IF,THEN,ELSE formula in Excel that does the following: IF
(C500C499) OR (O500C500) THEN SET IT TO 0, OTHERWISE DO
THE FOLLOWING (C500-O500)*30. Here's the formula that
I've used but it doesn't work: =(IF((C500C499)OR
(O500C500)),0,(C500-O500)*30)

The bottom line is that I'm not sure how to use the OR
function. Can anyone tell me what I'm doing wrong?
Thanks for your help!

Leo Heuser[_2_]

Use of the "OR" function
 
=(IF(OR(C500C499,O500C500),0,(C500-O500)*30)

--
Best Regards
Leo Heuser
Excel MVP

Followup to newsgroup only please.

"GND" skrev i en meddelelse
...
I am trying to use two logical conditions in writing an
IF,THEN,ELSE formula in Excel that does the following: IF
(C500C499) OR (O500C500) THEN SET IT TO 0, OTHERWISE DO
THE FOLLOWING (C500-O500)*30. Here's the formula that
I've used but it doesn't work: =(IF((C500C499)OR
(O500C500)),0,(C500-O500)*30)

The bottom line is that I'm not sure how to use the OR
function. Can anyone tell me what I'm doing wrong?
Thanks for your help!




Don Guillett[_4_]

Use of the "OR" function
 
Suggest looking in HELP index for OR function syntax.

"GND" wrote in message
...
I am trying to use two logical conditions in writing an
IF,THEN,ELSE formula in Excel that does the following: IF
(C500C499) OR (O500C500) THEN SET IT TO 0, OTHERWISE DO
THE FOLLOWING (C500-O500)*30. Here's the formula that
I've used but it doesn't work: =(IF((C500C499)OR
(O500C500)),0,(C500-O500)*30)

The bottom line is that I'm not sure how to use the OR
function. Can anyone tell me what I'm doing wrong?
Thanks for your help!




No Name

Use of the "OR" function
 
Thanks much Leo!!!

-----Original Message-----
=(IF(OR(C500C499,O500C500),0,(C500-O500)*30)

--
Best Regards
Leo Heuser
Excel MVP

Followup to newsgroup only please.

"GND" skrev i en

meddelelse
...
I am trying to use two logical conditions in writing an
IF,THEN,ELSE formula in Excel that does the following:

IF
(C500C499) OR (O500C500) THEN SET IT TO 0, OTHERWISE

DO
THE FOLLOWING (C500-O500)*30. Here's the formula that
I've used but it doesn't work: =(IF((C500C499)OR
(O500C500)),0,(C500-O500)*30)

The bottom line is that I'm not sure how to use the OR
function. Can anyone tell me what I'm doing wrong?
Thanks for your help!



.


Leo Heuser[_2_]

Use of the "OR" function
 
You're welcome.


skrev i en meddelelse
...
Thanks much Leo!!!




Don Guillett[_4_]

Use of the "OR" function
 
What's the old saying about giving a man a fish?

"Don Guillett" wrote in message
...
Suggest looking in HELP index for OR function syntax.

"GND" wrote in message
...
I am trying to use two logical conditions in writing an
IF,THEN,ELSE formula in Excel that does the following: IF
(C500C499) OR (O500C500) THEN SET IT TO 0, OTHERWISE DO
THE FOLLOWING (C500-O500)*30. Here's the formula that
I've used but it doesn't work: =(IF((C500C499)OR
(O500C500)),0,(C500-O500)*30)

The bottom line is that I'm not sure how to use the OR
function. Can anyone tell me what I'm doing wrong?
Thanks for your help!






Tom Ogilvy

Use of the "OR" function
 
Give a man a fire and he will be warm the rest of the day
Set a man on fire and he will be warm the rest of his life

--
Regards,
Tom Ogilvy

Don Guillett wrote in message
...
What's the old saying about giving a man a fish?

"Don Guillett" wrote in message
...
Suggest looking in HELP index for OR function syntax.

"GND" wrote in message
...
I am trying to use two logical conditions in writing an
IF,THEN,ELSE formula in Excel that does the following: IF
(C500C499) OR (O500C500) THEN SET IT TO 0, OTHERWISE DO
THE FOLLOWING (C500-O500)*30. Here's the formula that
I've used but it doesn't work: =(IF((C500C499)OR
(O500C500)),0,(C500-O500)*30)

The bottom line is that I'm not sure how to use the OR
function. Can anyone tell me what I'm doing wrong?
Thanks for your help!








Vasant Nanavati

Use of the "OR" function
 
LOL! Hadn't heard that one before, Tom.

Regards,

Vasant.


"Tom Ogilvy" wrote in message
...
Give a man a fire and he will be warm the rest of the day
Set a man on fire and he will be warm the rest of his life

--
Regards,
Tom Ogilvy

Don Guillett wrote in message
...
What's the old saying about giving a man a fish?

"Don Guillett" wrote in message
...
Suggest looking in HELP index for OR function syntax.

"GND" wrote in message
...
I am trying to use two logical conditions in writing an
IF,THEN,ELSE formula in Excel that does the following: IF
(C500C499) OR (O500C500) THEN SET IT TO 0, OTHERWISE DO
THE FOLLOWING (C500-O500)*30. Here's the formula that
I've used but it doesn't work: =(IF((C500C499)OR
(O500C500)),0,(C500-O500)*30)

The bottom line is that I'm not sure how to use the OR
function. Can anyone tell me what I'm doing wrong?
Thanks for your help!









fyrfytr265

Use of the "OR" function
 

Im a novice at this, but had a similar problem with conditional
formulas. I think I may have what you are looking for.

=if(or(C500C499,O500C500),(0),30*(C500-O500))


Something that helped me greatly was clicking on my formula in the
formula window. As you move the cursor back and forth over the formula,
it displays what that portion of the formula does. You may already know
that.

Let me know if that formula works for you.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/


Don Guillett[_4_]

Use of the "OR" function
 
So, that's how you cook the fish.

"Tom Ogilvy" wrote in message
...
Give a man a fire and he will be warm the rest of the day
Set a man on fire and he will be warm the rest of his life

--
Regards,
Tom Ogilvy

Don Guillett wrote in message
...
What's the old saying about giving a man a fish?

"Don Guillett" wrote in message
...
Suggest looking in HELP index for OR function syntax.

"GND" wrote in message
...
I am trying to use two logical conditions in writing an
IF,THEN,ELSE formula in Excel that does the following: IF
(C500C499) OR (O500C500) THEN SET IT TO 0, OTHERWISE DO
THE FOLLOWING (C500-O500)*30. Here's the formula that
I've used but it doesn't work: =(IF((C500C499)OR
(O500C500)),0,(C500-O500)*30)

The bottom line is that I'm not sure how to use the OR
function. Can anyone tell me what I'm doing wrong?
Thanks for your help!









fhunth

Use of the "OR" function
 

The error is on the OR function

Try

=(IF( OR (O500C500;C500C499) ),0,(C500-O500)*30

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com



All times are GMT +1. The time now is 05:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com