Use COUNTIF to Count Repeated Text Entries in Excel
Question details
Count how many times each text item appears in a list.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A list contains items such as Mango, Chocolate, and Cumin, and the user wants a count beside each entry.
- Observed behavior
- Each row should show the number of matching text entries in the list.
Identify the cells containing your list and choose an empty column for the counts. The example below assumes the items are in C3:C12 and the results will start in D3.
Count each text entry with COUNTIF in Excel
Use this formula to show how many times each item appears in the list.
Click cell D3, next to the first item in C3.
Type =COUNTIF($C$3:$C$12,C3) in D3 and press Enter. Change the range if your list occupies different cells.
Select D3 and drag its fill handle down through D12. The fixed range stays the same while the reference to each item changes by row.

Count repeated text with COUNTIF in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use the same COUNTIF formula to calculate a frequency beside each text entry.
- 1. Open your workbook: Open WPS Spreadsheets, select Open, and choose the workbook containing your list.
- 2. Select a result cell: Click D3 if your list starts in C3, or choose an empty cell beside the first item.
- 3. Enter the formula: Type =COUNTIF($C$3:$C$12,C3) and press Enter. Adjust the cell references to match your list.
- 4. Fill down: Drag the fill handle from D3 down to the last row of your list to count each entry.

Frequently Asked Questions
How do I count just one item, such as Mango?
Enter =COUNTIF($C$3:$C$12,"Mango") in an empty cell. Adjust the range to match your list.
Why are there dollar signs in the COUNTIF range?
The dollar signs in $C$3:$C$12 keep the search range fixed when you drag the formula down. The C3 reference changes to C4, C5, and so on.
Does COUNTIF distinguish between uppercase and lowercase text?
No. COUNTIF is not case-sensitive, so it treats Mango and MANGO as matches.
Why does COUNT not count my product names?
COUNT counts numeric cells. Use COUNTIF with a text criterion to count matching names, such as =COUNTIF(C3:C12,"Mango").




