+ Reply to Thread
Results 1 to 5 of 5

Dysfunctional nested if

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    Alaska
    MS-Off Ver
    Excel 2013
    Posts
    43

    Dysfunctional nested if

    I used to know how to do this! Last month, actually. But my brain has dropped something from the formula.

    So as to not confuse anyone with my dysfunctional function, here's what I am trying to do:

    If B5 is greater than 0 and G5 = "X" or H5 = "X" then L5, if not, 0

    (or by column titles) If in column "NAME" there is a name, and either column "CHILD OVER 6," or in column "CHILD UNDER 6," has been marked, then the information in column "HOME VISITS" needs to be used; if not, enter 0

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dysfunctional nested if

    Hi

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Dysfunctional nested if

    Maybe:
    =IF(AND(B5>0,OR(G5="X",H5="X")),L5,0)
    Quang PT

  4. #4
    Registered User
    Join Date
    08-19-2012
    Location
    Alaska
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: Dysfunctional nested if

    Thank you! I was so focused on what I was doing wrong with the nested and/or that I never even thought of using the XOR.

  5. #5
    Registered User
    Join Date
    08-19-2012
    Location
    Alaska
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: Dysfunctional nested if

    Thank you! Richard had reminded me I could use XOR, but yours lets me see where I was messing up. I kept putting a ) after the B5>0. I just couldn't see it.

+ 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. How to reduces Nested IF code(144 Nested IF) to achive same functionality
    By jobseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2014, 09:45 AM
  2. Replies: 0
    Last Post: 10-01-2012, 05:54 AM
  3. For each loop nested; getting stuck on one cell in first iteration of nested loop
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2009, 11:54 AM
  4. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM
  5. [SOLVED] Solver (and other parts of VBA) dysfunctional in Excel 2003 SP1
    By aaarrrgghhh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2005, 04: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