+ Reply to Thread
Results 1 to 2 of 2

Returning True/False/Maybe

  1. #1
    Registered User
    Join Date
    02-03-2011
    Location
    San Jose, CA
    MS-Off Ver
    Excel 97
    Posts
    1

    Returning True/False/Maybe

    Cells containt text of multiple words. I want to return "Yes" if "A" exists in cell; "No" if "B" exists; and "maybe" if neither A or B exists... ? Currently, I'm using =IF((ISNUMBER(SEARCH("A",B3))),"YES","NO") ...but this only tells me about A not B or neither ??

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Returning True/False/Maybe

    Welcome to the forum.

    Maybe ...

    =CHOOSE(2*ISNUMBER(SEARCH("A", A1)) + ISNUMBER(SEARCH("B", A1)) + 1, "Neither", "B", "A", "Both")
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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