+ Reply to Thread
Results 1 to 4 of 4

RANK until next blank cell

Hybrid View

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    RANK until next blank cell

    Simple question, but probably a complicated answer........I was wondering if there was any way to build a rank formula that will will rank starting at A1 for example, and then rank the values in column A until the next blank cell ?
    The possible range wouldn't be any more than 30 cells down if that makes any difference.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: RANK until next blank cell

    So you're ranking in multiple groups separated by a blank space,e.g.
    This is without the rankings

    Kevin  34
    Mark 27
    Paul 16
    
    Michael 52
    Annabel 48
    
    Simon  13
    Delia 5
    Peter 27
    Something like that ?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: RANK until next blank cell

    With data starting on row 2 and names in column A and values to rank in column B

    1. Create a Helper column in column C
    in C2
    =IF(A2="",C1+1,C1)
    and copy down the column

    2. in D2
    =IF(A2="","",1+SUMPRODUCT((C$2:C$1000=C2)*(B$2:B$1000>B2)))

    column D is your rank

  4. #4
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    Re: RANK until next blank cell

    Yes, that works, thanks very much.

+ 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] Countif, non blank values (Rank)
    By Median in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-16-2018, 12:11 PM
  2. [SOLVED] To rank text values when there are blank spaces
    By BNCOXUK in forum Excel General
    Replies: 3
    Last Post: 06-30-2014, 08:24 AM
  3. Using Rank with Contains and not including Blank Cells
    By jamiemc in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-03-2013, 08:06 AM
  4. Getting Rank formula to exclude zero and blank cells
    By Catherine01 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-11-2013, 06:10 AM
  5. Rank between headers or blank rows
    By beat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2012, 05:35 AM
  6. Replies: 0
    Last Post: 01-04-2012, 04:30 AM
  7. How to skip blank cells in Function for Rank in VBA?
    By Neight in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-24-2007, 02:45 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