+ Reply to Thread
Results 1 to 3 of 3

searching for partial text within a range of cells

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Omaha, NE
    MS-Off Ver
    MS 365
    Posts
    59

    Question searching for partial text within a range of cells

    I want to run a series of if's to find out if text exists within a range of cells:
    =IF(ISNUMBER(SEARCH("void",C2:D2)),"Payment Void",IF(ISNUMBER(SEARCH("letter",C2:D2)),"Letters","Other"))

    The challenge here is it is returning Other no matter what. Here's an example of a cell that contains void that I would expect it to return "Payment Void" but its not:
    "Void payment for terminated client/member"

    Thoughts on how to achieve what I want here?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: searching for partial text within a range of cells

    Try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: searching for partial text within a range of cells

    Here's another one...

    =IF(COUNTIF(C2:D2,"*void*"),"Payment Void",IF(COUNTIF(C2:D2,"*letter*"),"Letters","Other"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Find partial text in a range o cells
    By bbb13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-03-2015, 02:20 PM
  2. [SOLVED] Way to highlight cell when searching for a partial value / text?
    By MrGezus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2014, 11:23 AM
  3. Replies: 4
    Last Post: 07-27-2013, 07:38 AM
  4. [SOLVED] PARTIAL TEXT Search from range of cells.
    By manharji in forum Excel General
    Replies: 1
    Last Post: 04-07-2012, 08:19 AM
  5. Macro that can delete partial text from a range of cells
    By barkerw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2011, 12:19 PM
  6. Taking partial text from a range of cells, cutting it, and pasting it elsewhere
    By fecurtis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2008, 08:41 AM
  7. Searching for text within a range of cells
    By JohnG73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2007, 09:33 PM

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