Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GND GND is offline
external usenet poster
 
Posts: 1
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default 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!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default 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!



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default 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!



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Use of the "OR" function

You're welcome.


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





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default 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!





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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!







  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default 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!








  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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/

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default 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!










  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

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
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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

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"