+ Reply to Thread
Results 1 to 15 of 15

VBA: How to automatically populate filtered table in a separate worksheet using formulas

  1. #1
    Registered User
    Join Date
    02-06-2005
    MS-Off Ver
    Excell 2016
    Posts
    35

    VBA: How to automatically populate filtered table in a separate worksheet using formulas

    Hello,

    I need to filter by Sample ID (Sample 1, 2, 3, 4) and also by pairs of Types (001 & 002, 003 & 004 or 006 & 007). An example of Master Data filtered by Sample 1 in Column A and Type 001 & 002 in Column B is included in link to spreadsheet that I am trying to create. How do I to use formulas to automatically populate newly filtered results to the Filtered Data.

    https://drive.google.com/open?id=1rB...x6qKJEr09ibVJj

    Best,

    Francis

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to automatically populate filtered table in a separate worksheet using formulas

    Please attach the file directly here - instructions up at the top of the page.

    Is this an Excel or Google Sheets question?
    Last edited by AliGW; 12-29-2019 at 03:21 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: How to automatically populate filtered table in a separate worksheet using formulas

    Hi Frankcase

    you just need to bring your source to Power Query and un-Pivot it then load it to Excel, Pivot it and use slicers to be your filters for types and Sample ID

    Each time when you update your source in Excel, just goto last two tabs and right click refresh
    Attached Files Attached Files
    Christopher Yap

  4. #4
    Registered User
    Join Date
    02-06-2005
    MS-Off Ver
    Excell 2016
    Posts
    35

    Re: How to automatically populate filtered table in a separate worksheet using formulas

    Hi,

    Here is a crude excel macro example of what I am trying to do. But how do I create a button/dropdown list or combo box to select a Sample (Sample 1, 2, 3 or 4) with a pair of Types (001 & 002, 003 & 004 or 006 & 007)

    Sample
    Sample 1
    Sample 2
    Sample 3
    Sample 4

    Type
    001_Element 1_No IS
    002_Li_IS 1_IS_I
    003_Element 2_No IS
    004_B_IS 2_IS_II
    006_Element 3
    007_IS 3


    After the above selection is made. The Master data is filtered based on the above selection and the filtered data is automatically copied to the filtered data sheet
    I recorded a macro that achieves that goal but would like be able to have this process automated with a couple of clicks

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to automatically populate filtered table in a separate worksheet using formulas

    Once again, is this solution needed for Excel or Google Sheets?

  6. #6
    Registered User
    Join Date
    02-06-2005
    MS-Off Ver
    Excell 2016
    Posts
    35
    Excel 2016
    Last edited by AliGW; 12-30-2019 at 08:32 AM. Reason: Please don't quote unnecessarily!

  7. #7
    Registered User
    Join Date
    02-06-2005
    MS-Off Ver
    Excell 2016
    Posts
    35

    Re: How to automatically populate filtered table in a separate worksheet using formulas

    Aligw,

    Any ideas to solve this excel 2016 macro problem for data organization?

    Best,

    Francis

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to automatically populate filtered table in a separate worksheet using formulas

    No, sorry - VBA is not my area of expertise - but I'll move this to the VBA section.

  9. #9
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Exclamation

    Administrative Note:

    Unfortunately, this is a duplicate thread …

    Please see Forum Rule #5 about thread duplication.

  10. #10
    Registered User
    Join Date
    02-06-2005
    MS-Off Ver
    Excell 2016
    Posts
    35

    Re: VBA: How to automatically populate filtered table in a separate worksheet using formul

    Mrrc,

    Hi it got moved bt AliGW to the VBA forum. Does that mean I have to delete the other message?

  11. #11
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Wait for a moderator explanation …

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: VBA: How to automatically populate filtered table in a separate worksheet using formul

    This thread was moved this morning to the VBA section. There is no duplicate of it that I am aware of.

    MarcL - please provide a link to the thread that you think is a duplicate.

    Frankcase - what 'other message' are you referring to?
    Last edited by AliGW; 12-31-2019 at 10:46 AM.

  13. #13
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Maybe I'm wrong for the duplicate but not for the wild cross posting on at least two others forums
    where he yet got solutions according to the level of his 'explanation' …

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: VBA: How to automatically populate filtered table in a separate worksheet using formul

    If there have been cross posts, then please report them to us using the report button. Thank you.

    @Frankcase - there will be no further help here until you respond to the accusation of cross posts with links to them.
    Last edited by AliGW; 12-31-2019 at 01:10 PM.

  15. #15
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    In fact I'm right for the duplicate, initial thread with cross post links :

    Dynamically Filter Data in two columns to a different sheet
    Last edited by Marc L; 01-01-2020 at 09:07 AM.

+ 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: 11
    Last Post: 11-27-2019, 09:45 AM
  2. Automatically Filter and populate filtered data in next sheet
    By MammuB in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2019, 06:36 AM
  3. [SOLVED] Use 2 separate rows to populate data in a separate table....
    By Sbenn316 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-31-2017, 11:38 AM
  4. Populate Worksheet # 2 based on Filtered Worksheet # 1 Data
    By parkinson5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2014, 07:49 PM
  5. Edit Macro to export filtered data into separate worksheet instead of PDF
    By tkowon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2014, 11:23 AM
  6. [SOLVED] Macro that automatically updates pivot table when data in separate worksheet is updated
    By Femi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2013, 08:48 AM
  7. [SOLVED] Linking cells to filtered results in a separate worksheet
    By excelgreg in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 08-19-2013, 10:47 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