+ Reply to Thread
Results 1 to 6 of 6

Smart Text Searching

  1. #1
    Registered User
    Join Date
    06-04-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    72

    Smart Text Searching

    Using a function like COUNTIF, is there a good way to look for specific text in a cell that will not include words with prefixes? Example, searching for "like" returning counts that include "dislike".

    To complicate this, search cells will have sentences of text so it is not as simple as just searching for a quoted word without wildcards.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Smart Text Searching

    A
    B
    C
    1
    I don't like him
    3
    B1: =SUMPRODUCT(--ISNUMBER(SEARCH(" like", " " & A1:A4)))
    2
    I don't dislike him
    3
    Like you'd know
    4
    Likely true
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-04-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    72

    Re: Smart Text Searching

    Thank you SHG! That is indeed working.

    My only issue now is I do not quite understand why. I am not getting how the formula is differentiating between "like" and "dislike" while still picking up "likely" correctly.

    Would you or someone else expound on that some, please?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Smart Text Searching

    It looks for a space before the word "like"

  5. #5
    Registered User
    Join Date
    06-04-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    72

    Re: Smart Text Searching

    I get that. What I am missing is how it is picking up "Like" when it is at the front of a sentence which has no space preceding "like".

    Using COUNTIF, I tried something like that in my original formula and it was not finding "like" when it was front of a sentence.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Smart Text Searching

    how it is picking up "Like" when it is at the front of a sentence
    =SUMPRODUCT(--ISNUMBER(SEARCH(" like", " " & A1:A4)))

+ 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. [SOLVED] Need smart auto updating TEXT formula
    By Jetpilot69 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2014, 06:21 AM
  2. I need a code to serch text in smart art in excel and where found highlight
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-12-2013, 01:05 PM
  3. Replies: 19
    Last Post: 04-10-2013, 08:30 AM
  4. Excel 2007 : Text within Smart Art
    By ronbailey in forum Excel General
    Replies: 5
    Last Post: 07-06-2011, 12:46 PM
  5. Excel smart text reading or filtering
    By murali_crish in forum Excel General
    Replies: 0
    Last Post: 08-03-2010, 07:54 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