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. Data tools
  3. How to Make a Histogram in Excel

How to Make a Histogram in Excel

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

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.

Key takeaways

  • A histogram shows how many values fall into each range, called a bin. The bars touch because the ranges are continuous.
  • The built-in Histogram chart sets bins automatically; change them under Format Axis > Bins.
  • A COUNTIFS bin table, such as =COUNTIFS(B2:B16,">=60",B2:B16,"<70"), shows exactly what each bar counts.
  • Bins must not overlap or leave gaps: use >= for the lower edge and < for the upper edge.
On this page+
  1. What is a histogram?
  2. How to make a histogram with the built-in chart
  3. How to make a histogram with COUNTIFS
  4. How to use FREQUENCY for the counts
  5. How to make a histogram with a PivotTable
  6. Which method should you use?
  7. Common histogram mistakes
  8. Practise it

A histogram in Excel shows how your numbers are spread out: how many fall between 50 and 60, between 60 and 70, and so on. Excel 2016 and later have a built-in Histogram chart that takes two clicks, and every version can build one from a COUNTIFS table. This guide shows both, plus FREQUENCY and PivotTable methods, so you can pick the one that fits your data and your Excel.

What is a histogram?#

A histogram is a chart that counts how many values fall into each range. Each range is called a bin, such as 60 to 69. The height of a bar is the number of values in that bin.

It looks like a column chart, but there are two differences:

  • The horizontal axis shows number ranges, not categories like regions or products.
  • The bars touch, because one range runs straight into the next.

Use a histogram to answer questions like "are most test scores high or low?", "how long do most deliveries take?" or "are there any unusual values?". For comparing separate categories, a bar chart is the better fit.

All the examples use these 15 test scores. In the sheet, the names are in A2:A16 and the scores in B2:B16; the table below is folded into three pairs of columns to save space:

TraineeScoreTraineeScoreTraineeScore
Ana52Felix69Kofi71
Bilal67Grace90Lena95
Chloe74Hiro77Mateo66
Dmitri81Ines63Nadia79
Esi58Jonas85Omar73

How to make a histogram with the built-in chart#

In Excel 2016 and later, including Microsoft 365, the Histogram chart does the counting for you:

  1. Select the scores, B1:B16 (include the header so it becomes the title).
  2. Go to Insert > Insert Statistic Chart > Histogram. In Excel for Mac, click the statistic chart button on the Insert tab, then Histogram.
  3. Excel draws the chart with bins it chooses automatically.

The automatic bins rarely have round edges, so set them yourself. Right-click the horizontal axis, choose Format Axis, and look under Bins:

OptionWhat it does
AutomaticExcel picks the bin width
Bin widthEvery bin covers this many units, such as 10
Number of binsExcel splits the data into this many equal bins
Overflow binOne bar for everything above a value
Underflow binOne bar for everything at or below a value

For scores, set Bin width to 10 and Underflow bin to 59. The bars become ≤59, (59, 69], (69, 79], (79, 89] and (89, 99], with counts 2, 4, 5, 2, 2.

