#118 — Group by the Combination of Multiple Columns

#118 — Group by the Combination of Multiple Columns

Problem description & analysis:

Here below is a data table:

Task: We want to group the data by Year and Quarter, and count the total sales of each quarter.

Solution:

Use SPL XLL and enter the following code:

=spl("=E(?1).groups(Year,Quarter;sum(Sales):Sales)",A1:D25)

The results are as follows:


Download esProc Desktop for FREE and become an Excel Guru 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