Skip to main content

Command Palette

Search for a command to run...

#119 — Group by the Expression

Published
1 min read
#119 — Group by the Expression
E

esProc SPL is a JVM-based programming language designed for structured data computation, serving as both a data analysis tool and an embedded computing engine. FREE download👉🏻: https://www.esproc.com/download-esproc

Problem description & analysis:

Here below is a data table:

Task: We want to group and aggregate by the first two digits of ID, and calculate the total sales of each group.

Solution:

Use SPL XLL and enter the following code:

=spl("=E(?1).groups(left(ID,2):ID;sum(Sales):Sales)",A1:C25)

The results are as follows:


Download esProc Desktop for FREE and enjoy the simplicity and efficiency of data analytics using SPL!! 🚀✨⬇️

✨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

E
esProc1y ago

👉 Stay tuned for more Excel pro tips with SPL XLL:

Discord:https://discord.gg/cFTcUNs7 Reddit: https://www.reddit.com/r/esProc_Desktop/

More from this blog

Untitled Publication

207 posts