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