+ Reply to Thread
Results 1 to 5 of 5

Filter to show top 5 items

  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Filter to show top 5 items

    In my code to filter on some data i'm trying to filter out the top 5 highest values.

    My code
    Please Login or Register  to view this content.

    The code just fails to run properly.

    Any ideas?

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Filter to show top 5 items

    Hi,

    Try this following code, its untested but hope it works.

    Please Login or Register  to view this content.

    Note : Make necessary changes in the above code as per your requirement.

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter to show top 5 items

    Hi,

    Why use VBA when the standard autofilter allows you to filter the top x values?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Filter to show top 5 items

    I want the process to run so the user just needs to verify the data rather than produce it.

  5. #5
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Filter to show top 5 items

    Hi,

    I need to change this slightly so that the filter will only show items above 250,000.00?

+ 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. Show Multiple Items Selected in Pivot Filter
    By cp41 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2014, 06:20 AM
  2. macro to filter all items in Autofilter except 2+ items
    By DanRiverBrew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2013, 09:15 PM
  3. Pivot table filter data field to show items with count more than n
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2010, 07:36 PM
  4. Excel 2007 : Report Filter Multiple items/All items
    By Ganivada in forum Excel General
    Replies: 2
    Last Post: 11-30-2009, 05:45 AM
  5. [SOLVED] Print Pivottable - show all selected items in page filter
    By Koen in forum Excel General
    Replies: 0
    Last Post: 06-19-2006, 04:35 AM

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