Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How can I group/count occurences of a column

$
0
0

I have a google sheet with 2 columns. E.g

Jim  | Foo  John | BarJane | X  Jim  | YZ  

etc

What I usually do is:

  1. download the values as csv
  2. write/run a script that processes the csv
  3. 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


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>