+ Reply to Thread
Results 1 to 15 of 15

Filtering on multiple Worksheet

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Question Filtering on multiple Worksheet

    Hi everybody,

    I have a small technical issue with a Database that I am writing.
    In this database I have several sheets, referencing test reports. A test reports can have several tests in it.
    The idea behind my database is that the user only fills in the Data Sheet and all the other sheets populate themselves with formulas using values from the Data sheet.
    Line X corresponds to the same test on all my different sheets.
    I can filter my Data sheet using all kind of criteria, but I would like that when I do filter Data sheet my other sheets only display the corresponding filtered lines so the display is consistent on all my sheets.

    I didnt't find a way to do that so far and I think the solution would be to use VBA, but I don't know this tool.
    Does anybody have an idea to help me?

    Thank you

    Adrien

  2. #2
    Registered User
    Join Date
    07-30-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Re: Filtering on multiple Worksheet

    Anybody could help with my problem?
    I couldn't find a solution anywhere...

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Filtering on multiple Worksheet

    You get better help on your question if you ost an excel file, without confidential information.

    Please also add the desired (expected) result in your sheet.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    07-30-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Re: Filtering on multiple Worksheet

    Thank you for the advise oeldere.
    Here is a simplified version of the Database. Database.xlsx

    On the Screen Shot you can see the unfiltered sheets.

    Unfiltered Data.PNG
    Unfiltered Test 1.PNG

    Then I filter my Data sheet Filtered Data.PNG and I would like my other sheet to look like Result expected on other Sheets.PNG

    Thanks for your help
    Last edited by French_Frize; 08-03-2014 at 08:06 AM.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Filtering on multiple Worksheet

    why not all data on 1 sheet?

    see the attached file.

  6. #6
    Registered User
    Join Date
    07-30-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Re: Filtering on multiple Worksheet

    The actual database is very large and has a lot of columns, so it is easier to read this way.
    Plus it is clearer if have one tab per type of test (7 type of tests).

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Filtering on multiple Worksheet

    What do you call "very large"? Organizing the data the way that you have is quite problematic to work with. oeldere,s suggestion is a much better way of doing things.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Registered User
    Join Date
    07-30-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Re: Filtering on multiple Worksheet

    Very large means 1-200 columns.
    The idea behind having several worksheets the way I did is the user when filling in the database, only has to enter the data in the "Data" sheet and all the other "Tests" sheets populate automatically (using formulas and so on). This choice was made to made it more "user friendly" since several people will have to use this Database and more readable.

    Like I said one given row corresponds to the same test in all my sheets. There must be a way to filter on Data Sheet and only show the "visible" row numbers of Data onto the other sheets.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Filtering on multiple Worksheet

    You will need at least one common field on all your worksheets.

    With what you describe, I recommend a relational database instead of Excel.

  10. #10
    Registered User
    Join Date
    07-30-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Re: Filtering on multiple Worksheet

    The common field between all my worksheet is the row number (does it count?)
    I know Excel is not the best tool to make a user friendly Database but it is the first step of the project, in the future we will probably move to another tool but for right now we want to stick to Excel.
    I'm pretty sure there must be a way to do what I'm trying using VBA, unfortunately I don't know this tool.

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Filtering on multiple Worksheet

    No, the row number is just a row number and not a field in any of the records. For the row to be significant, all records on all worksheets would have to be exactly the same for that row and absolutely no sorting and inserting of records.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Filtering on multiple Worksheet

    Maybe like this, see the attached file.

  13. #13
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Filtering on multiple Worksheet

    Please find the attached sheet to see if this is what you are trying to achieve? Apply filter on the DATA sheet to see if you get the desired output on the TEST sheets.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  14. #14
    Registered User
    Join Date
    07-30-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Re: Filtering on multiple Worksheet

    Thank you both for your answers.
    Sktneer is very close to what I'm trying to do! Could you please help me understand how you managed to do it?

    Thank you very much to both of you for helping me

  15. #15
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Filtering on multiple Worksheet

    Place the formula of col. G of attached sheet in post#13 in any unused column of your choice on the Data Sheet and copy down for rest of the existing rows with data. After this on each Test Sheet, place the formula (see the formula on Test 1 and Test 2 sheets of the attached workbook) in the columns A and B and copy down. While doing so make sure no filter is applied on any column on the Data Sheet, this will hep you to know that how long you have to drag the formula down in a column to have data from the Data Sheet. Now right click on Test 1 Sheet Tab --> View Code. Here you will find a code for Worksheet_Activate Event, copy the code and place this code on each Test sheet by right clicking the sheet tab --> View Code --> and pasting the copied code on the opened code window. This code hides the blank rows generated after applying the filter on the Data Sheet, so you view only the rows with the data. After doing this save your workbook as Excel Macro-Enabled Workbook and you are done with the setup.

    Hope this helps.

+ 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. Filtering data from multiple fields into a separate worksheet
    By fbis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2013, 08:32 PM
  2. Create list in new worksheet with current info after multiple filtering
    By HERJARI in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2013, 10:21 PM
  3. Filtering one worksheet and transferring data to another workbooks worksheet
    By medic922 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2012, 09:58 AM
  4. Sorting (or maybe filtering) worksheet with multiple data in cells
    By SafetyDaveG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-02-2008, 05:34 PM
  5. Replies: 0
    Last Post: 08-16-2007, 05:51 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