+ Reply to Thread
Results 1 to 6 of 6

Search Comments for Multiple Text Strings

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    Nashville
    MS-Off Ver
    Excel 2007
    Posts
    8

    Search Comments for Multiple Text Strings

    Hello,

    I'm trying to create a function that allows me to search a range of comments based upon multiple search keywords. For example, the user would type in a single cell "dog, cat, par". The function would then search a range of comments and return, "Burt pet shop is great because of the cute dogs and cats, but their parrot selection is limited". I cannot use a VBA for this. The text will be partial strings and the user will only input by typing words and separating via comma. Also the lookup will need to related to a unique id or title. Any thoughts on how to accomplish this? I have attached a sample file to better represent what I'm trying to accomplish.
    Attached Files Attached Files

  2. #2
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: Search Comments for Multiple Text Strings

    =IFERROR(INDEX(Sheet2!$C$3:$C$7,MATCH(1,INDEX(ISNUMBER(SEARCH(D3,Sheet2!$C$3:$C$7))*(Sheet2!$B$3:$B$7=B3),,),0)),"No comments")

    try this

  3. #3
    Registered User
    Join Date
    05-21-2012
    Location
    Nashville
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Search Comments for Multiple Text Strings

    Thanks for the quick response! this seems like a close solution; however, it doesn't allow for multiple keywords searches. For example if the cell has both dog and fish the formula would return "No comment". Any thoughts on how to allow for multiple text string searches?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Search Comments for Multiple Text Strings

    see the attached formula - that was an array formula
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: Search Comments for Multiple Text Strings

    macro can work in that case..but I don't know vba sorry

  6. #6
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Search Comments for Multiple Text Strings

    Please Login or Register  to view this content.

+ 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. Search For Multiple Text Strings
    By jham808 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2015, 12:53 PM
  2. Excel Macro to search a pdf and hilite or add comments to text strings
    By jaimegranado in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2014, 10:15 PM
  3. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  4. Search for multiple text strings
    By SueWithQuestion in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2011, 09:48 AM
  5. search for multiple text strings?
    By pbgvdad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2008, 04:37 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