+ Reply to Thread
Results 1 to 7 of 7

Displaying Search results (filtering?)

  1. #1
    Registered User
    Join Date
    10-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Displaying Search results (filtering?)

    Hi this is my first post here so let me apologise in advance if im doing something wrong.

    My problem is I have two worksheets in worksheet 1 I have a bunch of data and I want to be able to filter out to only include relevant results.

    Eg. If I search for 'Dog' I want search column A in another sheet and find all full and partial matches then display the entire row of each of these matches.

    Can anyone help? please let me know if i didnt explain it clearly

    PS im using excel 2007
    Last edited by Klok; 10-04-2009 at 06:47 AM. Reason: solved

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Displaying Search results (filtering?)

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Displaying Search results (filtering?)

    Thanks NBVC

    A sample sheet is now attached.

    The data in the first sheet will not change and I have created a couple of results that I want to happen.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Displaying Search results (filtering?)

    just a bump :P

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

    Re: Displaying Search results (filtering?)

    In E1, put what you're searching for, e.g., dog.

    In E2 and down, =ISERROR(SEARCH(E$1, A2))

    AutoFilter on col E.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Displaying Search results (filtering?)

    Try this:

    In E2 of Sheet1, enter formula:

    =IF(ISNUMBER(SEARCH(Sheet2!$A$2,A2)),MAX($E$1:E1)+1,"")

    copied down.

    Then in A5 of Sheet2:

    =IF(ROWS($A$5:$A5)>MAX(Sheet1!$E:$E),"",INDEX(Sheet1!A:A,MATCH(ROWS($A$5:$A5),Sheet1!$E:$E,0)))

    copied down as far as you desire (rows will show blank if there are no more matches) and across as many columns as necessary.

    When you change the text in A2, any items that contain that string from column A in Sheet1, will appear, along with corresponding items in the respective rows.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Displaying Search results (filtering?)

    thank you very much, that works perfectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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