+ Reply to Thread
Results 1 to 5 of 5

Nested IF AND Formula not working properly

  1. #1
    Forum Contributor
    Join Date
    04-02-2013
    Location
    Hollywood, Fl
    MS-Off Ver
    Excel 2010
    Posts
    110

    Nested IF AND Formula not working properly

    I'm trying to use a formula to indicate a users status based on whether a cell has a value in it or not. This is the formula that I'm using, but the only result I'm getting is "Inactive"

    Please Login or Register  to view this content.
    The criteria for the "Active" results are satisfied within a few cells, but I'm still receiving "Inactive" even for those. Any help is greatly appreciated, thanks!

    Damian37

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,731

    Re: Nested IF AND Formula not working properly

    your " " - are looking for a Space and not clear
    change to

    =IF(AND(N2<>"",O2=""),"Active",IF(AND(N2="",O2=""),"Active",IF(AND(N2<>"",O2<>""),"Inactive","false")))

    OR

    =IF(OR( AND(N2<>"",O2=""), AND(N2="",O2="")) , "Active",IF(AND(N2<>"",O2<>""),"Inactive","false"))

    Which actually can be simplied to

    =IF(O2="" , "Active",IF(AND(N2<>"",O2<>""),"Inactive","false"))
    AS N2 does not matter for Active
    Last edited by etaf; 03-21-2016 at 10:41 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Nested IF AND Formula not working properly

    Take out the space character between your quotation marks and see if it works, like so:

    =IF(AND(N2<>"",O2=""),"Active",IF(AND(N2="",O2=""),"Active",IF(AND(N2<>"",O2<>""),"Inactive","false")))

    --------

    *Edit

    oops, must have been submitting a response at the same time as etaf. Is there any way to delete my post?

    --------

    Here's a simpler alternative with the same output:

    =IF(O2="","Active",IF(N2<>"","Inactive","false"))
    Last edited by eibi; 03-21-2016 at 10:44 AM.

  4. #4
    Forum Contributor
    Join Date
    04-02-2013
    Location
    Hollywood, Fl
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Nested IF AND Formula not working properly

    Quote Originally Posted by etaf View Post
    your " " - are looking for a Space and not clear
    change to

    =IF(AND(N2<>"",O2=""),"Active",IF(AND(N2="",O2=""),"Active",IF(AND(N2<>"",O2<>""),"Inactive","false")))

    OR

    =IF(OR( AND(N2<>"",O2=""), AND(N2="",O2="")) , "Active",IF(AND(N2<>"",O2<>""),"Inactive","false"))

    Which actually can be simplied to

    =IF(O2="" , "Active",IF(AND(N2<>"",O2<>""),"Inactive","false"))
    AS N2 does not matter for Active
    Thanks for the response. That worked great. For some reason I thought having a space between the quotes meant an empty cell. Thanks again!

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,731

    Re: Nested IF AND Formula not working properly

    you are welcome
    eibi has a simplified version

    thanks for the rep

+ 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. Ranking Formula not working properly
    By Socrates in forum Excel General
    Replies: 6
    Last Post: 08-08-2014, 09:30 AM
  2. [SOLVED] IF formula not working properly
    By argentraven in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-04-2013, 01:56 PM
  3. Help: INDIRECT FORMULA NOT WORKING PROPERLY.
    By Renan in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-06-2012, 07:28 AM
  4. Sum Formula Not Working Properly
    By SSS86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2012, 07:02 PM
  5. Formula not always working properly
    By dumpster1985 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-29-2012, 05:06 PM
  6. Exact Formula not working properly
    By wasim.qureshi in forum Excel General
    Replies: 4
    Last Post: 02-03-2010, 09:12 AM
  7. Rank formula not working properly
    By benno87 in forum Excel General
    Replies: 8
    Last Post: 10-07-2009, 09:30 PM
  8. calculating formula not working properly
    By lnjr in forum Excel General
    Replies: 6
    Last Post: 11-16-2008, 03:36 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