+ Reply to Thread
Results 1 to 3 of 3

Rank items within groups

  1. #1
    Registered User
    Join Date
    07-01-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Exclamation Rank items within groups

    Alright, if anyone could help me out with this difficult formula, it would be much appreciated. What I'm trying to do, is create a ranking of items within each purchasing group based on the order of days late. For example, for purchasing group 20P, I want to know ranks 1 through 10, based on the days late quantitative field. In sheet 2, i have a decent formula so far, and it works for most of the items, but towards the bottom of the sheet, items start getting placed in purchasing groups where they don't belong and I can't figure out why that is. The equation is basically using an index(match()) function to list each item in its designated rank (#1 = Highest amount of days late)

    Once again, if anyone wants to take on this challenge, I would be a very happy guy. Please let me know if you have any questions whatsoever regarding the current equation. Thank you, and good luck!
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    re: Rank items within groups

    I have to say that when I see this many Arrays I always tend to look for alternative approaches that may be more efficient in the long run (though less elegant), for ex. you could do something like:

    Please Login or Register  to view this content.
    The abvoe restricts the range being reviewed in each formula (ie only looking at individual chunks of data based on assumption that Sheet1!A:A is ordered in Ascending order as implied in your file)
    you could optimise further by storing the recurring MATCH calcs in adjacent cells thereby lessening repetitive calcs.

    The new values in D permit you to dispense with Arrays on Sheet2 such that:

    Please Login or Register  to view this content.
    applied across matrix

  3. #3
    Registered User
    Join Date
    07-01-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Thumbs up re: Rank items within groups

    Wow! That works perfectly and its so much simpler. It even solves the error of items with a tied rank being repeated. Thanks so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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