DEV Community

Cover image for #115 — Ranking of Row-Based Data — by the Expression
Judith-Excel-Sharing
Judith-Excel-Sharing

Posted on

#115 — Ranking of Row-Based Data — by the Expression

Problem description & analysis:

Here below is a data table:

source table

Task: Calculate the ranking of data (in descending order) by the sum of three columns Maths, English and PE.

Solution:

Use SPL XLL and enter the following code in cell F2:

=spl("=E(?1).(Maths+English+PE).rank@z(?2)",C$1:E$12,C2+D2+E2)
Enter fullscreen mode Exit fullscreen mode

The result is as follows:
result of F2

Then drag F2 down to every relevant row:

result table


Download esProc Desktop for FREE and simplify your data tasks today! 🙌✨⬇️

✨SPL download address: esProc Desktop FREE Download

✨Plugin Installation Method: SPL XLL Installation and Configuration

✨References to other rich Excel operation cases: Desktop and Excel Data Processing Cases

✨YouTube FREE courses: SPL Programming

Top comments (1)

Collapse
 
judith677 profile image
Judith-Excel-Sharing

👉 Follow our series for more data tips and tricks!

💭Discord
💭Reddit