+ Reply to Thread
Results 1 to 6 of 6

Top 5 values including with duplicates

  1. #1
    Registered User
    Join Date
    10-10-2017
    Location
    North Charleston, SC
    MS-Off Ver
    2016
    Posts
    72

    Top 5 values including with duplicates

    Hi all!!

    I am trying to get the code below this to give me the top 5 values in a column and offset 0, -2 and put the results in a msgbox. The range is y32:y57 for the top 5 and W32:W57 for the value needed. This would include duplicate results of the top 5. Just for testing purposes, my first 10 numbers in Y32:Y41 are 6, 2, 7, 2, 7, 4, 4, 2, 4, 7 respectively. W32:W41 are 6,20,2,24,18,25,11,15,23,14 respectively. Any help would be appreciated. Feel free to point out what I missed or did wrong, still learning.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Top 5

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Top 5

    Respectfully, I thought the title conveyed the request. The query was what I expected from the title.

    This uses Autofilter to filter column Y for the top 5

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

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

    Re: Top 5

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    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

  5. #5
    Registered User
    Join Date
    10-10-2017
    Location
    North Charleston, SC
    MS-Off Ver
    2016
    Posts
    72

    Re: Top 5

    Quote Originally Posted by FDibbins View Post
    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Sorry! https://www.mrexcel.com/board/thread...rence.1126898/

  6. #6
    Registered User
    Join Date
    10-10-2017
    Location
    North Charleston, SC
    MS-Off Ver
    2016
    Posts
    72

    Re: Top 5

    Quote Originally Posted by Pepe Le Mokko View Post
    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    It is done!

+ 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. How to count cell but not including duplicates in a row?
    By phiking in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-16-2019, 07:51 PM
  2. [SOLVED] Ranking by aggrigate including duplicates
    By Sekars in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2017, 01:54 PM
  3. [SOLVED] Plot the Value # for the given date including the duplicates.
    By Sekars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2016, 01:13 AM
  4. [SOLVED] Formula to give me the 10 biggest values in a list (including duplicates)
    By ExcelFailure in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2013, 10:55 AM
  5. RANK for percentages including duplicates
    By Ozrik in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2012, 01:23 PM
  6. Removing duplicates from list including IF
    By jim_cliff11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2010, 05:21 PM
  7. Listing Specific Values Based on Criteria (Including Duplicates)
    By Jace in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-22-2008, 02:57 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