+ Reply to Thread
Results 1 to 5 of 5

Filtering across two worksheets

  1. #1
    Registered User
    Join Date
    02-29-2016
    Location
    Wellington, New Zealand
    MS-Off Ver
    Office 2013
    Posts
    2

    Filtering across two worksheets

    Hi,

    I've turned to this forum because I can't seem to find the right search in Google to solve the issue I'm having - I hope you can help

    I have created a workbook that is used by one of the teams here at my workplace during their weekly team meetings. It contains a list of client data, which, to make it readable on the screen used in these meetings, is split across two worksheets.

    The first three columns in each sheet are identical; Column 1 contains a list of numbers from 1 to 5,000-odd (added after somebody changed the sort order on one of the sheets and got the data out of sync across the two), column 2 is First Name and column 3 is Last name. Columns 4 onwards contain data unique to each sheet.

    My problem is, while a filter on one of the first three columns can be easily replicated in the other sheet, a filter on column 4 onwards is not easily copied. I would like to automate that. My first thought is that because the first three columns are consistent across the two sheets, a filter based upon the data showing in one of those columns would be the easiest option (i.e. column 1 in Sheet 1 is only showing 1,5,9..., so filter column 1 in Sheet 2 based on that list, and vice versa). However there doesn't seem to be an option using Autofilter, to filter based upon a list in another column. I looked at using an advanced filter, but I don't understand enough about how these work to reach a solution, and I suspect it may not be possible there either.

    I have attached an example workbook to give an idea of how everything is set up. I'm happy to use VBA if necessary to get the desired result, but the less the users of the spreadsheet have to do to filter across the two sheets the better; they struggle with Excel as it is.

    Thanks in advance,

    Hamish
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: Filtering across two worksheets

    One suggestion:
    Include the same columns on both sheets as follows
    Sheet2 Columns I to M should include Data1 to Data5
    Sheet1 Columns I to M should include Data6 to Data10
    Then hide columns I to M on both sheets

    Now you can select consistently across the sheets using VBA or manually
    Last edited by Kevin#; 03-01-2016 at 03:03 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: Filtering across two worksheets

    An alternative solution would be to use 3 sheets.
    Sheet1 & 2 as at present
    Sheet3 to include ALL columns
    Filter on sheet3 and use VBA to generate all the values on Sheets 1 & 2
    Last edited by Kevin#; 03-01-2016 at 03:04 AM.

  4. #4
    Registered User
    Join Date
    02-29-2016
    Location
    Wellington, New Zealand
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Filtering across two worksheets

    Thanks Kevin, I hadn't thought of including all of the data on both sheets, but this seems like it should work. Now I just need to figure out the macro Looks like I'll be learning something new this afternoon!

  5. #5
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: Filtering across two worksheets

    Here are 2 options (both included in attached workbook)

    Something that may work for you is to just use the one sheet and hide the non-required columns each time after filtering (attach each macro to a button for ease of use)

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Or going back to the original idea, filter the data and then run this macro to divide the data into 2 sheets for viewing
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Auto filtering onto seperate worksheets
    By Adam Barber in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-07-2014, 05:09 AM
  2. Macro to pull data from 3 other worksheets, plus filtering help
    By Thunderer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2013, 05:35 PM
  3. Replies: 2
    Last Post: 03-23-2013, 04:42 PM
  4. Auto Filtering on separate worksheets
    By sglxl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2013, 11:52 AM
  5. Excel 2007 : Filtering linked worksheets
    By Paddon in forum Excel General
    Replies: 0
    Last Post: 09-24-2010, 01:22 PM
  6. Filtering to seperate worksheets
    By suedehead in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2008, 09:09 AM
  7. Dynamically filtering/updating worksheets
    By hoopz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2006, 03:04 PM
  8. Excel Filtering multiple worksheets in one workbook
    By Sharon in forum Excel General
    Replies: 4
    Last Post: 03-24-2006, 09:50 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