+ Reply to Thread
Results 1 to 4 of 4

Rank by Certain Criteria

  1. #1
    Registered User
    Join Date
    09-06-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Rank by Certain Criteria

    Hi,

    I'm trying to find a formula that will rank data based on a certain criteria (rather than having to sort it and run a rank formula for each criteria manually). I have different territories, with a few hundred stores in each territory, and would like the rank formula to rank that value within its' particular territory. The table attached shows what the table looks like. It also needs to be a formula that is compatible with Excel 2003.

    Book1.xls

    Any ideas would be much appreciated.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Rank by Certain Criteria

    Hi,

    in D2 and down

    =SUMPRODUCT(($C$2:$C$100=C2)*(B2<$B$2:$B$100))+1

    Hope it helps

    Regards
    Last edited by canapone; 09-25-2011 at 03:17 AM. Reason: Grammar

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Rank by Certain Criteria

    Hi again

    if you have same values in same territory you could use in order to get different rank numbers

    =SUMPRODUCT(($C$2:$C$100=C2)*(B2<$B$2:$B$100))+SUMPRODUCT((C$2:C2=C2)*(B$2:B2=B2))

    Regards

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

    Re: Rank by Certain Criteria

    Based on the sample (territory & value both numeric and territory whole number) were you to add an additional helper column you could negate the need for SUMPRODUCT (computationally expensive), e.g:

    Please Login or Register  to view this content.
    You could add a further countif should you wish to make each rank unique (where territory + value are the same)

+ 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