+ Reply to Thread
Results 1 to 6 of 6

Rank lowest to highest using 2 columns

  1. #1
    Registered User
    Join Date
    05-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Rank lowest to highest using 2 columns

    Hi, I need some help

    I have 2 columns

    A B
    1 4.6
    2 5.8
    3 3.1
    Blank
    1 3.2
    2 8.5
    3 1.2
    4 4.5
    Blank
    1 7.4
    2 5.1

    Need to Rank each group independently in column C, look at the Ex above the output in column c will be...

    3
    1
    2
    blank
    3
    1
    4
    2
    blank
    2
    1

    thank you very much

  2. #2
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Rank lowest to highest using 2 columns

    Just made 3 rank table

    on cell C2 =RANK(B2,$A$2:$B$4,0)

    on cell C6 =RANK(B6,$A$6:$B$9,0)

    on cell C11 =RANK(B11,$A$11:$B$13,1)

    Drag it down to populate it with formula

    Order of ranking
    0 = Descending
    1 = Ascending
    Attached Files Attached Files
    Last edited by biex; 04-05-2020 at 07:05 PM.

  3. #3
    Registered User
    Join Date
    05-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Rank lowest to highest using 2 columns

    Thank you biex, but I have several groups in the column, ex above was only a short example, can you help me if i have unlimited groups?

  4. #4
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Rank lowest to highest using 2 columns

    Assuming A1 has the value 1...

    C1 is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    C5 is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    C10 is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you were looking for a single formula to copy down, that'll take a bit of extra work.

    Tim
    Never stop learning!
    <--- please consider *-ing !

  5. #5
    Registered User
    Join Date
    05-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Rank lowest to highest using 2 columns

    Basically I need to rank only column b, ranking until find a blank cell, then rank again for the second group then 3rd group .....last group

  6. #6
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Rank lowest to highest using 2 columns

    See attached. Data starts in A2, so this goes into C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy down, and voila!

    Tim


    EDIT: this will only work if there are fewer than 100 records bunched together. If there should be more edit the bits that say "OFFSET(A2,100,0)" and "OFFSET(B2,100,0)"
    Attached Files Attached Files
    Last edited by harrisonland; 04-06-2020 at 12:01 AM.

+ 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 lowest to highest with duplicate values
    By Stuepef in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-05-2018, 07:55 PM
  2. [SOLVED] [Help] Rank From Lowest to highest
    By gentle.diether in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2015, 08:21 AM
  3. [SOLVED] Rank Data from Highest to lowest using a macro
    By tejboyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-28-2015, 07:20 AM
  4. Rank from highest to lowest
    By mastertonn in forum Excel General
    Replies: 7
    Last Post: 07-31-2014, 12:57 PM
  5. [SOLVED] In need of a formula to rank highest to lowest
    By ellie2014 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2014, 12:48 AM
  6. Excel 2007 : Rank cells by highest to lowest???
    By tvr1226 in forum Excel General
    Replies: 3
    Last Post: 11-29-2011, 02:59 AM
  7. [SOLVED] Rank where lowest value is highest rank
    By mile3024 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2005, 07:00 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