Closed Thread
Results 1 to 5 of 5

OR IF function?

  1. #1
    Registered User
    Join Date
    06-27-2008
    Location
    Gilbert, AZ
    Posts
    2

    OR IF function?

    I need to check two cells for blanks and report a zero if the cell is blank. If EITHER of the cells are not blank, I need to make a simple computation. I can write the formula for one cell or for the other, but I don't know how to COMBINE the two "IF" statements. In Lotus, I seem to recall a function called "OR_IF", but can't seem to find a way to do it in Excel. Here's the two formulae I need to combine:

    =if(a1="",0,c1-d1) OR =if(b1="",0,c1-d1)

    If EITHER a1 or b1 is blank, i want to subtract d1 from c1. Can anyone help me with the "OR" function with two embedded "IF" statements?

    Thx,
    -Willcy-

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day

    Try this it may work in Lotus

    Please Login or Register  to view this content.
    Last edited by ratcat; 06-27-2008 at 09:05 PM.
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  3. #3
    Registered User
    Join Date
    06-27-2008
    Location
    Gilbert, AZ
    Posts
    2

    Thx

    Ratcat, you're the man (or woman)! I took your suggestion, and modified it for my application and NOT ONE error dialogue box filled my screen.

    Here's the final equation. (I added the IF TRUE statement of "0" before the ELSE computation).

    =IF(OR(C15="",E15=""),0,C15-E15)

    Thanks much for the help.
    Last edited by Willcy; 06-27-2008 at 10:04 PM.

  4. #4
    Registered User
    Join Date
    07-26-2011
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: OR IF function?

    I'm trying to get a formula that makes a different calculation based on the text in cell A1. Does anyone have a suggestion on the best way to do this?

    If cell A1="Text" then (A-B), or if cell A1="Text" then (C-D), or if cell A1="Text" then (E-F).

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: OR IF function?

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1