Function Problems

Use COUNTIF to Count Repeated Text Entries in Excel

Phi Hung VoPhi Hung Vo Dec 2, 2026 868 views

Question details

Count how many times each text item appears in a list.

How to Count Repeated Text Entries in Excel with COUNTIF
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.
Before you start

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.

Solution 1Recommended

Count each text entry with COUNTIF in Excel

Use this formula to show how many times each item appears in the list.

1
Select the first result cell

Click cell D3, next to the first item in C3.

2
Enter the COUNTIF formula

Type =COUNTIF($C$3:$C$12,C3) in D3 and press Enter. Change the range if your list occupies different cells.

3
Fill the formula down

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 each text entry with COUNTIF in Excel
COUNTIF versus COUNT: COUNTIF counts cells matching the specified text. COUNT alone counts cells containing numbers, not text entries such as product names.
Count text entries in WPS Spreadsheets

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. 1. Open your workbook: Open WPS Spreadsheets, select Open, and choose the workbook containing your list.
  2. 2. Select a result cell: Click D3 if your list starts in C3, or choose an empty cell beside the first item.
  3. 3. Enter the formula: Type =COUNTIF($C$3:$C$12,C3) and press Enter. Adjust the cell references to match your list.
  4. 4. Fill down: Drag the fill handle from D3 down to the last row of your list to count each entry.
Count repeated text entries with COUNTIFOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork with spreadsheets for free
microsoft office alternative - wps office

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").