+ Reply to Thread
Results 1 to 4 of 4

auto identify top 25 values from a column x

  1. #1
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    auto identify top 25 values from a column x

    Hi all,

    I was wondering if some one would help me coding top 25 values from the column B and place it in column c .

    I was doing it old fashioned way by filtering ... rather I want that in VBA program.

    attached is the example file for your reference .

    thanks & regards,
    Hudson
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: auto identify top 25 values from a column x

    You don't need VBA, nor do you need to sort the raw data A:B. Even if A:B was randomized, this formula will work in realtime, put in C2 and copy down for 25 values:

    =LARGE(B:B, ROW(A1))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: auto identify top 25 values from a column x

    Give this a try. You use CallTopN procedure to specify the number of top values you want to retrieve.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Re: auto identify top 25 values from a column x

    thanks all for your advice on my question . however I was wondering if there is something can be done the same way I have attached. after my top 25th value cells in " C " should go blank and I want only my top 25 values in C nothing else . that should also work even my data is Random . in column " B ".....

+ 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 identify two specific values in one column
    By FlorisL in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 04-26-2014, 06:18 AM
  2. [SOLVED] identify and return values in a column
    By vijayaragavan in forum Excel General
    Replies: 6
    Last Post: 03-18-2014, 12:25 AM
  3. Macro to identify column by header and replace number values with string values
    By kang6789 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2013, 05:44 PM
  4. Replies: 3
    Last Post: 07-24-2013, 01:23 PM
  5. Replies: 5
    Last Post: 05-09-2012, 02:30 PM
  6. [SOLVED] how can i identify three highest values in a column (not sort)
    By Mistysweep in forum Excel General
    Replies: 3
    Last Post: 07-29-2006, 08:05 AM
  7. [SOLVED] Auto Identify Values
    By TMc21 in forum Excel General
    Replies: 3
    Last Post: 07-18-2006, 02:40 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