• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Rank with multiple reference ranges

blcexcel

Member
I'm being needy today. I have another question on the same spreadsheet I'm working on. I want to calculate Rank but I want it to calculate separately for each Sub. On my example file I have the reference range for the entire data table which I need but somehow I need to add a piece that takes the Sub into so there will be a 1-10 for Sub 215, a 1-10 for 320, and a 1-10 for 440. I did try searching on the web for an answer but couldn't find anything on this. Thanks in advance!
 

Attachments

  • Rank with multiple reference ranges.xlsx
    10 KB · Views: 12
In cell A5:

=RANK.AVG(C5,OFFSET($C$4,MATCH(B5,$B$5:$B$34,0),,COUNTIF($B$5:$B$34,B5)))

drag to fill

Just for fun...I think this shorter array formula will work too??

=MATCH(C5,LARGE(N(($B$5:$B$34=B5)*($C$5:$C$34)),ROW($B$1:$B$10)),-1)
 
Last edited:
Back
Top