Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Make a Frequency Distribution Chart in Excel

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To create a frequency distribution chart in Excel, you first need to summarize your raw data into a frequency table (how many times each value or range of values occurs), then insert a column chart based on that table. The quickest way is to use the Histogram chart type in modern Excel (2016 and later), which does the binning for you automatically. Alternatively, you can build the frequency table manually with the COUNTIF function and then chart it. This guide covers both methods, step by step.

What You'll Need

  • Excel 2016 or later (for the built-in Histogram chart). If you have an older version, the manual method still works.
  • A column of numeric data in a worksheet. For example, test scores, ages, or sales amounts.
  • Optional: A separate column listing the bin ranges (e.g., 0-10, 11-20) if you want to control the intervals yourself.

Step-by-Step

Method 1: Using the Built-in Histogram Chart (Excel 2016 and later)

  1. Select your data. Click and drag to highlight the column that contains your numeric values. Do not include the header if it's text—Excel will treat it as a data point. If your data is in a table, select the column range.
  2. Insert the chart. Go to the Insert tab on the ribbon. In the Charts group, click the Insert Statistic Chart icon (it looks like a small bar chart with a curve). From the dropdown, choose Histogram.
  3. Adjust the bins. Excel will create a histogram with default bin widths. To change them, right-click the horizontal axis (the one with the numbers) and select Format Axis. A pane will open on the right. Under Axis Options, you'll see Bin width, Number of bins, and Overflow bin/Underflow bin options. Set the bin width to your desired interval (e.g., 10 for scores of 0-100). You can also specify a number of bins, or set an overflow/underflow bin to group all values above or below a certain threshold.
  4. Format the chart. Use the Chart Design and Format tabs to change colors, add a title, or adjust labels. To add data labels (the count on top of each bar), right-click the bars and choose Add Data Labels.

Method 2: Manual Frequency Table with COUNTIF (Works in all versions)

  1. Create a bin range column. In a new column, list the upper limits of each bin. For example, if you want bins of 0-10, 11-20, 21-30, etc., type 10, 20, 30, and so on. Label this column "Bins" (or "Upper Limit").
  2. Create a frequency column. Next to the bin column, label a column "Frequency". In the cell next to your first bin, enter the formula: =COUNTIF($A$2:$A$100, "<="&B2) – assuming your data is in A2:A100 and your first bin upper limit is in B2. This counts how many values are less than or equal to that bin limit. For the second bin, use: =COUNTIF($A$2:$A$100, "<="&B3)-COUNTIF($A$2:$A$100, "<="&B2) to get the count for that bin only. Copy this formula down for all bins.
  3. Create the chart. Select the bin column and the frequency column (hold Ctrl to select non-adjacent columns). Go to Insert > Charts > Column (or Bar) and choose the first 2D column chart. This will plot the frequency for each bin.
  4. Adjust the horizontal axis labels. If Excel uses the bin numbers as the axis labels, that's fine. If it uses 1,2,3..., right-click the chart and choose Select Data. Click Edit under Horizontal Axis Labels and select your bin range.

Common Mistakes

  • Including a text header in the data range – This can cause Excel to treat the header as a data point, resulting in a weird chart.
  • Using the wrong bin type – For a histogram, the bins must be numeric intervals. If you use text labels (like "Low", "Medium", "High"), you'll need to assign numbers to those categories first.
  • Overlapping bins in the manual method – If you use COUNTIF with "<=" for each bin, you'll double-count values. Always subtract the previous bin's count to get exclusive ranges.
  • Not sorting the bins – If you list bins out of order, the chart will look jumbled. Keep them in ascending order.
  • Forgetting to update the range – If you add more data later, the formulas won't automatically include it unless you use a dynamic range or a table.

Tips

  • Use a pivot table for quick frequency tables. Select your data, go to Insert > PivotTable, and drag the numeric field to both Rows and Values. Then right-click a value in the Rows area and choose Group to set bin intervals. This gives you a ready-made frequency table that updates when you refresh.
  • Choose meaningful bin widths. For most datasets, 5-20 bins are ideal. Too few bins hide details; too many make the chart noisy. A quick rule: take the square root of the number of data points and round up.
  • Label your axes. A frequency distribution chart is meaningless without clear axis titles. Use the Chart Elements button (the plus sign) to add Axis Titles.
  • Consider a cumulative frequency line. You can add a secondary line chart showing cumulative percentages by adding a column with running totals and changing its chart type to Line.
  • Use the Analysis ToolPak for more statistics. Go to File > Options > Add-ins, select "Analysis ToolPak", and click Go. The Histogram tool under Data > Data Analysis can generate a frequency table and chart with more control.

Troubleshooting

  • Chart shows "#VALUE!" errors – This usually means your COUNTIF formula has a text value or a blank cell in the data range. Check for non-numeric entries and remove or fix them.
  • Histogram option is grayed out – This happens if you haven't selected numeric data. Ensure your selection includes only numbers, not text or blank cells.
  • The chart doesn't update when I change data – If you used a static range (like A2:A100), new rows beyond row 100 won't be included. Convert your data range to an Excel Table (Ctrl+T) and use structured references, or expand the range manually.
  • Bins are not showing the intervals I want – In the built-in histogram, right-click the axis and adjust the bin width or number of bins. If you want specific breakpoints, you must use the manual method with your own bin limits.
  • The frequency counts are too high or too low – Double-check your COUNTIF criteria. For bins like "0-10", "11-20", you need to use "<=" for the first bin and then subtract the previous count for subsequent bins. For example, for bin 11-20, the formula is =COUNTIF(range, "<="&20) - COUNTIF(range, "<="&10).

Frequently Asked Questions

Can I create a frequency distribution chart without a frequency table?

Yes, the built-in Histogram chart in Excel 2016+ does this automatically. It calculates the frequencies and displays the chart in one step.

How do I change the number of bins in a histogram?

Right-click the horizontal axis, choose Format Axis, and under Axis Options, adjust the Bin width or Number of bins. You can also set an overflow or underflow bin to group extreme values.

What is the difference between a histogram and a bar chart?

A histogram is used for continuous numeric data and the bars touch each other (no gaps) because the bins are consecutive intervals. A bar chart is for categorical data and has gaps between bars.

Can I make a frequency distribution chart for text data (e.g., colors)?

Yes, but you'll need to use a pivot table or the COUNTIF function with text criteria. For example, =COUNTIF(range, "Red"). Then create a bar chart from the counts.

Why does my histogram show a bin that includes zero?

Excel's default binning starts at the minimum value, which might be zero. To change the starting point, right-click the axis, go to Format Axis, and set the Bin width and the Overflow/Underflow bins, or manually specify the bin range using the manual method.

How do I add a normal distribution curve to my histogram?

You need to calculate the normal distribution values for each bin using the NORM.DIST function (mean and standard deviation of your data), then add a secondary line chart. This requires a bit of setup—create a column with the bin midpoints and another with the NORM.DIST formula, then add it as a new series and change its chart type to Line.