CHARTS & DASHBOARDS

How to Make a Histogram in Excel (Bins, FREQUENCY and a Chart)

An average hides the shape of your data. A histogram shows it: how many orders are small, how many support tickets drag on, where most of the values sit and how long the tail is. This guide builds one in any version of Excel from a single column of numbers, with bins you control, counts that check themselves and a chart that regroups when you change the bin width. It also shows the built-in Histogram chart and when to use it.

Excel histogram of 80 support tickets by minutes to resolve, with 15 tickets in 11-20, 21 in 21-30 and 18 in 31-40, and a check that ties.
80 tickets grouped into 10-minute bins.

Quick answer

  1. Put your numbers in one column.
  2. Make a bin table: a From and a To value for each bin (for example 0-10, 10-20 …).
  3. Count each bin with =COUNTIFS(data,">"&From,data,"<="&To) and add an Over bin for the rest.
  4. Insert > Column > Clustered Column on the bin labels and counts.
  5. Format Data Series > Gap Width 0%.
Free download: Get the histogram workbook (.xlsx). Paste your numbers into Data!B4:B203, type the start and bin width on the Histogram sheet, and the bins, counts, check and chart update. No macros; works in Excel 2010 and later, Microsoft 365, Excel for the web and LibreOffice.

Step 1: Put the numbers in one column

A histogram needs one list of numbers: order values, ages, delivery days, test scores. The example has 80 support tickets and the minutes each one took to resolve. The statistics next to the bins give a first feel for the data: shortest 2 minutes, longest 95, average 28.5 and median 27. Two tickets took far longer than the rest; the histogram will show them on their own.

Excel data sheet with 80 support tickets and the minutes each took to resolve, from 2 to 95 minutes.
One value per row.

Step 2: Choose the bins

A bin is a range of values, such as 11 to 20 minutes. You choose two inputs: where the bins start (B3) and how wide they are (B4). Each bin’s lower edge is the previous bin’s upper edge, so the bins never overlap or leave gaps:

CellFormulaMeaning
B11=$B$3First bin starts after 0
C11=B11+$B$4Upper edge = lower edge + width
B12=C11Next bin starts where the last one ended
A11=TEXT(B11+1,"0")&"-"&TEXT(C11,"0")Label 1-10 (for whole numbers)

Pick a width that gives roughly 5 to 15 bins. Round numbers (5, 10, 25, 100) make the chart easier to read than the odd widths Excel sometimes picks automatically.

Excel bin table with bins starting after 0 and a bin width of 10, giving bins 1-10 up to 71-80 and an Over 80 bin.
Two inputs drive every bin.

Step 3: Count the values in each bin

=COUNTIFS(Data!$B$4:$B$203,">"&B11,Data!$B$4:$B$203,"<="&C11)

Each bin counts the values over From and up to To, so a ticket that took exactly 20 minutes lands in 11-20, not 21-30. That is the same rule FREQUENCY and Excel's Histogram chart use, so your counts match theirs. The last row, Over 80, uses =COUNTIF(Data!$B$4:$B$203,">"&B19) to catch everything above the last bin (the two long tickets). The check compares the total with the number of tickets and confirms nothing sits at or below the first bin: 80 and 80, so it shows Ties. For more on criteria like these, see COUNTIFS with multiple criteria.

Excel COUNTIFS formula counting tickets over the From value and up to the To value in each bin, with a total of 80 and the check Ties.
Counts add up to 80.
FREQUENCY alternative: Select the Tickets cells and type =FREQUENCY(Data!B4:B203,C11:C18). In Microsoft 365 it spills 9 results: one per upper edge plus one for everything above the last. In older versions select D11:D19 first and press Ctrl+Shift+Enter. COUNTIFS is easier to read and edit one cell at a time.

Step 4: Insert a column chart

Select the bin labels and the Tickets column (A10:A19 and D10:D19; hold Ctrl to select both) and choose Insert > Insert Column or Bar Chart > Clustered Column. Excel draws one bar per bin, but with gaps between them, so it still looks like a category chart.

