+ Reply to Thread
Results 1 to 4 of 4

rank a column of values grouped by another column

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Omaha, NE
    MS-Off Ver
    MS 365
    Posts
    69

    rank a column of values grouped by another column

    I got this working in another spreadsheet, but in my main spreadsheet, the rank is returning #N/A. T

    Screenshot 2025-03-21 103628.png

    My values are all numbers. No errors in any of the columns in question. Here's the formula:
    =SUMPRODUCT(($A$2:$A$19=A2)*($B$2:$B$19>B2))+1


    Can anyone think of why this wouldn't work in my larger spreadsheet? And sorry, I can't share the original spreadsheet.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,739

    Re: rank a column of values grouped by another column

    Not sure why that doesn't work without seeing the data....

    You could try this version with COUNTIFS, should give the same results

    =COUNTIFS($A$2:$A$19,A2,$B$2:$B$19,">"&B2)+1
    Audere est facere

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    Omaha, NE
    MS-Off Ver
    MS 365
    Posts
    69

    Re: rank a column of values grouped by another column

    I'm a bozo. I just had an error in the formula. Sorry for the wasted time and thank you.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,275

    Re: rank a column of values grouped by another column

    And sorry, I can't share the original spreadsheet.
    But you could have shared a mock-up that contained just what was visible in the screenshot - please do share workbooks in future, as it makes life much easier for your helpers.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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] How to join data (column B) based on grouped duplicate values (column A)
    By Marcel_G in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-20-2022, 07:55 AM
  2. [SOLVED] New column with grouped concatenated values
    By sujimon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2019, 04:50 AM
  3. New column with grouped concatenated values
    By sujimon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2019, 02:50 AM
  4. [SOLVED] macro to select and rank top 10 column B values for Column A values
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-30-2018, 06:38 AM
  5. [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
  6. [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
  7. [SOLVED] Rank or Range grouped rows based on criterial in a different column
    By fredridj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2013, 03:57 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