+ Reply to Thread
Results 1 to 2 of 2

Search for term in multiple cells

  1. #1
    Registered User
    Join Date
    05-25-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Search for term in multiple cells

    It seems simple enough but I'm having problems with it.
    It's easy enough to use the FIND(text,within,start) command to find some text within one cell, but it won't let me use a range of cells for the 'within' part.
    I want a command to check whether a text string is located in either or both of two specified cells.

    Cheers

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Search for term in multiple cells

    Use COUNTIF

    =COUNTIF(range,"*"&<cell ref containing string>&"*")

    edit:

    You mention FIND in your OP so it's possible (probable) that you're looking for a case sensitive solution and COUNTIF is not viable if that is indeed the case.

    =SUMPRODUCT(--ISNUMBER(FIND(<cell ref containing string>,range)))
    Last edited by DonkeyOte; 08-13-2010 at 03:09 AM.

+ 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