DEV Community

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

Posted on

2 1 1 1 1

#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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (1)

Collapse
 
judith677 profile image
Judith-Data-Processing-Hacks

👉 Follow our series for more data tips and tricks!

💭Discord
💭Reddit

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more