I have a google sheet with 2 columns. E.g
Jim | Foo John | BarJane | X Jim | YZ etc
What I usually do is:
- download the values as csv
- write/run a script that processes the csv
- the script goes over each row, groups by the first column and count occurences.
Then I output the values order desc by number of occurrences.
How can I do this directly in google sheets?
Update:
I want to know if there is some formula inside google sheets that can do this instead of having a separate script to process the file
The expected output would be:
Jim | 2 John| 1 Jane| 1 orJim | 2Jane| 1John| 1
The order for ties does not matter