Read the labels carefully: a square bracket ] means the edge is included and a round bracket ( means it isn't. So (59, 69] is "above 59, up to and including 69", which for whole-number scores is 60 to 69. The chart updates when the scores change.

How to make a histogram with COUNTIFS#

A bin table with COUNTIFS works in every Excel version and shows exactly what each bar counts. Type the lower and upper edge of each bin, then count:

DEF
1FromTo (below)Count
250602
360704
470805
580902
6901012

In F2, type this and fill down (Windows: Ctrl+D; Mac: ⌘D):

Excel formula
=COUNTIFS($B$2:$B$16,">="&D2,$B$2:$B$16,"<"&E2)

The first condition keeps scores at or above the lower edge, and the second keeps scores below the upper edge. Using >= at the bottom and < at the top means a score of exactly 70 is counted once, in the 70 bin, never twice. The $ signs keep the score range fixed as you fill down. The counts add up to 15, which is a quick check that no score fell through a gap. The COUNTIFS function guide explains each argument, and COUNTIFS and SUMIFS with multiple conditions has more examples.

Now chart it:

  1. Add a label column, such as "50-59", or select F1:F6 on its own.
  2. Go to Insert > Insert Column or Bar Chart > Clustered Column.
  3. Right-click a bar, choose Format Data Series, and set Gap Width to 0% so the bars touch.

If you're new to charts, the basics of Excel charts covers titles, labels and axes.

How to use FREQUENCY for the counts#

FREQUENCY counts values into bins in one formula. You give it the data and the upper edge of each bin:

Excel formula
=FREQUENCY(B2:B16,H2:H6)

With 59, 69, 79, 89 and 100 in H2:H6, it returns 2, 4, 5, 2, 2, plus one extra value for anything above 100 (here 0). Each bin counts values above the previous edge, up to and including its own.

In Microsoft 365 and Excel 2021, the results spill down automatically. In older versions, select six cells first, type the formula, and press Ctrl+Shift+Enter to enter it as an array formula. The guide to making a frequency table covers FREQUENCY, percentages and running totals in detail.

How to make a histogram with a PivotTable#

A PivotTable can group numbers into bins, which is handy for long lists:

  1. Select the data and go to Insert > PivotTable.
  2. Drag Score to Rows and drag Score again to Values. Change the value to Count (right-click > Summarize Values By > Count).
  3. Right-click any score in the Rows area and choose Group.
  4. Set Starting at 50, Ending at 100 and By 10. Click OK.

The rows become 50-59, 60-69 and so on, with a count next to each. Add a PivotChart from the PivotTable Analyze tab and set the gap width to 0. Counting with a PivotTable explains Count vs Sum, and the PivotTable lesson lets you build one step by step.

Which method should you use?#

Each method suits a different situation:

MethodWorks inUpdates with dataBest for
Built-in Histogram chartExcel 2016 and laterYesA quick, clean chart
COUNTIFS + column chartAll versionsYesExact bins you can explain
FREQUENCYAll versionsYesCounts in one formula
PivotTable groupingAll versionsAfter RefreshLong lists and reports
Analysis ToolPakDesktop Excel with the add-inNoA one-off table and chart

The Analysis ToolPak's Histogram tool (Data > Data Analysis, once the add-in is turned on) writes a fixed table that doesn't change when your data does, so the other methods are usually better.

Common histogram mistakes#

Most wrong histograms come from the bins, not the chart:

  • Overlapping bins. Writing "<=70" for one bin and ">=70" for the next counts 70 twice. Use >= and <.
  • Gaps between bins. Bins like 50-59 and 60-69 miss 59.5 if your data has decimals. Use edges like 50 and 60 with <.
  • Too many or too few bins. Five to ten bins of equal width is a good start. Round widths (5, 10, 100) are easiest to read.
  • Numbers stored as text. COUNTIFS and the Histogram chart skip them, so totals come up short. Check that the counts add up to the number of values.
  • A gap between bars. A column chart has gaps by default. Set Gap Width to 0%.

Practise it#

Try the exercise on this page: count the scores in one bin with COUNTIFS, exactly as each bar of a histogram does. Then practise COUNTIFS and SUMIFS in a live spreadsheet and build your first PivotTable. You do each step in a real sheet and get instant feedback.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Build one bar of a histogram. In E2, count the scores from 70 to 79 with COUNTIFS: =COUNTIFS(B2:B8,">=70",B2:B8,"<80"), then press Enter.

fx
ABCDEF
1
Trainee
Score
Bin
Count
2
Ana
52
70-79
3
Bilal
74
4
Chloe
81
5
Dmitri
77
6
Esi
69
7
Felix
73
8
Grace
90
9
10
11

Tip: Use the same range twice: once with ">=70" for the lower edge and once with "<80" for the upper edge. Three scores (74, 77 and 73) fall in the bin.

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 tables 1Build your first PivotTable on a new sheet: total sales by region, split them by product, then switch the summary from Sum to Count and Average and read the answer off the pivot.Function guideCOUNTIFSCount rows that meet several conditions with COUNTIFS. Examples for text, number ranges and between-values, plus a live exercise.

Frequently asked questions

How do I make a histogram in Excel?

+

Select the column of numbers, then go to Insert > Insert Statistic Chart > Histogram. This chart type is available in Excel 2016 and later, including Microsoft 365, on Windows and Mac. Right-click the horizontal axis to change the bins.

How do I change the bin width of a histogram in Excel?

+

Right-click the horizontal axis, choose Format Axis, and under Bins choose Bin width, then type a value such as 10. You can also set the number of bins, or add overflow and underflow bins for extreme values.

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

+

A bar chart compares separate categories, like sales by region. A histogram shows how numbers are spread across ranges, like how many scores fall between 60 and 70, and its bars touch because the ranges join up.

Why is the Histogram chart missing in my Excel?

+

The built-in Histogram chart arrived in Excel 2016. In older versions, build a bin table with COUNTIFS or FREQUENCY and plot it as a column chart, or use the Histogram tool in the Analysis ToolPak add-in.

What do the brackets in histogram bin labels mean?

+

A square bracket means the edge value is included and a round bracket means it is not. So (59, 69] counts values above 59 up to and including 69.

Sources

  • COUNTIFS function - Microsoft Support
  • Create a chart from start to finish - Microsoft Support
  • Create a PivotTable to analyze worksheet data - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 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. What is a histogram?
  2. How to make a histogram with the built-in chart
  3. How to make a histogram with COUNTIFS
  4. How to use FREQUENCY for the counts
  5. How to make a histogram with a PivotTable
  6. Which method should you use?
  7. Common histogram mistakes
  8. Practise it

Keep reading

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.

Data tools· 5 min read

Make a Chart in Excel: Column, Bar, Line and Pie

To make a chart in Excel, select your data including the headers, go to Insert and pick a chart, or click Recommended Charts to let Excel suggest one. Use a column or bar chart to compare categories, a line chart for a trend over time, and a pie chart only for a few parts of one whole.

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.

More on data tools

  • Build an Interactive Chart in Excel With a Drop-Down
  • How to Make a Line Chart in Excel
  • How to Make a Map Chart in Excel by Country or State
  • How to Make a Pie Chart in Excel (and When Not To)
  • Calculated Fields in a Pivot Table
  • How to Make a Pivot Chart in Excel
All data tools 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