SOLVED

create rank top 10 and lowest 10 of students score ( no duplicate rank ) include 0 value,category

%3CLINGO-SUB%20id%3D%22lingo-sub-2092757%22%20slang%3D%22en-US%22%3Ecreate%20rank%20top%2010%20and%20lowest%2010%20of%20students%20score%20(%20no%20duplicate%20rank%20)%20include%200%20value%2Ccategory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2092757%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%20i%20am%20currently%20trying%20to%20create%20a%20auto%20sorting%20data%20of%20rank%20out%20of%20a%20list%20of%20student's%20score%20list.%3C%2FP%3E%3CP%3Ein%20a%20separate%20worksheet%20%2Cwhenever%20i%20would%20like%20see%20rank%20either%20top%2010%20or%20lowest%2010%20of%20certain%20category.%3C%2FP%3E%3CP%3Eas%20i%20had%20attached%20the%20file%20the%20i%20am%20currently%20work%20on.appreciate%20your%20time%20and%20help%20!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Echeers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2092757%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2092867%22%20slang%3D%22en-US%22%3ERe%3A%20create%20rank%20top%2010%20and%20lowest%2010%20of%20students%20score%20(%20no%20duplicate%20rank%20)%20include%200%20value%2Ccatego%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2092867%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F932666%22%20target%3D%22_blank%22%3E%40agusgusto%3C%2FA%3EPlease%20see%20if%20the%20formula%20in%20the%20attached%20workbook%20work%20for%20you.%3C%2FP%3E%3CP%3ETop%20scores%20by%20location%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DSORTBY(FILTER(data!C5%3AC11%2Cdata!B5%3AB11%3D%24C%245%2C%22-%22)%2CFILTER(data!AI5%3AAI11%2Cdata!B5%3AB11%3D%24C%245%2C%22-%22)%2C-1)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBottom%20scores%20by%20location%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DSORTBY(FILTER(data!C5%3AC11%2Cdata!B5%3AB11%3D%24C%245%2C%22-%22)%2CFILTER(data!AI5%3AAI11%2Cdata!B5%3AB11%3D%24C%245%2C%22-%22)%2C1)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERank%20per%20class%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DSORTBY(FILTER(data!C5%3AC11%2Cdata!A5%3AA11%3D%24C%245%2C%22-%22)%2CFILTER(data!AI5%3AAI11%2Cdata!A5%3AA11%3D%24C%245%2C%22-%22)%2C-1)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EI%20would%20recommend%20that%2C%20in%20your%20real%20schedules%2C%20you%20use%20structured%20tables%20and%2For%20dynamic%20named%20ranges.%20This%20will%20avoid%20you%20from%20having%20to%20update%20the%20cell%20references%20every%20time%20the%20data%20ranges%20change.%26nbsp%3B%3C%2FP%3E%3CP%3EFurthermore%2C%20consider%20getting%20rid%20of%20merged%20cells.%20You%20seem%20to%20use%20them%20for%20cosmetic%20reasons%20only.%20%26nbsp%3BAnd%20make%20sure%20that%20the%20location%20names%20and%20class%20codes%20are%20spelled%20exactly%20the%20same%20in%20both%20the%20data%20and%20the%20ranking%20tables.%20I%20found%20both%20locations%20%22sumatra%22%20and%20%22sumatra%20%22%20(i.e.%20with%20a%20space%20at%20the%20end).%20Similarly%20for%20classes%2C%20I%20found%20%22C%22%20and%20%22C%20%22.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2102006%22%20slang%3D%22en-US%22%3ERe%3A%20create%20rank%20top%2010%20and%20lowest%2010%20of%20students%20score%20(%20no%20duplicate%20rank%20)%20include%200%20value%2Ccatego%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2102006%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3Eindeed%20you%20are%20a%20truly%20master%2Ci%20owe%20you%20this%20time.thanks%20once%20again%20to%20spare%20your%20time%20and%20humbly%20fix%20my%20excell%20issue%2Cwill%20have%20it%20fix%20and%20wont%20merge%20cell%20anymore...%20thanks%20a%20million!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

hi i am currently trying to create a auto sorting data of rank out of a list of student's score list.

in a separate worksheet ,whenever i would like see rank either top 10 or lowest 10 of certain category.

as i had attached the file the i am currently work on.appreciate your time and help !

 

cheers

5 Replies
Best Response confirmed by agusgusto (Occasional Contributor)
Solution

@agusgustoPlease see if the formula in the attached workbook work for you.

Top scores by location:

=SORTBY(FILTER(data!C5:C11,data!B5:B11=$C$5,"-"),FILTER(data!AI5:AI11,data!B5:B11=$C$5,"-"),-1)

 

Bottom scores by location

=SORTBY(FILTER(data!C5:C11,data!B5:B11=$C$5,"-"),FILTER(data!AI5:AI11,data!B5:B11=$C$5,"-"),1)

 

Rank per class:

=SORTBY(FILTER(data!C5:C11,data!A5:A11=$C$5,"-"),FILTER(data!AI5:AI11,data!A5:A11=$C$5,"-"),-1)

I would recommend that, in your real schedules, you use structured tables and/or dynamic named ranges. This will avoid you from having to update the cell references every time the data ranges change. 

Furthermore, consider getting rid of merged cells. You seem to use them for cosmetic reasons only.  And make sure that the location names and class codes are spelled exactly the same in both the data and the ranking tables. I found both locations "sumatra" and "sumatra " (i.e. with a space at the end). Similarly for classes, I found "C" and "C ".

@Riny_van_Eekelen 
indeed you are a truly master,i owe you this time.thanks once again to spare your time and humbly fix my excell issue,will have it fix and wont merge cell anymore... thanks a million!

@Riny_van_Eekelen 

 

i found out in mya 2007 excell i couldnt find  "SORTBY  OR FILTER " function is there any other way to find the same result in older version of excell ?

 

Cheers

 

@agusgusto Yes! Possible, but the formulae would be quite complicated and not very user friendly and therefore difficult to maintain and adapt to your real situation, which probably isn't as simple as the example file you provided. I favour a more straight-forward approach that should also work in E2007. Pivot tables are great to do exactly what you want, and they are not very difficult to learn.  I've added a few pivot tables to your file (attached below) to demonstrate their use. Give it a try!