+ Reply to Thread
Results 1 to 3 of 3

Multiple Criteria in IF Statement in Excel

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    St. Louis,MO
    MS-Off Ver
    2013
    Posts
    1

    Multiple Criteria in IF Statement in Excel

    Hi,

    I have data that I am trying to analyze by using an IF statement in excel. I can get it to work in its simplest form try to combine the criteria into one, I think I am missing something.

    Here is what my formula looks like in its silest form and it works but I want to be able to combine all three into one. I think I have to use an OR but I couldn't get the coding correct.

    Multiple Criteria - works individual, need it to gether in one cell
    IF(B8="FP",IF(C8="LBR",IF(D8="99",TRUE)))
    IF(B8="RT",IF(C8="LBR",IF(D8="MP",TRUE)))
    IF(B8="1N",IF(C8="LBR",IF(D8="99",TRUE)))

    Tried this OR but it's not working correctly
    IF(OR(B8="FP",C8="LBR",D8="MP"),IF(OR(B8="RT",C8="LBR",D8="MP"),"TRUE"))

    Thoughts? Or is it better to do this via a Macro?

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Multiple Criteria in IF Statement in Excel

    Try

    =IF(AND(C8="LBR",OR(AND(OR(B8="FP",B8="1N"),D8="99"),AND(B8="RT",D8="MP"))),TRUE,FALSE)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: Multiple Criteria in IF Statement in Excel

    Try this:

    IF(OR(B8="FP",B8="1N"),IF(AND(C8="LBR",D8="99"),TRUE,FALSE),IF(B8="RT",IF(AND(C8="LBR",D8="MP"),TRUE,FALSE),FALSE))

    I've put a few FALSE returns, for completeness.

    Hope this helps.

    Pete

+ 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. Count statement wtih multiple criteria only showing results for one criteria
    By uhlabomber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:47 PM
  2. [SOLVED] If statement that will look among multiple criteria and generate a statement
    By liz5818 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2013, 04:12 PM
  3. [SOLVED] Multiple Criteria within an If Statement.
    By UsmanBPD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2012, 12:52 PM
  4. Multiple criteria if statement
    By marlin5124 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-11-2011, 03:18 AM
  5. Help with Min If statement and multiple criteria
    By asdzc2000 in forum Excel General
    Replies: 1
    Last Post: 03-16-2011, 11:35 AM

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