Smart Systems for Home

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

How to Make a Frequency Graph 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 make a frequency graph in Excel, you first need to turn your raw data into a frequency table using the FREQUENCY function or a PivotTable, then plot the counts with a column or bar chart. The fastest route is to set up bin limits in one column, enter =FREQUENCY(data_range, bin_range) as an array formula in the next column, and insert a clustered column chart from the results. The steps below cover both the formula method and the PivotTable method, plus how to avoid the most common errors.

What You'll Need

  • Excel 2016 or later (desktop) — the steps below refer to the desktop ribbon; Excel for the web has the same functions but the array formula entry works slightly differently.
  • A column of numeric data (one variable) with no blank cells inside the range.
  • Your bin limits decided in advance — the upper boundary of each group (for example 10, 20, 30, 40).
  • Optional: a PivotTable if you prefer not to write formulas.

Step-by-Step

  1. Lay out your data. Put your raw numbers in a single column, for example A2:A101. Leave the header in A1. Remove any blank rows inside the range, because FREQUENCY treats blanks as zero and will distort the counts.
  2. Create a bin column. In column C, list your upper bin limits in ascending order — for example 10, 20, 30, 40, 50. Each bin counts values greater than the previous limit and less than or equal to the current one. The first bin therefore counts everything up to and including 10.
  3. Select the output range. Click the first cell where you want the counts (say D2) and drag down to select one more cell than the number of bins. If you have five bins, select six cells (D2:D7). The extra cell is for values above the highest bin.
  4. Enter the FREQUENCY formula. With the range still selected, type =FREQUENCY(A2:A101, C2:C6) and press Ctrl+Shift+Enter on Windows or Cmd+Shift+Enter on Mac. In Microsoft 365, pressing Enter alone usually spills the results correctly, but Ctrl+Shift+Enter still works and is safer on older versions. The formula bar should show curly braces { } around the formula if it was entered as an array.
  5. Label the bins. In B2:B6, type descriptions such as "0–10", "11–20" and so on, or simply reference the bin values. The labels are for the chart axis; the counts themselves come from column D.
  6. Insert the chart. Select the bin labels and the count column (B2:C6 or C2:D6 depending on your layout), then go to Insert > Column or Bar Chart > Clustered Column. A frequency histogram appears with bins along the horizontal axis and counts on the vertical axis.
  7. Close the gap between bars. Right-click any bar, choose Format Data Series, and set Gap Width to 0% so the columns touch — this is what makes it read as a histogram rather than a bar chart.
  8. Add axis titles. Click the chart, then the + button (Chart Elements) and tick Axis Titles. Label the horizontal axis with the variable name and the vertical axis "Frequency".
  9. Check the totals. Sum the count column with =SUM(D2:D7). It should equal the number of numeric values in your data range. If it does not, a blank cell or text value is hiding in the data.

If you prefer no formulas, the PivotTable route works just as well: select your data, go to Insert > PivotTable, drag the numeric field into both the Rows and Values areas (set Values to Count), then right-click any row label and choose Group to set the bin size. Insert a column chart from the PivotTable. Menu labels can differ slightly by Excel version and region, but the grouping option is in the same right-click menu across current desktop versions.

Common Mistakes

  • Pressing Enter instead of Ctrl+Shift+Enter on older Excel. The formula returns a single count instead of the full array. Re-select the whole output range and re-enter it as an array.
  • Selecting too few output cells. If you select only five cells for five bins, the "above highest bin" count is lost and the totals will not match.
  • Unsorted or overlapping bins. Bin limits must be in ascending order. Duplicates or out-of-order values produce misleading counts.
  • Leaving the default gap width. The chart looks like a bar chart, not a histogram, and readers misread the spacing as meaningful.
  • Including text or blanks in the data range. These are ignored or treated as zero, so the total count drifts from the real number of observations.

Tips

  • Use around 5–20 bins for most datasets. Too few hides the shape; too many makes the chart noisy.
  • Name your data range (Formulas > Name Manager) so the FREQUENCY formula stays readable and updates when you add rows.
  • For a relative frequency graph, divide each count by the total and format the column as a percentage, then chart that column instead.
  • If you add data later, re-enter the array formula over the same output range — it does not expand automatically in older versions.
  • Keep the bin column next to the counts so the chart source range is easy to select and audit.

Troubleshooting

The formula returns a single number. It was entered as a normal formula. Select the full output range, press F2, then Ctrl+Shift+Enter.

The counts do not add up to the number of rows. Check for blanks, text values or numbers stored as text in the data column. Use =COUNT(A2:A101) to see how many numeric values Excel actually recognises.

The chart shows the bin limits instead of the counts. The source range includes the wrong column. Right-click the chart, choose Select Data, and point the series values at the count column only.

The bars will not touch. Gap Width is still above 0%. Set it to 0% in Format Data Series.

The array formula will not edit. Click into the formula bar, make the change, and press Ctrl+Shift+Enter again; you cannot edit part of an array in place.

Frequently Asked Questions

What is the difference between a frequency graph and a histogram?

A histogram is the most common type of frequency graph: columns that touch, with bins on the horizontal axis and counts on the vertical axis. A frequency polygon is the same data plotted as a line joining the midpoints of each bin.

Can I make a frequency graph without the FREQUENCY function?

Yes. A PivotTable with the numeric field counted and grouped produces the same table, and you can chart it directly. The COUNTIFS function also works if you prefer separate formulas per bin.

Why does FREQUENCY need an extra output cell?

The function always returns one more value than the number of bins: the count of values above the highest bin limit. Without that cell, those values are silently dropped.

Does this work in Excel for the web?

The functions and charts work, but array entry differs: in modern Excel for the web, typing the formula and pressing Enter spills the results automatically. Select the range first if you need the legacy behaviour.

How do I change the bin size after charting?

Edit the bin limits in the bin column, then re-enter the array formula over the output range and refresh the chart. In a PivotTable, right-click a row label and use Group to change the interval.