A frequency distribution describes how often different values occur in a dataset. It’s a useful way to understand how data values are distributed in a dataset.
Fortunately it’s easy to create and visualize a frequency distribution in Excel by using the following function:
=FREQUENCY(data_array, bins_array)
where:
- data_array: array of raw data values
- bins_array: array of upper limits for bins
The following example illustrates how to use this function in practice.
Example: Frequency Distribution in Excel
Suppose we have the following dataset of 20 values in Excel:

First, we will tell Excel what upper limits we’d like to use on the bins of our frequency distribution. For this example we’ll choose 10, 20, and 30. That is, we’ll find the frequencies for the following bins:
- 0 to 10
- 11 to 20
- 21 to 30
- 30+

Next, we’ll use the following =FREQUENCY() function to calculate the frequencies for each bin:
=FREQUENCY(A2:A21, C2:C4)
Here are the results:

The results show that:
- 6 values in the dataset are within the range of 0-10.
- 7 values in the dataset are within the range of 11-20.
- 5 values in the dataset are within the range of 21-30.
- 2 values in the dataset are greater than 30.
We can then use the following steps to visualize this frequency distribution:
- Highlight the frequency counts in the range D2:D5.
- Click on the Insert tab, then click on the chart titled 2-D Column in the Charts group.
The following chart will appear that displays the frequencies for each bin:

Feel free to modify the axes labels and bar widths to make the chart more aesthetically pleasing:

You can find more Excel tutorials here.
Your example is very u8ninformative. You don’t explain how to actually enter the data and select the output cells, It is not helpful
Hi Desmond, I suggest you spend some time understanding Excel Charts and the topic generally speaking or at the introductory level, statistics. The author is speaking to an audience of graduate students who use SPSS, SAS, Palisades At Risk and know the math behind statistics. Terms like standard deviation and Standard Mean, histograms, left skewness and mode are some of those terms. Excel allows us to build histograms with the frequency function which you should learn more about. The formula works, the data set is not relevant. The data set is typically a normal research question such as results of an exam or number of hours worked in a research lab on a given day. That research question is up to you to find (aka sample) and the frequency is the numbers in the data. For instance data in row a2 labeled “2” is simply a value for the research question: how many hours were worked that day in a lab at the university. That question helps to know how many people or manhours one would use to staff the lab or bills for lab electricity. On days over ten one would need more manpower to staff and maintain the lab etc. It is up to you to know what population, sample, data and research questions are. He actually does a good job of teaching the histogram concept using the Frequency function in Excel. You should not be so quick to judge the work of a graduate level explication if you have high school math under your belt and no statistics knowledge. Shame..
This doesn’t work. I followed the instructions exactly, and the frequency function even showed the data and bins selection (which I highlighted on the spreadsheet to select), and I got a single value of zero. It’s so completely frustrating when something that should be so simple is virtually impossible because of the illogical manner in which Microsoft requires things to be done.
Hi Will…It sounds frustrating to put in the effort only to get a result like that. The Excel `FREQUENCY` function can indeed be picky about setup. Here’s a quick checklist to troubleshoot:
1. **Array Formula**: The `FREQUENCY` function is an array formula. After entering `=FREQUENCY(data_array, bins_array)`, press **Ctrl + Shift + Enter** to activate it as an array formula. Excel should add curly braces `{}` around the formula.
2. **Correct Bin Ranges**: Ensure your bins cover the entire data range. For example, if your data spans 1 to 100, but the bins are only set up for 10 to 50, any data outside 10–50 will go uncounted, possibly leading to zeros.
3. **Confirm Data and Bin Selection**: Double-check that your data and bins are selected properly without any stray blank cells, as Excel may misinterpret them.
If these don’t resolve it, I can guide you through setting it up step-by-step or suggest an alternative approach.
What? the frequency function absolutely works and the histogram concept it applies to supports this. The data set in the column a, range a2 to a 21 is the array which is entered in to the formula, aka function. The frequency function expects an argument which is the range a2:a21. If you include a1 to a21 you might realize can’t work. For those of us with programming knowledge which in 2025 is most of us, btw, knows the range a1 to a21 will include text and not numeric values exclusively. That would throw an error in all likelihood. Upon entering a range in the frequency function one inserts a comma and provides a second range. The second range is denoted again correctly. The second ranges describes the delimitter. The delimitters are listed above clearly from cells c2 to c4. So entering c2:c4 fulfills the last paramater for the function. I use this exact formula in quotes:
frequency(a2:a21,c2:c4). Enter that formula anywhere on your spreadsheet and you will get a table showing the frequency or number of times (occurrence) where the data falls in the range denoted in the bins table. For example, cell d2 shows a value of 6. That was populated automatically upon entering the formula cited above in cell d2. That value, 6, shows the frequency or number of times a result in the data fell between zero and ten. the expression is simply if x < 10, count and use a running total on it for every single item in the data column. There is nothing wrong with the formula shown. You probably don't understand statistics well enough to understand how accurate that formula is.
This works just fine, but my problem is my range is over 2 columns.
The people who say it doesn’t work are wrong (and rude!)
It appears that all the range examples are for a single vertical column.
My source data is over 2 columns (say A & B), so when I use that range, I get an #N/A error. One-column range works fine.
As a bonus (?), I am also stuck using Excel 2011, so I have limited functions to call on.
The result I want is a list of the top 5 cities from a source list that spans 2 columns. I’m leaning to combining the 2 columns into one helper column and then apply the MODE.MULT formula.
Hi Bob…Thank you for your feedback! You raise a great point regarding our posts. They should include reference to specific versions of Excel and in particular whether MS 365 is being used as there may be important distinctions to be made.
Please describe in more detail what you working on and we can help guide you.