Search code examples
google-sheetsgoogle-sheets-formulacountifgoogle-sheets-querygoogle-query-language

How can I scan a column and show results based on occurrences of a certain item?


How can I scan a column within Google Sheets and show occurrence count?

Example:

  • abc.com
  • gb.com
  • rt.com
  • exe.com
  • domain.com
  • abc.com
  • exe.com
  • exe.com

Then on another tab within the same Google Sheet, I have it list.

- rt.com - 1
- exe.com - 3
- and so on.

I have tried writing the formula based on scripts I found online, but I have been unsuccessful.


Solution

  • =QUERY(A2:A, "select A,count(A) where A is not null group by A label count(A)''", 0)
    

    0