+ Reply to Thread
Results 1 to 4 of 4

Nested If Statement with AND/OR conditions

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    North Carolina
    MS-Off Ver
    Office 365
    Posts
    60

    Nested If Statement with AND/OR conditions

    I have a spreadsheet with TRUE/FALSE values generated from a user form. The userform populates cells B4 through B8 with true/false values based on whether a radio button is selected on the userform.

    I now need to identify a condition where if B6 is true and B4, B5, B7, B8 are false. If this condition is met, put a 1 in Cell H11. However, if any of the values B4, B5, B7, B8 are true, then i need the value of H11 to be a 2.

    I thought the answer would be a simple nested IF/AND statement, but i can only get the first condition working correctly.

    Any help would be appreciated.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,135

    Re: Nested If Statement with AND/OR conditions

    How about
    =IF(B6,(COUNTIFS(B4:B8,TRUE)>1)+1,"")

  3. #3
    Registered User
    Join Date
    11-30-2012
    Location
    North Carolina
    MS-Off Ver
    Office 365
    Posts
    60

    Re: Nested If Statement with AND/OR conditions

    I have not seen used like that before, but i cannot argue with the results. That works, and easier than my approach. Many thanks.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,135

    Re: Nested If Statement with AND/OR conditions

    You're welcome & thanks for the feedback.

+ 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. Nested If Statement with many conditions
    By jacobmarsh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2019, 10:07 AM
  2. nested if statement honoring conditions within a vba loop
    By grubarbarian in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2016, 10:51 AM
  3. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  4. Nested If Statement with Multiple Logical Conditions
    By gatefire08 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-18-2014, 12:17 PM
  5. [SOLVED] 3 conditions coming from one cell.. Nested If Statement??
    By trosasco in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2013, 02:52 PM
  6. Replies: 11
    Last Post: 10-26-2011, 03:24 PM
  7. Nested IF statement 3 conditions 3 outcomes
    By Nick_in_Dubai in forum Excel General
    Replies: 1
    Last Post: 03-12-2009, 04:38 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