+ Reply to Thread
Results 1 to 7 of 7

Filtering table with cells

  1. #1
    Registered User
    Join Date
    06-30-2020
    Location
    USA
    MS-Off Ver
    365
    Posts
    3

    Filtering table with cells

    Hello,

    I have a massive table with about 5,000 items that I need to go through and I would like to filter only the items I need.

    So in the workbook I attached my table with my information is on the left and the small table on the right is where I would like to be able to paste a few assets number and have the table automatically filter.

    I've thought about using a Vlookup to return the value in another sheet but I need to input data in my table as I go through the items, so I'm guessing filtering it is the easiest way ?
    Attached Files Attached Files
    Last edited by AliGW; 06-30-2020 at 01:30 PM. Reason: Solved tag correctly applied.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Filtering table with cells

    I think "Advanced Filter" is your easiest way.

    On the Data Tab> in the "Sort & Filter" section > "Advanced"
    That opens the Advanced Filter Window.
    Fill in the List Range and Criteria Range and hit Okay
    Alternately, within that window, you can choose to copy and paste your filtered range to somewhere else in the workbook.

    Is that what you are looking for?
    Attached Images Attached Images
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-30-2020
    Location
    USA
    MS-Off Ver
    365
    Posts
    3

    Re: Filtering table with cells

    Yes that's exactly what I'm looking for, however when I try that everything gets filtered out and the table doesn't return any of the asset lines

    Edit: Just made a small mistake typing the header, Now it works fine
    Last edited by manu1361; 06-30-2020 at 01:24 PM.

  4. #4
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Filtering table with cells

    - Add a new page to your file which is named as "Sheet2"

    - In VBE, Tools > References add the following reference : Microsoft ActiveX Data Objects 2.6 Library

    - Then; in VBE add a standard module, copy and paste the following code into the module,

    Please Login or Register  to view this content.

    - Run the macro named "Test",

    - The filtered datas will be listed in "Sheet2"

    - A sample file is also attached below. Open the file and hit the button on Sheet1

    .
    Attached Files Attached Files

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

    Re: Filtering table with cells

    Another option, if you have dynamic arrays
    Turn the filter list into a table & use (in say M2)
    =FILTER(Table1,ISNUMBER(MATCH(Table1[Asset],Table2[Filter By: ],0)),"No data")
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Filtering table with cells

    Hmm, see attached example (I moved rows around a little just so I could paste images at the top of the sheet.

    Edit: I forgot to mention that the headers in your filter range need to be the same as your original headers. My bad.
    Glad you got it working
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-30-2020
    Location
    USA
    MS-Off Ver
    365
    Posts
    3

    Re: Filtering table with cells

    Thank you for the help everyone, the advanced filter did the trick and I'm not confident enough to use macros yet sadly.
    I'll look into the dynamic arrays thing for another project I have though.

    Thank you again!

+ 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. Replies: 5
    Last Post: 11-10-2019, 02:30 PM
  2. Replies: 5
    Last Post: 07-01-2019, 08:01 AM
  3. Pivot table/chart: Filtering specific cells without removing whole row
    By AndyPandy in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-12-2015, 10:19 AM
  4. [SOLVED] how can i sum pivot table filtering some values another table
    By moogii1102 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2014, 02:17 AM
  5. Filtering a table based on current cell in another table
    By bobarnett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2013, 10:44 AM
  6. Filtering Table B by the results in a column of Table A
    By GreenTee in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-17-2013, 10:10 PM
  7. Replies: 3
    Last Post: 10-31-2012, 11:52 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