dev-resources.site
for different kinds of informations.
#120 — Group by Segment
Published at
12/23/2024
Categories
programming
beginners
tutorial
productivity
Author
Judith-Excel-Sharing
Problem description & analysis:
Here below is a data table:
Task: We want to count the number of people in each of the following score segments respectively: below 50, 50–60, 60–70, 70–80, 80–90, and above 90.
Solution:
Use SPL XLL and enter the following code:
=spl("=E(?1).groups(if(Score<50:""<50"",Score>=50 && Score<60:""50-60"",Score>=60 && Score<70:""60-70"",Score>=70 && Score<80:""70-80"",Score>=80 && Score<90:""80-90"";"">=90""):Score;count(1):Num)",A1:C25)
The results are as follows:
Download esProc Desktop for FREE and keep your workflow intuitive and efficient 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
read article
#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
currently reading
Featured ones: