+ Reply to Thread
Results 1 to 7 of 7

Filter Several Sheets Based On Another Sheet Filter

  1. #1
    Registered User
    Join Date
    01-29-2013
    Location
    Sao Paulo/BR
    MS-Off Ver
    Excel 2010
    Posts
    6

    Exclamation Filter Several Sheets Based On Another Sheet Filter

    Hi All!

    I have an excel file with several sheets, like the file attached, which only have 3 sheets. All the sheets have one or more columns with values in common (in the attached only one column is in common: "Number").

    Today I am using simple excel Filters in the columns on every sheet and filtering manually and what I want to do is when I choose a number in the first sheet (in my example file): "Test 1", all the other sheets get filtered by the value(s) I chose.

    A simple example using my attached test file: "Test_Filters.xlsx":
    -----> Sheet: "Test 1"
    --------> Column: Number, select value (from the drop-down list): "1"
    --------> Result: "Test 2" and "Test 3", in the column: Number get filtered by value: "1" (it is as if I had selected this value from the drop-down list, if there is a way, this would be the best solution, like I do manually, but automatically )

    A few more comments, the number of values in sheets: "Test 2" and "Test 3" is not fixed, they grow almost every day.

    I have read several posts in this forum and others but could not find a way to do it and also, I am not an excel expert, yet.

    I hope my explanation is clear, otherwise, just tell me and I try to explain it in other words!

    This is my test file: Test_Filters.xlsx

    Thanks for your attention and time.

    Regards!

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Filter Several Sheets Based On Another Sheet Filter

    Hi VintuBr

    Does the attached file work for you?

    Regards
    Alastair
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-29-2013
    Location
    Sao Paulo/BR
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Filter Several Sheets Based On Another Sheet Filter

    Hi aydeegee!

    Thanks a lot for your help!

    That's what I was looking for, with only one question.

    I was going the same way, with a macro, I was recording a macro to know what was happening behind the scenes and after apply to all sheets in the file. It's been a long time since I used VBA, so it would take some time to discover how to loop over the sheets and apply the filter.

    The question I said above is if there is a way to apply the filter to all the sheets when a value is selected in the drop-down filter in the first sheet: "Test 1", so I don't have to write the value I want to filter in a cell. I am not sure if Excel works with events, something like AutoFilter's OnChange event: when one value is selected, this event is triggered. Does this exist? I will have a look to see if I can find something.

    Anyway, thanks again!

  4. #4
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Filter Several Sheets Based On Another Sheet Filter

    Hi VintuBr

    You mean something like as attached?

    To see the code, right click on the tab for Test 1 and View Code

    Regards
    Alastair
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-19-2013
    Location
    Romania
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Filter Several Sheets Based On Another Sheet Filter

    Hi Aydeegee. I've been trying (desperately) for the past 2 days to write a simple code that will filter specific worksheets in my book based on a value i double click on in another sheet. I almost had it nailed today but it;s not working.The two examples you posted are the closest thing I've found to a solution. could you please lend a helping hand?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Filter Several Sheets Based On Another Sheet Filter

    Constbogdan,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Registered User
    Join Date
    12-04-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Filter Several Sheets Based On Another Sheet Filter

    Hello there!

    First of all thank you for you work, I have been looking for this for one day now! Could you just tell me if it is possible to filter for example number "2" and "3"? I need something like this but i am new to vba and i really do not know how to implement it!

+ 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. One filter/ Master filter multiple pivot tables based on worksheet...
    By jlworden in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-10-2013, 11:16 AM
  2. Master Filter Sheet to Filter All Sheets
    By nguyeda in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 12-16-2012, 06:59 PM
  3. [SOLVED] Need: filter, paste info to new sheet, rename sheet, unfilter, hide column, filter next
    By esmithqg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2012, 04:49 PM
  4. Change Pivot table Filter Based on Cell Value *Multiple Filter items* Possible?
    By Flydd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2012, 06:57 AM
  5. VBA to change filter for n pivots based on page filter selection for the first pivot
    By shama.arige in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2011, 11:42 AM

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