+ Reply to Thread
Results 1 to 4 of 4

IF function with 2 conditions

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    34

    IF function with 2 conditions

    Hi everyone,

    I'd like some help with an if function that returns OK (Assume cell A1) if the value in C5 is greater than the value in B5 OR the value in C5 is equal to zero and ERROR otherwise (A2).


    I tried:

    =IF(OR(C5>B5;-0,1<C5<0,1;A1;A2)

    But it doesn't work.

    I can't upload a book with the example, there must be something wrong with my IE :S

    Thanks in advance!

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF function with 2 conditions

    =IF(OR(B5<C5,C5=0),"ok","error") ?????????
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    02-14-2013
    Location
    Bordeaux, France
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF function with 2 conditions

    Based on your formula, I'd say you made a mistake on the parenthesis,
    It should be something like :

    =IF(OR(C5>B5;C5=0);A1;A2)

    Hope it helps

  4. #4
    Registered User
    Join Date
    11-14-2012
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: IF function with 2 conditions

    Works.


    Damn was that simple.


    Much appreciated Fotis!

+ Reply to 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