Histogram vs Bar Chart in Excel: The Real Difference
By ExcelReady TeamUpdated 7 min read
The short answer
A histogram shows how one set of numbers is spread out: Excel groups the values into ranges called bins and draws touching bars for how many fall in each. A bar chart compares separate categories with gaps between the bars. Use a histogram for "how are the values spread?" and a bar chart for "which is bigger?".
Key takeaways
- A histogram needs one column of raw numbers. A bar chart needs labels and one value for each label.
- Histogram bars touch because the bins are a continuous number scale. Bar chart bars have gaps.
- You can sort a bar chart's bars. A histogram's bins must stay in number order.
- Excel 2016 and later have a built-in Histogram chart; in any version, a COUNTIFS bin table plus a column chart works.
- In Excel, "bar chart" means horizontal bars and "column chart" means vertical ones.
On this page+
Histogram vs bar chart is one of the most common chart mix-ups, because both draw rectangles. The real difference is the data behind them. A histogram shows how one set of numbers is spread out, grouped into ranges. A bar chart compares separate categories, such as regions or products. This guide explains how to tell which one a task needs, shows both on the same data, and covers the mistakes that make either chart misleading.
Histogram vs bar chart at a glance#
The table sums up the differences that matter in Excel:
| Feature | Histogram | Bar chart |
|---|---|---|
| Question it answers | How are the values spread out? | Which category is bigger? |
| Data needed | One column of raw numbers | Labels plus one value per label |
| Axis with the bars | Number ranges (bins) | Category names |
| Bar height | Count of values in each bin | Any value: a total, average or count |
| Gaps between bars | None, bars touch | Yes |
| Can you reorder the bars? | No, bins stay in number order | Yes, often sorted largest first |
| How to make it in Excel | Insert > Insert Statistic Chart > Histogram (Excel 2016 and later), or a COUNTIFS table | Insert > Insert Column or Bar Chart |
| Typical use | Delivery times, test scores, order values | Sales by region, tickets by agent |
A note on names: in Excel, a bar chart has horizontal bars and a column chart has vertical ones. In everyday speech, "bar chart" covers both, and that's how this guide uses it. A histogram is usually drawn with vertical columns.
What makes a histogram different#
A histogram takes one numeric variable, such as delivery time in minutes, and cuts its range into equal pieces called bins: 20 to 29, 30 to 39, 40 to 49. Each bar shows how many values fall into its bin. Together the bars show the distribution: where most values sit, how spread out they are, and whether there are unusual ones far from the rest.
Because the bins follow each other on one number scale, the bars touch. And because 30 to 39 always comes after 20 to 29, you can't sort the bars by height without destroying the picture. The guide to making a histogram in Excel covers every method in detail.
When to use a histogram#
Use a histogram when you have many values of one measurement and the question is about their spread:
- What is a typical value? Most deliveries take 30 to 39 minutes.
- How much do values vary? Are times tightly grouped or all over the place?
- Are there outliers? One delivery took far longer than the rest.
- Is the shape lopsided? Many small orders and a few very large ones.
The values must be numbers on a continuous scale: times, amounts, weights, scores out of 100. If you're counting categories, you need a bar chart instead.
When to use a bar chart#
Use a bar chart when you compare a value across separate categories:
- Totals by group: sales by region, spend by department.
- Averages by group: average delivery time per region.
- Counts by group: tickets per agent, orders per product.
- Rankings: the five best-selling products, sorted largest first.
The categories have no fixed order, so you can sort them to make the chart easier to read. The guide to making a bar chart in Excel shows how to sort the bars and add labels.
The same data as a histogram and a bar chart#
One table can feed both charts, as long as each answers its own question. Here are seven deliveries in A1:C8:
| A | B | C | |
|---|---|---|---|
| 1 | Order | Region | Minutes |
| 2 | 1001 | North | 24 |
| 3 | 1002 | South | 38 |
| 4 | 1003 | North | 31 |
| 5 | 1004 | East | 45 |
| 6 | 1005 | South | 33 |
| 7 | 1006 | East | 27 |
| 8 | 1007 | North | 36 |
The histogram: how long do deliveries take?#
Count the Minutes values in each 10-minute bin with COUNTIFS. For the 30 to 39 bin:
=COUNTIFS(C2:C8,">=30",C2:C8,"<40")The result is 4 (38, 31, 33 and 36). The full bin table:
| Bin | Formula | Count |
|---|---|---|
| 20–29 | =COUNTIFS(C2:C8,">=20",C2:C8,"<30") | 2 |
| 30–39 | =COUNTIFS(C2:C8,">=30",C2:C8,"<40") | 4 |
| 40–49 | =COUNTIFS(C2:C8,">=40",C2:C8,"<50") | 1 |
The counts add up to 7, so every delivery landed in exactly one bin. Using >= at the bottom and < at the top stops a value of exactly 30 being counted twice. Chart the counts as a column chart, then right-click a bar, choose Format Data Series and set Gap Width to 0% so the bars touch. The COUNTIFS function guide and the article on COUNTIFS and SUMIFS with multiple conditions explain the two-condition pattern. For a bin table with percentages and running totals, see the guide to a frequency table in Excel.
In Excel 2016 and later, you can skip the table. Select C1:C8 and go to Insert > Insert Statistic Chart > Histogram (on a Mac, the statistic chart button on the Insert tab). Under Format Axis, set Bin width to 10 and Underflow bin to 29, and the bins become ≤29, (29, 39] and (39, 49], with the same counts of 2, 4 and 1. One difference to watch: the built-in chart includes the upper edge of each bin (the ] in the label), while the COUNTIFS table above includes the lower edge. With whole minutes the two methods agree here, but a value such as 39.5 lands in the (39, 49] bin of the chart and in the 30 to 39 row of the table.
The bar chart: which region is slowest?#
Now ask a category question: what is the average delivery time per region? Use AVERAGEIF for each region, such as =AVERAGEIF(B2:B8,"East",C2:C8):
| Region | Average minutes |
|---|---|
| East | 36.0 |
| South | 35.5 |
| North | 30.3 |
Chart this as a bar chart, sorted slowest first. Same data, different question, different chart. The histogram says most deliveries take 30 to 39 minutes. The bar chart says East is slowest on average.
Common mistakes#
These are the slips that most often make one chart pretend to be the other:
- Drawing a histogram from a category column. If you select text, such as the Region column, Excel's Histogram chart switches to By Category bins and counts each name. That's really a bar chart of counts, so make a bar chart.
- Leaving gaps in a column-chart histogram. Gaps suggest separate categories. Set Gap Width to 0%.
- Sorting histogram bins by height. The bins must stay in number order or the shape of the distribution is lost.
- Uneven bin widths. Bins of 0 to 10, 10 to 50 and 50 to 100 make the wide bins look more important. Keep widths equal.
- Too many or too few bins. With seven values, three bins are plenty. With hundreds of values, ten or more may show the shape better. Try a couple of widths.
- Charting a raw list in a bar chart. One bar per order, in sheet order, is hard to read. Summarise by category first.
Our recommendation#
Decide by looking at your data. If you have one column of numbers and want to know how they're spread, make a histogram: use the built-in chart in Excel 2016 or later for speed, or a COUNTIFS bin table when you need exact control over the edges. If you have categories and want to compare a value across them, make a bar chart and sort it. When a task gives you both kinds of question, make both charts from the same table, as in the example above. The guide to Excel chart basics has a quick table for picking the right chart for other questions.
Practise it#
Try the exercise on this page to build one histogram bin with COUNTIFS. Then practise COUNTIFS and SUMIFS in a live spreadsheet to fill a whole bin table with locked ranges, and build a pivot-style summary with formulas to create the category totals a bar chart needs.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Build one bin of the histogram. Click F2 and count the deliveries that took 30 minutes or more but less than 40 in C2:C8, using COUNTIFS with two conditions, then press Enter.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Minutes | ||||||
| 2 | 30 to 39 min | ||||||
| 3 | |||||||
| 4 | |||||||
| 5 | |||||||
| 6 | |||||||
| 7 | |||||||
| 8 | |||||||
| 9 | |||||||
| 10 | |||||||
| 11 |
Tip: Use the Minutes range twice: once with ">=30" and once with "<40".
Practise this in a lesson
Frequently asked questions
What is the main difference between a histogram and a bar chart?
A histogram shows the distribution of one numeric variable grouped into ranges, so its bars touch and stay in number order. A bar chart compares separate categories, so its bars have gaps and can be sorted in any order.
Is a histogram just a bar chart without gaps?
It looks like one, but the data is different. A histogram's bars stand for ranges of numbers on a continuous scale, and their height is a count. A bar chart's bars stand for separate categories and can show any value.
How do I make a histogram in Excel?
In Excel 2016 or later, select the numbers and go to Insert > Insert Statistic Chart > Histogram. In any version, count each range with COUNTIFS, chart the counts as a column chart and set the gap width to 0%.
Can a histogram have gaps between bars?
There should be no gaps between bins, because the ranges follow each other with nothing in between. An empty bin shows as a bar of zero height, which is a real gap in the data, not a spacing choice.
Should I use a histogram or a bar chart for survey ratings?
For ratings on a scale like 1 to 5, a column chart of the count for each rating works well, with the ratings kept in order. Use a histogram when the values are continuous, such as times, amounts or scores out of 100.