Finding frequency in Excel means counting how many times a specific value shows up in your data

The most straightforward way is to use the COUNTIF function, which searches a range of cells and counts every match. If you have a list of sales regions in column A and want to know how many times "North" appears, COUNTIF will give you that number in seconds. Excel also has a FREQUENCY function for a different task — grouping numbers into ranges — but COUNTIF solves the everyday problem of "how many of this value do I have."

The steps below show you how to set up COUNTIF, how to read the results, and what to do when you need to count multiple different values at once. You will also see how to use a pivot table if your data is large or you need to count many values without writing separate formulas.

Key Takeaways

  • COUNTIF is the function you use to count how many times one specific value appears in a range of cells.
  • The formula structure is =COUNTIF(range, criteria) — for example, =COUNTIF(A1:A100, "North") counts "North" in cells A1 through A100.
  • You can count text, numbers, or cells that meet a condition like "greater than 50" by changing what goes in the criteria part.
  • A pivot table is faster than writing formulas if you need to count many different values from a large dataset.

Using COUNTIF to count a single value

Open your spreadsheet and click on an empty cell where you want the count to appear. Type the formula =COUNTIF(A1:A100, "North") but replace A1:A100 with the actual range that holds your data, and replace "North" with the value you are counting. Press Enter, and Excel shows you the count.

The first part in parentheses — A1:A100 — is the range where Excel looks. The second part — "North" — is what it counts. If you are counting text, put it in quotation marks. If you are counting a number, you can write it without quotes: =COUNTIF(A1:A100, 5) counts every cell that contains exactly 5.

You can also point to a cell instead of typing the value. If the word "North" is in cell C1, write =COUNTIF(A1:A100, C1) and Excel counts whatever is in C1. This is useful when you want to change what you are counting without rewriting the formula.

Counting multiple different values at once

If you need to count how many times each region appears — North, South, East, West — create a list of those regions in one column and use COUNTIF next to each one. In column C, list North, South, East, West. In column D, write =COUNTIF(A:A, C1) next to North, then copy that formula down. Excel adjusts the formula for each row, so the second one becomes =COUNTIF(A:A, C2), and so on.

Using A:A instead of A1:A100 tells Excel to search the entire column A, which is faster than guessing how many rows you have. If your data has headers, you can use A2:A1000 to skip the header row and avoid counting it by mistake.

After you copy the formula down, you will see the count for each value. This method works well for 5 to 20 different values. For larger datasets with many unique values, a pivot table is usually faster.

Counting values that meet a condition

COUNTIF can also count cells that match a pattern rather than an exact value. To count all cells greater than 50, write =COUNTIF(A1:A100, ">50"). To count cells that start with the letter "A", write =COUNTIF(A1:A100, "A*"). The asterisk is a wildcard that means "anything after this".

Other common conditions are "less than" (<), "not equal to" (<>), and "between" (which requires two COUNTIF formulas added together). For example, =COUNTIF(A1:A100, ">=100") counts cells with 100 or more. You can also use wildcards with text: =COUNTIF(A1:A100, "*North*") counts any cell containing the word North, even if it says "North Region" or "Far North".

Using a pivot table for large datasets

If you have thousands of rows and dozens of unique values, a pivot table counts everything at once without writing formulas. Select your data including headers, then go to the Insert tab and click Pivot Table. Excel opens a dialog asking where you want the table — choose a new sheet to keep it separate from your original data.

In the pivot table builder on the right, drag the column you want to count into the Rows area and also into the Values area. Excel automatically counts how many times each unique value appears. You can then sort the results by count to see which values are most common.

Pivot tables are also useful because you can refresh them if your original data changes. Right-click the pivot table and select Refresh to update all the counts without rewriting anything.

Avoiding common mistakes with COUNTIF

The most common error is forgetting quotation marks around text values. =COUNTIF(A1:A100, North) without quotes will not work — Excel thinks you are referring to a cell named North. Always use quotes for text: =COUNTIF(A1:A100, "North").

Another mistake is using the wrong range. If your data is in A1:A500 but you write =COUNTIF(A1:A100, "North"), you will miss everything below row 100. When in doubt, use the entire column: =COUNTIF(A:A, "North"). This is slightly slower but catches everything.

COUNTIF is also case-insensitive, meaning it counts "north", "North", and "NORTH" as the same. If you need to count only exact matches including capitalization, use SUMPRODUCT instead: =SUMPRODUCT((A1:A100="North")*1). This is less common but useful for very specific situations.

Understanding the FREQUENCY function (different from counting)

Excel has a function called FREQUENCY that sounds like it counts values, but it actually groups numbers into ranges. If you have test scores and want to know how many fall between 0–50, 51–75, and 76–100, FREQUENCY does that. It is not the same as counting how many times one value appears.

FREQUENCY requires two pieces: your data and a list of upper limits called "bins". For test scores, your bins might be 50, 75, 100. FREQUENCY then counts how many scores fall into each range. This is useful for creating grade distributions or analyzing data spread, but it is not what you use to count "how many North regions do I have."

Frequently Asked Questions

Can I count cells that are blank or empty?

Yes. Use =COUNTBLANK(A1:A100) to count empty cells, or =COUNTA(A1:A100) to count cells that have any content at all. COUNTIF counts specific values, but these two functions count the presence or absence of content itself.

What if my data has spaces or extra characters I cannot see?

COUNTIF will not match if there are hidden spaces. Use the TRIM function to clean the data first: select your column, go to Data > Text to Columns, and click Finish. This removes extra spaces. Then rerun your COUNTIF formula.

Can I count cells that match more than one condition at the same time?

COUNTIF handles one condition. For multiple conditions, use COUNTIFS (with an S). For example, =COUNTIFS(A1:A100, "North", B1:B100, ">50") counts rows where column A is "North" AND column B is greater than 50.

How do I count unique values instead of total occurrences?

Use =SUMPRODUCT(1/COUNTIF(A1:A100, A1:A100)) to count how many different values exist in a range. This is more complex than COUNTIF but tells you the number of distinct entries, not how many times each appears.

What is the difference between COUNTIF and COUNTIFS?

COUNTIF counts cells that match one condition. COUNTIFS counts cells that match multiple conditions at the same time. Both use the same basic syntax, but COUNTIFS lets you add more range-and-criteria pairs separated by commas.