+ Reply to Thread
Results 1 to 3 of 3

IF(And(Search())) Not displaying false string

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    6

    IF(And(Search())) Not displaying false string

    =IF(AND(SEARCH("TRUE",AG4)*SEARCH("TRUE",AH4),SEARCH("TRUE",AI4),SEARCH("TRUE",AJ4)),"Complete","Not Complete")
    When all cells equal true "Complete" is displayed. When the a cell equals False "#VALUE!" is displayed.

    I don't understand why that is.

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

    Re: IF(And(Search())) Not displaying false string

    SEARCH returns the position of the searched text if found, if text is not found it returns #VALUE!

    You want something like
    =IF(AND(NOT(ISERROR(SEARCH("TRUE",AG4)))*NOT(ISERROR(SEARCH("TRUE",AH4)))*NOT(ISERROR(SEARCH("TRUE",AI4)))*NOT(ISERROR(SEARCH("TRUE",AJ4)))),"Complete","Not Complete")
    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 Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,078

    Re: IF(And(Search())) Not displaying false string

    Or maybe

    =IF(AND(NOT(ISERROR(SEARCH("TRUE",AG4:AJ4)))),"","Not ")&"Complete"
    Array formula, use Ctrl-Shift-Enter

+ 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: 9
    Last Post: 01-21-2013, 01:54 AM
  2. [SOLVED] String search always returns False value in results
    By coachd in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-24-2012, 05:03 PM
  3. [SOLVED] IF formula displaying as FALSE?
    By Merboo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-13-2012, 10:45 AM
  4. Replies: 3
    Last Post: 03-12-2010, 02:57 PM
  5. search for word in string of text = true or false?!
    By cashflowpro in forum Excel General
    Replies: 2
    Last Post: 02-26-2008, 03:50 PM

Tags for this Thread

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