Smart Systems for Home

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

How to Create a Frequency Distribution Graph in Excel

· 7 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

A frequency distribution graph shows how often each value, or range of values, appears in a dataset. In Excel the fastest reliable route is to build a two-column table of bins and counts, then insert a Column chart from that table. You do not need a statistical add-in: the FREQUENCY function fills in the counts, and once the counts exist the chart is just a normal clustered column chart. The whole job takes a few minutes, provided the raw data is clean and the bins are written in ascending order. Menu labels can differ slightly by Excel version, platform and region, so look for the closest matching option if a name is not exactly as written here.

What You'll Need

  • Excel for Windows, Mac or Excel for the web. All three can do everything below. The classic Data Analysis ToolPak (with its own Histogram option) is not available in Excel for the web and is not installed by default on desktop, so the method here avoids it.
  • A column of numeric data with one value per row and no blank cells or text mixed in.
  • An empty area on the sheet (or a new sheet) for the bin table and the chart.
  • An idea of sensible bins. Between five and ten bins is usually readable; more bins show more detail but make a spikier chart.

Step-by-Step

  1. Put your data in a single column. Select the column and give it a heading, for example Test Score in cell A1, with values from A2 downward. Delete completely empty rows rather than leaving gaps, because gaps can throw off the count.
  2. Find the smallest and largest values. In two spare cells type =MIN(A2:A200) and =MAX(A2:A200), replacing the range with your actual range. These two numbers tell you where the bins must start and end. Do not guess them.
  3. Work out a bin width. Subtract the minimum from the maximum and divide by the number of bins you want. For scores running from 42 to 98 across 6 bins, the range is 56 and the width is about 9.3, so round up to 10. Rounding up avoids an awkward leftover bin at the top end.
  4. Write the bin upper limits in ascending order. In column B, below a heading such as Bin, list the top of each bin: for example 50, 60, 70, 80, 90, 100. Excel's FREQUENCY function counts values that are less than or equal to each limit, so these are upper bounds, not lower bounds. Getting them out of order is the most common reason the counts look wrong.
  5. Enter the frequency formula. Select the range of cells in column C that sits next to the bins, type =FREQUENCY(A2:A200,B2:B7) where the first range is your data and the second is your bin list, then press Ctrl+Shift+Enter on Windows or Command+Shift+Enter on Mac. This enters it as an array formula that spills a count for every bin. On Excel 365 and Excel 2021 and later you can instead type the formula in a single cell and press Enter; it spills automatically. Always make the bin list one cell longer than the number of bins you want, or remember that FREQUENCY adds a final count for values above the last limit.
  6. Check the total. Add the counts with =SUM(C2:C7). It must equal the number of rows of data you have. If it is lower, some cells are text or blank; if it is higher, you have selected more rows than you intended.
  7. Label the bins so they read clearly. A bin of 50 actually means "up to and including 50". Either use the headings to explain this, or build a text column that reads something like 41-50, 51-60 and use that as the chart's categories. Do not replace the numeric bin column itself, because the formula needs numbers.
  8. Insert the chart. Select the bin column and the count column together, including their headings. Then go to Insert and choose the Column chart icon, picking the first 2-D clustered column option. Drag the chart to a clear area.
  9. Tidy it into a proper frequency distribution graph. Click the chart, open Chart Design or the chart's + button, and add Axis Titles: the horizontal axis for the value ranges and the vertical axis for frequency. Turn off the gridlines if they clutter it, and set the vertical axis so it starts at zero. Then give the chart a clear title such as Distribution of Test Scores.
  10. Close the gaps between bars. Right-click any bar, choose Format Data Series, and set Gap Width to zero. A true histogram has bars that touch, which visually signals continuous data.

Common Mistakes

  • Bins written in descending order. FREQUENCY expects ascending upper limits. Out-of-order bins produce counts that look plausible but are wrong.
  • Mixing labeled and unlabeled bins. If one bin cell is text such as "under 50" and the rest are numbers, the array stops behaving as expected. Keep the formula's bin range purely numeric.
  • Selecting the wrong data range. Ranges that are off by one row drop a value from the total. Always verify the total count.
  • Using a Line chart. A line chart implies continuity between categories and hides how lumpy the data really is. Use columns.
  • Forgetting the array entry. In older versions, pressing Enter instead of Ctrl+Shift+Enter puts one number in one cell and you get a column of zeros below it.
  • Leaving empty cells in the data. A trailing blank row is fine, but blanks scattered through the column will silently reduce the total.

Tips

  • Keep the bin table on the same sheet as the data so the chart updates automatically when you add rows, provided you extend the formula range.
  • To change the bin width, edit the bin cells. Just resizing the column or dragging the bars does not change the underlying counts.
  • For whole-number data like counts of devices per household, use bins such as 0, 1, 2, 3 so each bar represents an exact value.
  • If you convert the bin table to an Excel Table, use structured references carefully; FREQUENCY is an array function and works more predictably with plain ranges.
  • Add a cumulative percentage column with =SUM($C$2:C2)/SUM($C$2:$C$7) if you need to answer questions like "what share scored above 70".
  • Data labels on top of each bar often remove the need for a vertical axis title altogether.

Troubleshooting

All the counts are zero. The bin range is almost certainly text, not numbers, or the data range points at empty cells. Click a bin cell and check that the status bar shows a number, not text.

The last count is huge. FREQUENCY adds a final figure for everything above the largest bin. If that number is large, your top bin is too low. Raise it to at least the maximum value.

The formula will not spill. An older file may be in compatibility mode, or the spill range is blocked by content in neighbouring cells. Clear those cells, or use Ctrl+Shift+Enter.

The chart shows one giant bar. The chart is probably referencing the wrong range or treating bins as text. Reselect the two columns, including headings, and reinsert.

Numbers look different after typing. Decimal separators and date formats vary by region, and a comma may not be accepted as a decimal point. Use the separator your system expects.

If none of that solves it, rebuild the bin table on a fresh sheet with a small test dataset of known values, confirm the counts by hand, then paste your real data in.

Frequently Asked Questions

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

A histogram shows a continuous variable grouped into ranges, with touching bars. A bar chart compares separate categories. Excel calls both "Column" charts, so you set the gap width to zero to make yours read as a histogram.

Do I need the Analysis ToolPak?

No. The FREQUENCY function plus a column chart works everywhere, including Excel for the web. The ToolPak's Histogram tool is optional and is not available on every platform.

How many bins should I use?

Five to ten is a practical default. Fewer bins hide detail; many small bins make the chart noisy. Try a couple of widths and keep the one that shows the shape of the data most clearly.

Can I make the chart update automatically?

Yes, if the formula range covers the rows you will add. The chart redraws when the counts change. A fixed range will not stretch by itself, so extend it or convert the data to a Table and reference the whole column.

Why do my bins seem off by one?

Excel counts values up to and including each bin limit. A bin of 50 includes the value 50. Adjust the limits or the wording of your labels so readers are not misled.

Can I build one from a PivotTable?

Yes. Insert a PivotTable, put the numeric field in both the Rows and Values areas, then group the row field into number ranges of a set width. The resulting counts feed a column chart the same way.