+ Reply to Thread
Results 1 to 6 of 6

macro to select and rank top 10 column B values for Column A values

  1. #1
    Forum Contributor
    Join Date
    04-09-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    176

    macro to select and rank top 10 column B values for Column A values

    Hi to all
    Good Afternoon

    I have three columns of data genotype1 (Coumn A), genotype2(column B) and values (column C), Now I want to get top 10 genotype2 values i.e. column2 records based on column C values and rank them for column A values. now I am using filter function in excel and I got some macro in my internet but they are giving only top. Here I am posting my posting my example dataset for better understanding.

    https://www.dropbox.com/s/z9oohrn6ij...heet.xlsx?dl=0

    Any help in this regard is highly appreciable
    Thanks in Advance
    regards,

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: macro to select and rank top 10 column B values for Column A values

    Instead of dropbox, please attach workbook to thread. thanks
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary. Remember to desensitize the data.
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Contributor
    Join Date
    04-09-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    176

    Re: macro to select and rank top 10 column B values for Column A values

    please find example file here
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: macro to select and rank top 10 column B values for Column A values

    Thanks for the file - will look at this over the weekend

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: macro to select and rank top 10 column B values for Column A values

    One method
    - the data is sorted by value within GenoType1
    - the first 10 values for each category are retained

    Output matches what you said you wanted in sheet "After"

    Run from sheet "Before" with shortcut {CTRL}K


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kev_; 03-30-2018 at 03:34 AM.

  6. #6
    Forum Contributor
    Join Date
    04-09-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    176

    Re: macro to select and rank top 10 column B values for Column A values

    Dear Kev_
    Thanks lot for your help and your code is working like charm and perfect
    Thanks lot once again
    regards

+ 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] Rank values in one column from groups of numbers in another column
    By fruit&veg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2014, 03:48 PM
  2. [SOLVED] Rank values in one column from groups of numbers in another column
    By fruit&veg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2014, 01:04 PM
  3. Replies: 0
    Last Post: 10-15-2013, 07:59 PM
  4. Macro to select the column values without using header
    By shanmp77 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2010, 06:40 AM
  5. Edit Macro to select all values in a column one by one and then print
    By Hollis27 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2009, 01:59 PM
  6. Edit Macro to select all values in a column one by one and then print
    By Hollis27 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2009, 01:56 PM
  7. Edit Macro to select all values in a column one by one and then print
    By Hollis27 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2009, 01:52 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