In a Google Sheets document, I've got a column which contains multiple values. I want to get the first 20 values by count, and then group the count of the others.
I've got this working code for now:
=QUERY(B2:B165,"select B, count(B) group by B order by count(B) desc limit 20 label B 'Pubblication venue'")
This will get me how many times a value appears in the column, and limit the results to 20. Now I need the count of the other results (which are ~100).
Let me explain by example. With my code I'm able to get the count of A, B and C. Now I want the count of others.
+-------+----+
| A | 5 |
+-------+----+
| B | 2 |
+-------+----+
| C | 4 |
+-------+----+
| Other | 90 |
+-------+----+