How to Rank Students by Passing Requirements in Excel
Question details
The user needs to rank students based on their average marks, subject to specific conditions: passing English and passing at least six out of 11 subjects. Students failing these conditions must be ranked below those who pass, regardless of their average mark.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Ranking student grades conditionally based on mandatory subject passes and a minimum number of passed subjects.
- Observed behavior
- Standard RANK.EQ functions only rank by average marks and ignore custom pass or fail conditions.
Ensure your student grading data is organized in a structured table, with individual columns for each of the 11 subjects and a dedicated column calculating the student's average mark.
Use Helper Columns with IF and RANK.EQ
Break down the complex ranking logic by using helper columns to verify mandatory subject requirements before applying the ranking formula.
Because standard ranking formulas do not account for custom logic, using helper columns is the most reliable way to enforce passing requirements. By assigning an artificial score boost to qualifying students, you can ensure they always rank above failing students without distorting the actual average marks.
Create a new helper column called 'Passed Subjects'. Use a COUNTIF formula like =COUNTIF(B2:L2, ">=60") to calculate how many out of the 11 subjects the student passed.
Create a second helper column called 'Passed English'. Use an IF statement like =IF(C2>=60, 1, 0) assuming column C contains the English grades. This flags whether the mandatory subject requirement is met.
Create an 'Adjusted Score' column to separate passing and failing students. Use =IF(AND(M2>=6, N2=1), O2 + 1000, O2) where M is Passed Subjects, N is Passed English, and O is the Average Mark. This boosts the score of qualifying students by 1000 so they rank highest.
In your final 'Rank' column, use the RANK.EQ function on the Adjusted Score column, for example: =RANK.EQ(P2, $P$2:$P$30). This will correctly rank the students according to the customized logic.
How to Conditionally Rank Students in WPS Spreadsheet
You can easily set up conditional helper columns and use the RANK.EQ function in WPS Spreadsheet to handle complex grading scenarios for free.
- 1. Open your workbook: Launch WPS Spreadsheet and open your student grading document.
- 2. Add logical helper columns: Use COUNTIF to determine the number of passed subjects and IF to check the mandatory English requirement.
- 3. Create an adjusted score: Combine these conditions to artificially boost the scores of qualifying students.
- 4. Rank the adjusted scores: Apply the RANK.EQ function to the adjusted scores to get accurate, condition-based rankings.

Frequently Asked Questions
Can I use SUMPRODUCT instead of helper columns to rank conditionally?
Yes, advanced users can use SUMPRODUCT combined with logical conditions to create a single-cell array formula for conditional ranking. However, helper columns are generally recommended because they are easier to audit and modify.
Why doesn't RANK.EQ accept multiple conditions natively?
The standard RANK or RANK.EQ functions are designed solely to rank numerical values within a given array. They do not have built-in arguments for logical tests, which is why workarounds like helper columns or adjusted scores are necessary.
How do I handle tied ranks when using RANK.EQ?
If students have the exact same average mark, RANK.EQ assigns them the same rank. To break ties, you can add a tiny fraction (like ROW()/10000) to each student's score before applying the RANK.EQ function.




