What a frequency distribution table does and why you need one
A frequency distribution table counts how many times each value appears in your data. Instead of looking at a column of 500 numbers, you see a summary: "the value 5 appears 47 times, the value 6 appears 89 times," and so on. Excel does not build these tables automatically — you construct them using formulas or by sorting and counting manually.
The table works best when your data repeats. If you have survey responses (1 through 5), test scores (0 through 100), or product ratings, a frequency table shows the distribution at a glance. It is the foundation for histograms, statistical analysis, and spotting patterns in your data.
Key Takeaways
- A frequency distribution table lists each unique value in your data and counts how many times it appears, using either the COUNTIF function or manual sorting.
- The simplest method is to list your unique values in one column, then use COUNTIF to count occurrences of each value in your original data.
- For grouped data (ranges like 0–10, 11–20), use COUNTIFS to count values that fall within each range.
- Once your table is built, you can create a chart to visualize the distribution and spot trends more easily.
Setting up your data and choosing a method
Before you build the table, decide whether your data is ungrouped (individual values like 1, 2, 3, 5, 5, 7) or grouped (ranges like 10–19, 20–29). Ungrouped works well for small sets of distinct values. Grouped works better for continuous data or large ranges where individual counts would be too many to read.
Open your data in Excel. Your original data should be in one column — say, column A from A2 to A501. Leave column A untouched. You will build your frequency table in columns C and D (or further right). This keeps your source data safe and your work organized.
Excel offers two main paths: the COUNTIF function (fastest for most cases) or the Data > Subtotals feature (useful if you want Excel to do more of the work). COUNTIF is more flexible and works in any version of Excel.
Building a frequency table with COUNTIF
Start by listing your unique values. In column C, type a header like "Value" in C1. Below it, in C2 and down, enter each unique value that appears in your data. If your data is 1, 2, 3, 5, 5, 7, type 1, 2, 3, 5, 7 in C2 through C6 (skip the duplicate 5).
If you have many values and do not know them all, use a different approach: copy your original data to column C, then use Data > Remove Duplicates to strip out repeats. Sort the result from smallest to largest. Now you have a clean list of unique values.
In column D, add a header like "Frequency" in D1. In D2, type this formula: =COUNTIF($A$2:$A$501,C2). The dollar signs lock the range so it does not shift when you copy the formula down. The C2 reference (without dollar signs) will change to C3, C4, and so on as you copy.
Press Enter. The formula counts how many times the value in C2 appears in your original data. Now copy D2 down to match the rows in column C. Click D2, then drag the fill handle (the small square at the bottom right of the cell) down to D6 (or however many unique values you have). Each row now shows the count for that value.
Creating a frequency table for grouped data
If your data spans a wide range and you want to group it into buckets, use COUNTIFS instead. For example, if you have test scores from 0 to 100 and want to count how many fall in 0–10, 11–20, 21–30, and so on, COUNTIFS counts values within a range.
In column C, type your range labels: "0–10" in C2, "11–20" in C3, and so on. In column D, type this formula in D2: =COUNTIFS($A$2:$A$501,">=0",$A$2:$A$501,"<=10"). This counts all values in your data that are greater than or equal to 0 AND less than or equal to 10.
For D3, change the numbers: =COUNTIFS($A$2:$A$501,">=11",$A$2:$A$501,"<=20"). Continue for each range. The formula is longer than COUNTIF, but it handles overlapping conditions that a single function cannot.
Checking your work and fixing common mistakes
After you build your table, verify that the total of all frequencies equals the number of rows in your original data. Add a row below your frequency column and type =SUM(D2:D6) (or whatever your last row is). If the sum does not match the row count in your source data, you have missed a value or made an error in your formula.
Common mistakes: forgetting the dollar signs in COUNTIF (so the range shifts as you copy), typing the wrong column reference (C instead of A), or including the header row in your range. If a frequency shows 0 when you expect a count, check that the value in column C exactly matches the data in column A — even a space or different number format will cause COUNTIF to miss it.
If your data contains text (like "yes" or "no"), COUNTIF works the same way. If it contains dates, make sure both your unique values and your formula reference the same date format, or Excel may not recognize them as the same.
Turning your frequency table into a chart
Once your table is complete, select columns C and D (including headers) and insert a chart. Click Insert > Chart. Excel suggests a column chart by default, which works well for frequency distributions. The x-axis shows your values, and the y-axis shows the frequency (count).
A chart makes patterns visible immediately. You can see which values are most common, whether the data clusters in the middle, or whether there are outliers. Right-click the chart and choose "Edit Data" if you need to adjust which columns are included.
For grouped data, a column chart is also effective. Each bar represents a range (0–10, 11–20), and the height shows how many values fall in that range. This visual form is called a histogram and is standard in statistics and reporting.
Using the Data > Subtotals feature as an alternative
Excel has a built-in Subtotals tool that can count occurrences automatically, though it requires your data to be sorted first. Select your data column (A2:A501), then go to Data > Subtotals. Choose "Count" from the dropdown, and Excel inserts subtotal rows that count each group.
This method is faster if your data is already sorted, but it embeds the counts within your data rather than creating a separate summary table. Most people find COUNTIF clearer because it produces a clean, separate table you can copy, share, or use in reports. Subtotals is useful if you want to hide and show groups interactively.
Frequently Asked Questions
What if my data has blank cells or errors?
COUNTIF counts blank cells as a value if you ask it to. If you want to exclude blanks, add a row for blanks in your unique values list and count them separately, or use COUNTIF with a criteria that skips them. For errors like #DIV/0!, COUNTIF treats them as values too. Clean your data first by removing or fixing errors.
Can I make the frequency table update automatically when my data changes?
Yes. As long as you use formulas like COUNTIF, the frequencies recalculate whenever the source data changes. If you manually typed the counts, they will not update. Formulas are always better for this reason.
How do I handle data with many decimal places?
If your values are 1.5, 1.51, 1.501, COUNTIF treats each as different. For grouped data, use COUNTIFS with ranges (like ">=1.5" and "<1.6") instead of exact matches. Or round your data first using the ROUND function, then build the frequency table from the rounded values.
What is the difference between frequency and relative frequency?
Frequency is the count (how many times a value appears). Relative frequency is the percentage (count divided by total). To add relative frequency to your table, create a column E with the formula =D2/SUM($D$2:$D$6)*100 to show percentages.
Can I create a frequency table from text data like product names?
Yes. COUNTIF works with text exactly as it does with numbers. List your unique product names in column C, then use =COUNTIF($A$2:$A$501,C2) in column D. The count shows how many times each product name appears in your data.