Log in
x
or
x
x
Register
x

or
0
0
0
s2smodern

How to count number of occurrence in a column in Google sheet?

Supposing, you have a list of names in Column A of Google sheet, and now, you want to count how many times each unique name is appeared as following screenshot shown. This tutorial, I will talk about some formulas for solving this job in Google sheet.

Count number of occurrence in a column in Google sheet with helper formula

Count number of occurrence in a column in Google sheet with formula


Count number of occurrence in a column in Google sheet with helper formula


In this method, you can extract all the unique names from the column firstly, and then count the occurrence based on the unique value.

1. Please enter this formula: =UNIQUE(A2:A16) into a blank cell where you want to extract the unique names, and then press Enter key, all unique values have been listed as following screenshot shown:

Note: In above formula, A2:A16 is the column data that you want to count.

2. And then go on entering this formula: =COUNTIF(A2:A16, C2) beside the first formula cell, press Enter key to get the first result, and then drag the fill handle down to the cells you want to count the occurrence of the unique values, see screenshot:

Note: In above formula, A2:A16 is the column data that you want to count unique names from, and C2 is the first unique value you have extracted.


Count number of occurrence in a column in Google sheet with formula

You can also apply the following formula to get the result. Please do as this:

Please enter this formula: =ArrayFormula(QUERY(A1:A16&{"",""},"select Col1, count(Col2) where Col1 != '' group by Col1 label count(Col2) 'Count'",1)) into a blank cell where you want to put the result, then press Enter key, and the calculated result has been displayed at once, see screenshot:

Note: In above formula, A1:A16 is the data range which including the column header that you want to count.


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.