ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. Histogram vs Bar Chart in Excel: The Real Difference

Histogram vs Bar Chart in Excel: The Real Difference

By ExcelReady Team·Updated November 3, 2026·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+
  1. Histogram vs bar chart at a glance
  2. What makes a histogram different
  3. When to use a histogram
  4. When to use a bar chart
  5. The same data as a histogram and a bar chart
  6. Common mistakes
  7. Our recommendation
  8. Practise it

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:

FeatureHistogramBar chart
Question it answersHow are the values spread out?Which category is bigger?
Data neededOne column of raw numbersLabels plus one value per label
Axis with the barsNumber ranges (bins)Category names
Bar heightCount of values in each binAny value: a total, average or count
Gaps between barsNone, bars touchYes
Can you reorder the bars?No, bins stay in number orderYes, often sorted largest first
How to make it in ExcelInsert > Insert Statistic Chart > Histogram (Excel 2016 and later), or a COUNTIFS tableInsert > Insert Column or Bar Chart
Typical useDelivery times, test scores, order valuesSales 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:

ABC
1OrderRegionMinutes
21001North24
31002South38
41003North31
51004East45
61005South33
71006East27
81007North36

The histogram: how long do deliveries take?#

Count the Minutes values in each 10-minute bin with COUNTIFS. For the 30 to 39 bin:

Excel formula
=COUNTIFS(C2:C8,">=30",C2:C8,"<40")

The result is 4 (38, 31, 33 and 36). The full bin table:

BinFormulaCount
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):

RegionAverage minutes
East36.0
South35.5
North30.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:

  1. 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.
  2. Leaving gaps in a column-chart histogram. Gaps suggest separate categories. Set Gap Width to 0%.
  3. Sorting histogram bins by height. The bins must stay in number order or the shape of the distribution is lost.
  4. 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.
  5. 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.
  6. 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.

fx
ABCDEFG
1
Order
Region
Minutes
2
1001
North
24
30 to 39 min
3
1002
South
38
4
1003
North
31
5
1004
East
45
6
1005
South
33
7
1006
East
27
8
1007
North
36
9
10
11

Tip: Use the Minutes range twice: once with ">=30" and once with "<40".

Practise this in a lesson

LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.LessonPivot-style summary with formulasBuild a summary table like a pivot table with formulas: a sorted UNIQUE list of categories, then SUMIFS and COUNTIFS filled down beside it.Function guideCOUNTIFSCount rows that meet several conditions with COUNTIFS. Examples for text, number ranges and between-values, plus a live exercise.

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.

Sources

  • COUNTIFS function - Microsoft Support
  • Create a chart from start to finish - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Histogram vs bar chart at a glance
  2. What makes a histogram different
  3. When to use a histogram
  4. When to use a bar chart
  5. The same data as a histogram and a bar chart
  6. Common mistakes
  7. Our recommendation
  8. Practise it

Keep reading

Data tools· 7 min read

How to Make a Histogram in Excel

To make a histogram in Excel 2016 or later, select your numbers and choose Insert > Insert Statistic Chart > Histogram. Then right-click the horizontal axis and set the bin width, underflow and overflow bins. For full control or older versions, count each bin with COUNTIFS and plot the counts as a column chart with no gaps.

Data tools· 6 min read

How to Make a Bar Chart in Excel

To make a bar chart in Excel, select your labels and numbers with their headers, go to Insert > Insert Column or Bar Chart, and pick Clustered Bar. Excel draws one horizontal bar per row. Add a title and data labels, and sort the data smallest to largest so the biggest bar is at the top.

Data tools· 7 min read

How to Make a Frequency Table in Excel

A frequency table counts how often each value or range of values appears. In Excel, list the categories or bins in one column and count each with COUNTIF or COUNTIFS, for example =COUNTIFS(B2:B11,">=70",B2:B11,"<80"). You can also use the FREQUENCY function, or a PivotTable that groups numbers into bins for you.

More on comparisons

  • HLOOKUP vs XLOOKUP: Horizontal Lookups Compared
  • IFERROR vs IFNA: Which Should You Use?
  • IFERROR vs ISERROR: Which One Should You Use?
  • INDEX MATCH vs XLOOKUP: Is INDEX MATCH Still Worth Learning?
  • INT vs TRUNC in Excel: Different With Negatives
  • IPMT vs PPMT: Interest and Principal in Excel
All comparisons articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free