Forum Discussion
ELingo2275
Sep 01, 2024Copper Contributor
Frequency distribution for unique values
I have a list of tree species and need to figure out the frequency distribution for each species. I know how to get a list of the unique tree species =SORT(UNIQUE(A1:A30)). However I'm unsure how to ...
Harun24HR
Sep 02, 2024Bronze Contributor
ELingo2275 GROUPBY() would be perfect function for you. Groupby is available to latest update release to Microsoft 365 only.
=GROUPBY(A2:A30,A2:A30,COUNTA)You can also try the following formula.
=HSTACK(UNIQUE(A2:A30),COUNTIFS(A2:A30,UNIQUE(A2:A30)))