+ Reply to Thread
Results 1 to 5 of 5

Find Text

  1. #1
    Registered User
    Join Date
    08-16-2004
    Posts
    34

    Find Text

    I'm currently using the following formula for looking for certain text in a certain cell:

    =IF(ISNUMBER(SEARCH("death",A1)),"yes","")

    so if the cell has "death" it returns a "yes".

    What I'm looking for is a this to look at a range of columns not just one cell.
    ie A1:F1 and if any of the cells in this range I need the result to be "yes"

    Any help would be appreciated.

    Teeb

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446
    Hi,

    You can concatenate the cells you want to check like this:

    =IF(ISNUMBER(SEARCH("death",A1&B1&C1&D1&E1&F1)),"yes","")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    06-25-2005
    Posts
    46
    Hi,

    You can't use the search function for more than one cell.

    Assuming you are looking for different values in the different cells, you can use the OR function which tests up to 30 criteria (separated by a comma) Use them in an IF statement =IF(OR(ISNUMBER(SEARCH("death",A1)), and your next criteria ,"yes","")))

    In a similar manner you can use the AND when you want more than 1 criterion to be in the cells.

    HTH,


    Roly

  4. #4
    Registered User
    Join Date
    05-12-2007
    Posts
    24
    Maybe an array function. Not sure but this page seems to have a solution

    http://www.emailoffice.com/excel/arrays-bobumlas.html

    tek

  5. #5
    Registered User
    Join Date
    08-16-2004
    Posts
    34

    Find Text

    Thanks guys!! The concenate worked.

    Cheers, Teeb

+ 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