Unformatted Excel column chart of ticket counts per bin with gaps between the bars.
A column chart, not yet a histogram.

Step 5: Close the gaps

Right-click a bar > Format Data Series and set Gap Width to 0%. The bars now touch, which tells the reader the bins are a continuous scale. Give the bars a thin white border so you can still see where one bin ends, add data labels (Outside End) and axis titles, and delete the legend. Most tickets take 11 to 40 minutes, the peak is 21-30, and the long tail on the right is easy to spot.

Formatted Excel histogram with no gaps between the bars, data labels and axis titles, peaking at 21 tickets in the 21-30 minute bin.
Gap width 0% makes it a histogram.

Step 6: Change the bin width

Type 20 in B4. The bins become 1-20, 21-40 and so on, every count is recalculated and the chart regroups: 27, 39, 11, 1 and 2 tickets, then empty bins. Wider bins give a smoother but less detailed picture; narrower bins show more detail but can look noisy. Try a few widths before you decide, and keep the one that answers your question.

Two Excel histograms of the same 80 tickets with bin width 10 and bin width 20, where the 20-minute bins show 27, 39, 11, 1 and 2 tickets.
Same data, two bin widths.
Try it: Change B4 from 10 to 20: the counts become 27, 39, 11, 1 and 2 and the check still says Ties. Then type 0 in Data!B84: the check changes to Check, because a value at or below the first bin is not counted. Lower B3 or fix the value.

The built-in Histogram chart (Excel 2016 and later)

In Excel 2016, 2019, 2021 and Microsoft 365, select the data column and choose Insert > Insert Statistic Chart > Histogram. Excel picks the bins itself; right-click the horizontal axis > Format Axis to set the Bin width or Number of bins and to add Overflow and Underflow bins. It is quick, but the bins are not visible in cells, so you cannot reference the counts in formulas or a dashboard, and the chart does not open in Excel 2013 or earlier. The formula method above works everywhere and keeps the numbers on the sheet. A third option is a PivotTable with the values grouped by a fixed interval (right-click a value > Group), the same tool used in grouping dates by month.

Variations

Common mistakes

  • Leaving the gap width at the default, so it looks like a bar chart of categories.
  • Bins that overlap (10-20 and 20-30 both counting 20): use over From and up to To.
  • No overflow bin, so very large values are silently left out. The check catches it.
  • Too many or too few bins: aim for about 5 to 15.
  • Labels like 1-10 on decimal data: use labels such as 0-10 and 10-20 and state that each bin includes its upper edge.

Frequently asked questions

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

A bar chart compares separate categories (regions, products). A histogram shows how one set of numbers is spread across continuous ranges, so the bars touch and their order is fixed.

How do I choose the bin range in Excel?

Start with a round width that gives about 5 to 15 bins, check the shape, then try one narrower and one wider width. In the workbook, change B3 and B4.

Why don't my histogram counts match FREQUENCY?

Check the boundary rule. FREQUENCY counts values greater than the previous bin and less than or equal to the bin; using greater than or equal on the lower edge moves boundary values into the next bin.

Can I make a histogram with the Analysis ToolPak?

Yes: enable it under File > Options > Add-ins, then Data > Data Analysis > Histogram. It writes static counts that do not update when the data changes, so formulas are better for reports you refresh.

Which Excel versions have the built-in Histogram chart?

Excel 2016 and later for Windows and Mac, including Microsoft 365. Excel 2013 and earlier do not have it and cannot display it. The column chart method works in every version.

Final checklist

  • Numbers in one column, no text mixed in.
  • Bin start and width chosen (about 5 to 15 bins).
  • COUNTIFS over From and up to To, plus an Over bin.
  • Total equals the number of values: Ties.
  • Column chart with gap width 0%, labels and axis titles.
Workbook: Download the histogram workbook and paste in your own numbers.

See the shape of your data

Find more ready-to-use Excel templates, learn the formulas in the OneXcel Tutorial Hub, or build a full dashboard with the OneXcel Dashboard Builder.