+ Reply to Thread
Results 1 to 13 of 13

Filtering data by groups

  1. #1
    Registered User
    Join Date
    07-23-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    11

    Filtering data by groups

    Hi,

    I want to learn on how to filter data by groups. as for my example, if i want to filter by product# cell B14 which is 182514 values from J14:J25 should remain.

    thanks in advance.

    Filtering_groups.png

  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,647

    Re: Filtering data by groups

    In order for this to work, the filtered value needs to appear on every row that you want to remain when you filter. Columns A to I need copying down in each group.
    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
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Filtering data by groups

    Doing what Ali suggests is a good way to do this, but with 180 000 + rows of data, maybe not practical

    Another option would be to use a helper column to fill in the gaps for you.

    I used T, but use whichever is best for you...
    T2=IF(b2="",T1,b2)
    copied down

    You can then filter on that column
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    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,647

    Re: Filtering data by groups

    It could be done quickly and easily using Power Query's fill down feature.

  5. #5
    Registered User
    Join Date
    07-23-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    11

    Re: Filtering data by groups

    yes you are right, my problem is that i have more than 10,000 datas on columns J
    Quote Originally Posted by FDibbins View Post
    Doing what Ali suggests is a good way to do this, but with 180 000 + rows of data, maybe not practical

    Another option would be to use a helper column to fill in the gaps for you.

    I used T, but use whichever is best for you...
    T2=IF(b2="",T1,b2)
    copied down

    You can then filter on that column

  6. #6
    Registered User
    Join Date
    07-23-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    11

    Re: Filtering data by groups

    thank you mam. but I have more than 10,000 values on columns J
    Quote Originally Posted by AliGW View Post
    It could be done quickly and easily using Power Query's fill down feature.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Filtering data by groups

    Quote Originally Posted by dongzkie View Post
    yes you are right, my problem is that i have more than 10,000 datas on columns J
    So did you try my suggestion yet?

  8. #8
    Registered User
    Join Date
    07-23-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    11

    Re: Filtering data by groups

    Yes sir i have tried it but confuse, correct me if I'm wrong. Since B2, B14 and B26 has different values, with your formula given, it is just I only copied the value from B2 to B26
    Quote Originally Posted by FDibbins View Post
    So did you try my suggestion yet?

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Filtering data by groups

    Quote Originally Posted by dongzkie View Post
    ...Since B2, B14 and B26 has different values, with your formula given, it is just I only copied the value from B2 to B26
    The whole point of my suggestion is to test to see if a cell in B is empty.
    If it IS, it takes the answer from the cell above (in the helper column).
    If it is NOT, then it takes teh contents of that B cell

    T2=IF(b2="",T1,b2)
    You need to copy that ALL the way down

  10. #10
    Registered User
    Join Date
    07-23-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    11

    Re: Filtering data by groups

    thanks. I already did the Fill down feature.
    Quote Originally Posted by AliGW View Post
    It could be done quickly and easily using Power Query's fill down feature.

  11. #11
    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,647

    Re: Filtering data by groups

    So the issue is now solved - yes?

  12. #12
    Registered User
    Join Date
    07-23-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    11

    Re: Filtering data by groups

    SOLVED. thank you
    Quote Originally Posted by AliGW View Post
    So the issue is now solved - yes?

  13. #13
    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,647

    Re: Filtering data by groups

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 8
    Last Post: 02-28-2018, 10:34 AM
  2. Replies: 26
    Last Post: 01-15-2016, 03:38 AM
  3. Replies: 4
    Last Post: 07-22-2015, 07:13 AM
  4. Replies: 4
    Last Post: 06-23-2014, 09:52 PM
  5. [SOLVED] Need help filtering data by filtering based on the last digit of a column/true statement
    By Stephen R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2014, 07:43 AM
  6. Filtering table by groups
    By tommyboy101 in forum Excel General
    Replies: 5
    Last Post: 09-23-2012, 10:06 AM
  7. Filtering Groups of 3 Rows based on a column
    By TheTempest in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2010, 12:26 PM

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