+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Find text within a cell range

  1. #1
    Registered User
    Join Date
    11-05-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Arrow Find text within a cell range

    I am trying to do a search to compare a cell to a range of cells.

    Ex:

    A B
    cat cat
    dog
    horse dog
    bird horse
    mouse mouse
    zebra

    dog horse are both in A2 with a hard return between them.

    I want to know know if B1 is in range A1:A5
    Last edited by NBVC; 11-05-2010 at 03:45 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find text within a cell range

    Try

    =Isnumber(Search(B1,$A$1:$A$5))

    TRUE result means item found in the range.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-05-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find text within a cell range

    It didn't work. I get False when I should get a True.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find text within a cell range

    Okay, try:

    =ISNUMBER(MATCH("*"&B1&"*",$A$1:$A$5,0))

  5. #5
    Registered User
    Join Date
    11-05-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find text within a cell range

    Worked. Thanks so much!!!

+ 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