+ Reply to Thread
Results 1 to 4 of 4

If Statement checking Dual Criteria

  1. #1
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    If Statement checking Dual Criteria

    Hi Everyone,

    Hoping someone might be able to help me with this. I'm having a bit of trouble writing a formula that is checking two cells and return 4 possible responses.

    My formula resides in column AD. It is referencing columns AB and AC. Each of these can have a value of N or Y. The possible outcomes I want in AD are:
    - Yes (Both AB and AC have a "Y")
    - G/L Missing (AB=N ; AC=Y)
    - Auto Missing (AB=Y ; AC=N)
    - G/L and Auto Missing (AB=N ; AC=N)

    My formula currently is:

    =IF([@[General Liability Endorsements]]="","",IF([@[General Liability Endorsements]]<>"Y","GL Missing",IF($AC67<>"Y","Auto Missing","Yes")))

    Cell works fine, beyond the fact when both columns AB and AC are "N". As of right now, since it first looks at cell AB, it would show "GL Missing". Would it be possible to create a 3rd option, if both cells are equal to "N" in columns AB and AC, then it would show "GL and Auto Missing". I believe this can be done with an AND statement, but I'm a bit lost.

    Any help would be greatly appreciated.

  2. #2
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Tampa, Florida
    MS-Off Ver
    Excel 2013
    Posts
    142

    Re: If Statement checking Dual Criteria

    =IF(AND(AB1="Y",AC1="Y"),"Yes",IF(AND(AB1="N",AC1="Y"),"G/L Missing",IF(AND(AB1="Y",AC1="N"),"Auto Missing",IF(AND(AB1="N",AC1="N"),"G/L and Auto Missing",""))))
    Last edited by mo4391; 04-11-2016 at 04:09 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: If Statement checking Dual Criteria

    =IF(AND(AB1="Y",AC1="Y"),"Yes",IF(AND(AB1="N",AC1="Y"),"G/L Missing",IF(AND(AB1="Y",AC1="N"),"Auto Missing",IF(AND(AB1="N",AC1="N"),"G/L and Auto Missing",""))))

  4. #4
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Re: If Statement checking Dual Criteria

    This worked perfectly. Thank you Mo4391.

+ 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. Replies: 4
    Last Post: 10-25-2013, 12:27 PM
  2. IF statement checking #DIV/0!
    By themachine in forum Excel General
    Replies: 3
    Last Post: 06-20-2013, 02:41 PM
  3. Checking two conditions with if statement
    By viji_kr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-16-2013, 02:19 AM
  4. Mode Array dual criteria date range
    By willis47 in forum Excel General
    Replies: 3
    Last Post: 12-22-2011, 02:01 PM
  5. Checking FontSize in if statement
    By ragav777 in forum Excel General
    Replies: 2
    Last Post: 03-05-2011, 02:40 AM
  6. Dual Lookup/Vlookup/Match criteria
    By jj72uk in forum Excel General
    Replies: 6
    Last Post: 10-16-2009, 04:03 PM
  7. SUMIF with dual criteria?
    By surfengine in forum Excel General
    Replies: 7
    Last Post: 11-10-2006, 07:29 PM
  8. Dual Criteria
    By sally100 in forum Excel General
    Replies: 4
    Last Post: 03-08-2005, 07:08 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