+ Reply to Thread
Results 1 to 6 of 6

Combining if & or function

  1. #1
    Registered User
    Join Date
    10-21-2010
    Location
    abcd
    MS-Off Ver
    Excel 2007
    Posts
    4

    Combining if & or function

    =OR(IF(C2="GOOD",K2,""),IF(D2="GOOD",M2,""))

    This is what I tried, but it was not right.

    I want the values from K2 if C2 is "GOOD" or the values from M2 if D2 is "GOOD". How to formulate this?

    It seems simple, but I couldn't do it. I would really appreciate some help here.

    Thank you.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Combining if & or function

    Try

    =IF(C2="GOOD",K2,IF(D2="GOOD",M2,""))

  3. #3
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Combining if & or function

    Hi fiera150,

    What if both conditions are not met.. I mean what should it be if C2 or D2 isnt Good?
    Thanks,

    Bonny Tycoon


  4. #4
    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: Combining if & or function

    Hi


    Delete post
    Last edited by Fotis1991; 04-16-2012 at 05:05 AM. Reason: Same answer....
    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.

  5. #5
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Combining if & or function

    Hi fiera150,

    Try this

    Please Login or Register  to view this content.
    You can add text or value or cell refrence in the brackets after M2.

    If I was able to help – PLEASE DO NOT FORGET to Click the small star icon at the bottom left of my post.

  6. #6
    Registered User
    Join Date
    10-21-2010
    Location
    abcd
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Combining if & or function

    Bob,
    Thank you, it works.

    Bonny,
    If the conditions are not met, leave the cell blank.

    Thank you, it works.

    Thank you so much guys...

+ 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