+ Reply to Thread
Results 1 to 5 of 5

If combination formula

  1. #1
    Registered User
    Join Date
    11-16-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    15

    If combination formula

    In 2 cells I have different vallues . eg: in A2 "Poultry" and B2 "Fish" or vice versa , if this combination comes together i want C2 to read "Not approved" otherwise "OK"
    Please advise with the formula

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: If combination formula

    hi Napa. maybe:
    =IF(OR(AND(A2="Poultry",B2="Fish"),AND(A2="Fish",B2="Poultry")),"Not Approved","OK")

    or:
    =IF(SUM(COUNTIF(A2:B2,{"fish","poultry"}))=2,"Not Approved","OK")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-16-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: If combination formula

    Thanks a lot Benshiryo. the first one is appropriate in my case !

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: If combination formula

    Maybe..

    =IF(AND(ISNUMBER(MATCH("Fish",A2:B2,0)),ISNUMBER(MATCH("Poultry",A2:B2,0))),"Not Approved","OK")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: If combination formula

    or another one
    array entered

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IF formula combination
    By lfhomet in forum Excel General
    Replies: 2
    Last Post: 11-24-2009, 08:11 AM
  2. Combination Formula Help
    By cfritz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2006, 08:07 AM
  3. [SOLVED] Combination Formula
    By Phil Hageman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2005, 06:05 PM
  4. Sum and If combination formula
    By Kim via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2005, 06:06 PM
  5. Help with combination formula
    By jessicawalton in forum Excel General
    Replies: 2
    Last Post: 01-14-2005, 05:06 PM

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