+ Reply to Thread
Results 1 to 5 of 5

Rank set of numbers order within respective Group ID in another column

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Rank set of numbers order within respective Group ID in another column

    I have a list of SSNs in one column, and a "Group ID" in another Column. I looking to get the "rank" of each SSN within each group (rank would be based on numbering from lowest to highest, ascending). I have been using the following formula to get the rank for SSN:

    Please Login or Register  to view this content.
    However, I am looking for the code to take into account getting the rank for each respective group.

    Attached is an example workbook. I would need the formula starting in cell C2 and copied down to C14. Any ideas? Thanks.

    Sample.xlsx

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Rank set of numbers order within respective Group ID in another column

    How about:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Rank set of numbers order within respective Group ID in another column

    You could sort by group and then ID and then use

    =COUNTIF(B$2:B2,B2)

    in C2 copied down.
    Martin

  4. #4
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Rank set of numbers order within respective Group ID in another column

    Thanks all.. BadlySpelledBuoy's method was the one I was looking for...as the SSNs are suppose to be sorted sequentially, but sometimes the OCR software I use does not scan the numbers correctly into Excel and using this method, I can figure out which ones are incorrect...

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Rank set of numbers order within respective Group ID in another column

    Glad I could help.

    Don't forget to mark the thread as SOLVED if you're happy you have your solution.

    BSB

+ 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] Group numbers into workable ranges in order to run a pivot table (days taken to update)
    By Bunny Screen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2014, 09:14 AM
  2. Need help to search a word in the sheet and group the respective rows with sum
    By siri_tvrs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2013, 05:21 AM
  3. find repeating numbers in a column and sum the respective value assigned
    By gmkumaran in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-06-2013, 10:48 AM
  4. Calculate Age difference and sort under respective Age Group
    By Kaige in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-07-2013, 07:22 AM
  5. [SOLVED] Calculating respective share amoung group members
    By KWord in forum Excel General
    Replies: 5
    Last Post: 05-13-2012, 01:41 AM

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