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.

Quick answer
- Put your numbers in one column.
- Make a bin table: a From and a To value for each bin (for example 0-10, 10-20 …).
- Count each bin with =COUNTIFS(data,">"&From,data,"<="&To) and add an Over bin for the rest.
- Insert > Column > Clustered Column on the bin labels and counts.
- Format Data Series > Gap Width 0%.
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.

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:
| Cell | Formula | Meaning |
|---|---|---|
| B11 | =$B$3 | First bin starts after 0 |
| C11 | =B11+$B$4 | Upper edge = lower edge + width |
| B12 | =C11 | Next 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.

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.

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.

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.

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.

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
- Sort the bins by count and add a cumulative line to turn it into a Pareto chart.
- Let the viewer choose the data set with a dynamic chart and a drop-down list.
- Show percentages instead of counts: chart the Share column (D / total) so data sets of different sizes compare fairly.
- Put the histogram on a KPI dashboard or the sales report dashboard next to the averages it explains.
- Tracking one number against one target instead of a spread? Use a thermometer goal chart.
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.
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.