+ Reply to Thread
Results 1 to 7 of 7

Search a cell for a specific text

  1. #1
    Registered User
    Join Date
    04-23-2019
    Location
    Atlanta, Ga.
    MS-Off Ver
    Office 365
    Posts
    16

    Search a cell for a specific text

    Good morning.

    What I am trying to do is test a cell condition for specific text content based on a range.

    =SUMPRODUCT(--ISNUMBER(SEARCH(THINGS,A34)))>0

    I found this formula which test the cell based on the contents in the range THINGS. It returns TRUE or FALSE.

    What I want to know is which item in THINGS did it find, if TRUE which item did it find instead of just TRUE or FALSE.

    Thank you in advance.

    William

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Search a cell for a specific text

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  3. #3
    Registered User
    Join Date
    04-23-2019
    Location
    Atlanta, Ga.
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Search a cell for a specific text

    Good morning.

    What I am trying to do is test a cell condition for specific text content based on a range.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I found this formula which test the cell based on the contents in the range THINGS. It returns TRUE or FALSE.

    What I want to know is which item in THINGS did it find, if TRUE which item did it find instead of just TRUE or FALSE.

    Thank you in advance.

    William
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Search a cell for a specific text

    How about
    =IFERROR(LOOKUP(10^5,SEARCH(THINGS,A5),THINGS),"")

    If you want complete matches use
    =IFERROR(LOOKUP(10^5,SEARCH(THINGS&" ",A5),THINGS),"")

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Search a cell for a specific text

    Another option is
    =FILTER(THINGS,ISNUMBER(SEARCH(THINGS&" ",A5)),"")

    But you will need to remove the 2nd UCE from the Named range & reduce the range to J2:J8

  6. #6
    Registered User
    Join Date
    04-23-2019
    Location
    Atlanta, Ga.
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Search a cell for a specific text

    Thank you so much for the response

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    worked the others did not

    In order to get to work properly, I had to add a space in front & back of each of the THINGS

    William

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Search a cell for a specific text

    You're welcome & thanks for the feedback

+ 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] Search many workbooks for specific text, then insert a text in adjacent cell
    By MDW12 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-26-2017, 02:08 PM
  2. Replies: 14
    Last Post: 12-17-2015, 08:16 PM
  3. [SOLVED] Search for the first cell that contained a specific text
    By Dena in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2014, 01:46 PM
  4. [SOLVED] VBA to search cell containing specific text and return common value
    By hate0lif3 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-30-2014, 09:41 AM
  5. [SOLVED] To search specific text in a cell that contains text string
    By mikail in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-15-2013, 03:02 PM
  6. [SOLVED] Macro to search rows for specific text within a cell then cut cell to specified location
    By jonathanpotts90 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-25-2012, 06:18 AM
  7. How do I search for specific text and sum the cell to the right?
    By PacRat2001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2005, 12:05 AM

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