+ Reply to Thread
Results 1 to 8 of 8

How to filter a column based on a column in a different file

  1. #1
    Registered User
    Join Date
    12-01-2011
    Location
    el pueblo de nuestra senora la reina de
    MS-Off Ver
    Excel 365
    Posts
    40

    How to filter a column based on a column in a different file

    I am using excel 2016.
    I have two files.
    One just has a list of serial numbers. (serial list)
    The second has many columns, but colmun E is the serial number list. (all computers2)

    In the second sheet , I want to only display the rows that have the same serial numbers as the first sheet does.

    Thank you
    Attached Files Attached Files
    Last edited by ghurty; 05-14-2024 at 12:21 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,955

    Re: How to filter a column based on a column in a different file

    Post samples of both files.

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-01-2011
    Location
    el pueblo de nuestra senora la reina de
    MS-Off Ver
    Excel 365
    Posts
    40

    Re: How to filter a column based on a column in a different file

    Thank you. I updated the original post

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,955

    Re: How to filter a column based on a column in a different file

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-01-2011
    Location
    el pueblo de nuestra senora la reina de
    MS-Off Ver
    Excel 365
    Posts
    40

    Re: How to filter a column based on a column in a different file

    I just tried it and I got an error that the function is not valid. Please note that I am on a computer that uses excel 2016. TY

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,955

    Re: How to filter a column based on a column in a different file

    Your profile says 365, hence you got a formula that reflects your profile.

    Please update your profile, or state within your OP what version of Excel the formula needs to work with.

    You can still use the COUNTIF to check whether a record is present but you'll need different functions to return the data.

  7. #7
    Registered User
    Join Date
    12-01-2011
    Location
    el pueblo de nuestra senora la reina de
    MS-Off Ver
    Excel 365
    Posts
    40

    Re: How to filter a column based on a column in a different file

    I appoligize, because of my profile, I wrote in my original post that I was using excel 2016.
    What function would it be?

    Thank you

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,757

    Re: How to filter a column based on a column in a different file

    For the 2016 version of Excel I would suggest:
    1. Converting the data on the Report (31) sheet into an Excel table
    2. Add a column E populated using: =ISNUMBER(MATCH(C4,MyProductList!C$2:C$7,0))
    3. Filter the table by selecting the sort/filter button in cell E1 and choosing TRUE
    Note that when the data on the MyProductList sheet is moved to another workbook the formula will automatically update.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 15
    Last Post: 10-27-2020, 10:08 PM
  2. [SOLVED] VBA: Filter one column based on value in another column
    By AndersThyme in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2020, 05:48 AM
  3. split excel sheet based on column filter with protected column
    By rishikrsaw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-23-2019, 03:33 AM
  4. how to sort a column based on a the other column to an other file
    By besmir in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2014, 10:18 AM
  5. [SOLVED] Filter rows based on unique values in one column + specific value in another column
    By Dieneces in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2013, 09:55 AM
  6. How to filter a column in a table based on a set of values in another column
    By redhawk87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 06:24 PM
  7. Replies: 9
    Last Post: 01-04-2013, 09:56 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