dev-resources.site
for different kinds of informations.
#124 — Take Adjacent Data as Grouping Criteria
Published at
12/31/2024
Categories
programming
beginners
tutorial
productivity
Author
Judith-Excel-Sharing
Problem description & analysis:
Here below is a data table:
Task: Group the data in the first column, and calculate the sum of the values in the second column of each group. Grouping criteria: when there is a difference of 5 or more between the current data and previous one, create a new group.
Solution:
Use SPL XLL and enter the following formula:
=spl("=E@b(?1).group@i(#1-#1[-1]>=5).new(#1:ID,~.sum(#2):Total)",A1:B12)
The results are as follows:
Download esProc Desktop for FREE and have a brighter 2025 using SPL XLL!! 🚀✨⬇️
✨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
Articles
12 articles in total
#131 — Use Association Table to Handle Interval Association
read article
#130 — Use Formulas to Handle Interval Association
read article
#129 — Multiple Column Association
read article
#128 — Use Formulas to Handle Association in Excel
read article
#127 — Concatenate Data Within Groups into Text
read article
#126 — Group When Encountering Non-Null Values
read article
#125 — Grouping Upon Encountering Blank Rows
read article
#124 — Take Adjacent Data as Grouping Criteria
currently reading
#123 — Convert One-Dimensional Array to Two-Dimensional Array
read article
#122 — Put Every N Members in a Group
read article
#121 — Enumeration Grouping
read article
#120 — Group by Segment
read article
Featured ones: