+ Reply to Thread
Results 1 to 5 of 5

Thread: Verify Text Exists in a Row of Cells

  1. #1
    Registered User
    Join Date
    01-27-2012
    Location
    Shreveport, LA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Verify Text Exists in a Row of Cells

    Hello All,

    I could not find any posts that collected all the necessary info to achieve my goal, but if anyone knows of one, please let me know!

    Problem:
    I need to search an entire worksheet and "highlight", "extract" or in some other way identify which ROWS contain a desired word. It does not matter where the word shows up, what case, or how many times ... I just need to know it is in that ROW of data.

    Example:
    If the word I am looking for is "Monkey" I need to know what rows of cells contain any version of "Monkey" such as "Monkey", "monkey", or even "bananmonkeylove".

    Is this possible? Can anyone help me?

  2. #2
    Valued Forum Contributor tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2003 - 2007
    Posts
    2,352

    Re: Verify Text Exists in a Row of Cells

    cmashburn,

    Welcome to the forum!
    Attached is an example workbook based on the criteria you described. In cell F1 is where you type in what you want to search for. The entire sheet has this conditional format applied to it:
    =AND(TRIM($F$1)<>"",COUNTIF(1:1,"*"&$F$1&"*")>0)
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-27-2012
    Location
    Shreveport, LA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Verify Text Exists in a Row of Cells

    tigeravatar,

    This is perfect! And so fast! Thank you very much.

    Is there a way to alter this to search multiple keywords? If not, no worries. Thank you again!

  4. #4
    Valued Forum Contributor tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2003 - 2007
    Posts
    2,352

    Re: Verify Text Exists in a Row of Cells

    You should be able to alter it. Assuming your list of keywords were in F1:F10, you could use this as the conditional format formula:
    =SUMPRODUCT(--(TRIM($F$1:$F$10)<>""),--(COUNTIF(1:1,"*"&$F$1:$F$10&"*")>0))>0
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    01-27-2012
    Location
    Shreveport, LA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Verify Text Exists in a Row of Cells

    Yes! Thank you very 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.2.0