+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : How to search and return all similar values in a different cell

  1. #1
    Registered User
    Join Date
    07-12-2012
    Location
    LEEDS
    MS-Off Ver
    Excel 2007
    Posts
    1

    Lightbulb How to search and return all similar values in a different cell

    This might be a very easy question to experts but it bothers me...
    Please help me in using match or vlookup or find function...
    I'd like to return all similar values into a cell if it contains certain text. For example:

    List of data as below:

    Glasgow
    Glasgow South
    Glasgow north
    Gla lala
    xyz987

    If I type 'GLA' in cell A1, then I'd like to see all results contains 'GLA' all returned in Cell A2.
    I know we can use Ctrl+F option to highlight the data column and search that way but I am after a formular to show only the results contains certain text typed in Cell A1.

    Appreciate any effort
    Best regards,

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: How to search and return all similar values in a different cell

    Try this user defined function.

    Please Login or Register  to view this content.
    Paste this into a new module in the VBA editor (Alt F11 - Insert - Module).

    Then in A2 type =GetMatches(A1,E7:E11) adjusting the second argument to the range in which your data resides.
    Martin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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