+ Reply to Thread
Results 1 to 5 of 5

using ISNUMBER(SEARCH()) with a list and displaying the results.

  1. #1
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2013
    Posts
    18

    using ISNUMBER(SEARCH()) with a list and displaying the results.

    Any idea how I can apply the following formula to a range of cells?

    Please Login or Register  to view this content.
    The above formula check if a cell contain a specific keyword and return back the keyword if the value is true. I'm looking for a similar formula that will search multiple keywords in range and return back the matched keyword.

    Thanks.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: using ISNUMBER(SEARCH()) with a list and displaying the results.

    Try this ...

    =LOOKUP(2,1/SEARCH({"*","keyword1","keyword2"}, "text to search within"),{"","keyword1","keyword2"})

  3. #3
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: using ISNUMBER(SEARCH()) with a list and displaying the results.

    Quote Originally Posted by Phuocam View Post
    Try this ...

    =LOOKUP(2,1/SEARCH({"*","keyword1","keyword2"}, "text to search within"),{"","keyword1","keyword2"})
    Thanks, this do the job but is there a way to apply it to a range?

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: using ISNUMBER(SEARCH()) with a list and displaying the results.

    "text to search within" in A1.

    List in E2:E4

    =LOOKUP(2,1/SEARCH($E$2:$E$4, A1),$E$2:$E$4)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: using ISNUMBER(SEARCH()) with a list and displaying the results.

    Quote Originally Posted by Phuocam View Post
    "text to search within" in A1.

    List in E2:E4

    =LOOKUP(2,1/SEARCH($E$2:$E$4, A1),$E$2:$E$4)
    Hey again, what if the cell contain two keywords or more?

    Say if I had "JJAALLBB" in cell A4, is there a way to return AABB? (the current formula return BB only)

+ 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] Isnumber(search results misleading
    By DHFE in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-03-2015, 10:02 AM
  2. [SOLVED] displaying text box search results in a listbox
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-29-2014, 08:38 PM
  3. [SOLVED] Search for Text and displaying the results
    By ymaster44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 12:20 PM
  4. [SOLVED] Search for Identifier in Column (different sheet) and Displaying Results in Specific Cells
    By Velocir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 11:37 AM
  5. [SOLVED] Finding and Displaying data results from search criteria
    By winlam in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-25-2012, 11:25 PM
  6. displaying search results after searching 2 cbo's
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2010, 08:19 AM
  7. Displaying Search results (filtering?)
    By Klok in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2009, 06:45 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