+ Reply to Thread
Results 1 to 4 of 4

Rank sub groups of rows seperated with blank rows

  1. #1
    Registered User
    Join Date
    03-01-2013
    Location
    Canberra Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Rank sub groups of rows seperated with blank rows

    I was after some help with a macro to rank varying groups of rows separated by a blank row:

    I want to look at the values in the sub groups in Col L and assign a Rank from 1..... in Col U.
    Cheers in advance,
    Paul
    Attached Images Attached Images

  2. #2
    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,926

    Re: Rank sub groups of rows seperated with blank rows

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    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-01-2013
    Location
    Canberra Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Rank sub groups of rows seperated with blank rows

    Point taken, apologies. Here is an excel sample. These files contain tens of thousands of results from horse racing, so a macro would speed this Ranking issue up.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-01-2013
    Location
    Canberra Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Rank sub groups of rows seperated with blank rows

    Came up with the solution, and VBA not required....yippee!
    Post this formula at row 2 in Rank col and paste down. Remove blank rows as well.

    =RANK(L2,INDEX(L:L,MATCH(M2,M:M,0)):INDEX(L:L,MATCH(M2,M:M,0)+COUNTIF(M:M,M2)-1),1)

+ 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 create a macro to insert blank rows and copy data into blank rows?
    By zodiack101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 01:18 PM
  2. [SOLVED] Delete blank rows between data rows, shift rows up, then repeat
    By excelactuary in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 11:53 AM
  3. Rank between headers or blank rows
    By beat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2012, 05:35 AM
  4. [SOLVED] Transposing Groups of Data separated by blank rows
    By scrchrds in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2010, 03:31 PM
  5. Output array to Excel blank rows separating groups
    By ghh3rd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2006, 03: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