6.2 C
London
Thursday, December 19, 2024
HomeSoftware TutorialsGoogle SheetsHow to Count Specific Words in Google Sheets

How to Count Specific Words in Google Sheets

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the following formula to count the occurrence of a specific word in Google Sheets:

=COUNTIF(B2:B15, "*Guard*")

This particular formula will count the number of cells in the range B2:B15 that contain the word “Guard” somewhere in the cell.

The following example shows how to use this formula in practice.

Example: Count Specific Words in Google Sheets

Suppose we have the following dataset that contains information about various basketball players:

We can use the following formula to count the number of cells in column B that contain “Guard” somewhere in the cell:

=COUNTIF(B2:B15, "*Guard*")

The following screenshot shows how to use this formula in practice:

From the output we can see that 6 cells in column B contain “Guard” somewhere in the cell.

We can confirm this is correct by manually identifying each of these cells:

To find the count of cells that contain a different word, simply replace Guard with another word in the formula.

For example, use the following formula to count the number of cells that contain “Forward” somewhere in the cell:

=COUNTIF(B2:B15, "*Forward*")

Note: You can find the complete documentation for the COUNTIF function here.

Additional Resources

The following tutorials explain how to perform other common operations in Google Sheets:

How to Extract Substring in Google Sheets
How to Reverse a Text String in Google Sheets
How to Extract Numbers from String in Google Sheets

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories