+ Reply to Thread
Results 1 to 3 of 3

Rank values in one column from groups of numbers in another column

  1. #1
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    37

    Rank values in one column from groups of numbers in another column

    Hi all, so down 20 rows of column A i have ten rows of '1', five rows of '2' and five rows of '3'. column B has various decimal numbers from -10 to 50. I am looking for a formula (for column C) that ranks the numbers (ascending) in column B, taking into account the corresponding number in column A.

    So, the B numbers alongside the column A '1's should result in being ranked (1 to 10), the numbers alongside the '2's should be ranked (1 to 5) and the numbers alongside the '3's would be ranked (1 to 5).

    (The above values are merely an example, the final table would have numbers running into the thousands down column A, with each number duplicated up to 200 times.)

    Any help would be much appreciated,

    Kind regards

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Rank values in one column from groups of numbers in another column

    This is marked as solved. What was the solution?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Rank values in one column from groups of numbers in another column

    hi, for some reason there is a duplicate thread, which is where its all happening, in case you cant find it, the solution was:

    =SUMPRODUCT(($A$2:$A$20000=A2)*($B$2:$B$20000<B2))+1
    to rank lower values as lower rank number
    or
    =SUMPRODUCT(($A$2:$A$20000=A2)*($B$2:$B$20000>B2))+1
    to rank higher values as lower rank number

    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: 3
    Last Post: 06-30-2014, 01:04 PM
  2. [SOLVED] Ranking numbers in a column from 1 to 15 then stating the rank in another column
    By Securitysports in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-02-2013, 02:09 AM
  3. [SOLVED] Transpose numbers in groups of Column to Rows
    By Dumy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-24-2013, 11:46 AM
  4. sum column values in groups of 12 cells
    By robarv in forum Excel General
    Replies: 3
    Last Post: 02-16-2013, 10:59 PM
  5. [SOLVED] RE: Counting groups of exact numbers in a huge list (column)
    By pgiessler in forum Excel General
    Replies: 1
    Last Post: 08-16-2006, 12:05 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