Table of Contents
In order to count the frequency of text in Excel, you can use the COUNTIF function. This function allows you to specify a range of cells and a specific text to search for within that range. It will then return the number of cells that contain the specified text. By repeating this process for each unique text you want to count, you can accurately determine the frequency of each text within your data set. This method is useful for analyzing large amounts of text data and gaining insights into common themes or patterns.
Count Frequency of Text in Excel
You can use the COUNTIF(range, criteria) function to count how often specific text occurs in an Excel column.
The following examples show how to use this function in practice.
Example 1: Count Frequency of One Specific Text
Suppose we have the following column in Excel that shows various NBA team names:

If we’d like to count how often the team name “Hornets” appears in the column, we can use the following formula:
=COUNTIF(A2:A21, Hornets")
The following screenshot shows how to use this formula in practice:

We can see that “Hornets” appears 3 times.
Example 2: Count Frequency of Multiple Text
If we’d like to count the frequency of multiple different text, we can use the UNIQUE() function to get an array of every unique text that appears in a column:

We can then use the COUNTIF() function to count how frequently each team name occurs:

We can see that:
- The team name “Mavericks” occurs 3 times.
- The team name “Spurs” occurs 2 times.
- The team name “Lakers” occurs 3 times.
The following tutorials offer additional information on how to count frequencies in Excel:
Cite this article
stats writer (2024). How can I count the frequency of text in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-count-the-frequency-of-text-in-excel/
stats writer. "How can I count the frequency of text in Excel?." PSYCHOLOGICAL SCALES, 6 May. 2024, https://scales.arabpsychology.com/stats/how-can-i-count-the-frequency-of-text-in-excel/.
stats writer. "How can I count the frequency of text in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-count-the-frequency-of-text-in-excel/.
stats writer (2024) 'How can I count the frequency of text in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-count-the-frequency-of-text-in-excel/.
[1] stats writer, "How can I count the frequency of text in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, May, 2024.
stats writer. How can I count the frequency of text in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
