+ Reply to Thread
Results 1 to 4 of 4

Advanced Filter for Top 20%?

  1. #1
    Registered User
    Join Date
    03-02-2016
    Location
    New York, USA
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    4

    Advanced Filter for Top 20%?

    Hello,

    I am trying to figure out a way to use advanced filter in a data set so I can extract the top 20% of a specific column in the data set. However, I've searched all around and cannot figure out a way to do this . Can anyone help me on this issue?

    Thank you!!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365
    Posts
    52,007

    Re: Advanced Filter for Top 20%?

    Hi, welcome ot the forum

    is that 20% by quantity (2 out of 10) or 20% by value (all values over 50)?
    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

  3. #3
    Registered User
    Join Date
    03-02-2016
    Location
    New York, USA
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    4

    Re: Advanced Filter for Top 20%?

    Thank you!
    It is top 20% by values. i.e. the top 20% highest values in the column

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365
    Posts
    52,007

    Re: Advanced Filter for Top 20%?

    Try this (I only show down to row 13, but it goes down to row 25....
    A
    B
    1
    10
    250
    2
    20
    240
    3
    30
    230
    4
    40
    220
    5
    50
    210
    6
    60
    7
    70
    8
    80
    9
    90
    10
    100
    11
    110
    12
    120
    13
    130

    B`1=IF(LARGE($A:$A,ROWS($1:1))>=PERCENTILE.EXC($A$1:$A$25,0.8),LARGE($A:$A,ROWS($1:1)),"")
    copied down

+ 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. [SOLVED] Advanced Filter Code : Criteria Range More Than 1 Row Breaks Filter
    By PaulGW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2021, 04:30 PM
  2. Advanced Filter : One Criteria Cell Breaks the Filter - Returns Only Headers
    By PaulGW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2014, 10:06 AM
  3. Replies: 5
    Last Post: 12-19-2013, 06:58 AM
  4. advanced filter - button to re apply advanced filter across multiple sheets
    By motmac87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2013, 11:16 PM
  5. Delete Rows hidden by either Auto Filter and Advanced Filter
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:29 AM
  6. Second Advanced Filter does not work based on the data generated from the filter
    By mucc1928 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2011, 02:42 PM
  7. advanced filter a range:Advanced Filter function
    By Il Principe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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