How to Create a Histogram in Excel: A Complete Guide
Histograms are one of the most useful chart types for understanding how data is distributed — but Excel handles them a little differently depending on which version you're using and what your data looks like. Here's everything you need to know to build one correctly.
What Is a Histogram (and When Should You Use One)?
A histogram is a bar chart that shows the frequency distribution of a dataset. Unlike a regular bar chart that compares categories, a histogram groups numerical data into ranges — called bins — and shows how many data points fall into each range.
Common use cases include:
- Analyzing test scores across a class
- Visualizing the distribution of sales figures
- Spotting outliers in survey response data
- Understanding age ranges in a customer dataset
The key distinction: histograms work with continuous numerical data, not categorical labels. If you're comparing apples to oranges (literally), a standard bar chart is the right tool. If you're analyzing the spread of values — heights, times, prices — a histogram is what you want.
Method 1: Using the Built-In Histogram Chart (Excel 2016 and Later)
If you're running Excel 2016, 2019, 2021, or Microsoft 365, you have access to a native histogram chart type. This is the fastest approach.
Steps:
- Enter your data in a single column (e.g., Column A). No need to pre-sort it.
- Select the data range.
- Go to Insert → Charts → Insert Statistic Chart (the icon looks like a histogram with a small bell curve).
- Select Histogram from the dropdown.
- Excel will automatically generate the chart with default bin groupings.
Customizing the bins:
Excel auto-calculates bin width, but you can override this:
- Right-click the horizontal axis → Format Axis
- Under Axis Options, you'll see three bin settings:
- Automatic — Excel decides
- Bin width — you set the interval size (e.g., every 10 units)
- Number of bins — you specify how many bars appear
- Overflow bin / Underflow bin — useful for grouping outliers above or below a threshold
Adjusting bin width significantly changes how the chart reads. Too few bins and you lose detail; too many and the pattern disappears into noise.
Method 2: Using the Analysis ToolPak (Excel 2013 and Earlier, or Advanced Control)
The Analysis ToolPak is an Excel add-in that gives you more manual control over bin boundaries. It's also available in newer versions if you prefer defining exact ranges.
Enable the ToolPak:
- Go to File → Options → Add-ins
- At the bottom, select Excel Add-ins from the dropdown → click Go
- Check Analysis ToolPak → click OK
Set up your bin ranges:
In a separate column, enter the upper boundary of each bin. For example, if you're analyzing scores from 0–100 in increments of 10, you'd enter: 10, 20, 30, 40... 100.
Run the histogram:
- Go to Data → Data Analysis → Histogram
- Set Input Range to your data column
- Set Bin Range to your boundary column
- Choose an output location
- Check Chart Output to generate the histogram automatically
This method creates a static output — if your source data changes, the chart won't update automatically. Keep that in mind for ongoing reporting.
Method 3: PivotChart Approach (Flexible for Large Datasets) 📊
For larger or more dynamic datasets, building a histogram from a PivotTable gives you more flexibility:
- Insert a PivotTable from your data range
- Drag your numerical field into both Rows and Values
- Group the row field by a fixed interval (right-click → Group → set interval size)
- Set Values to Count
- Insert a Column Chart from the PivotTable — this functions as a histogram
This approach updates dynamically when the underlying data changes, which makes it practical for dashboards or recurring reports.
Key Variables That Affect Your Results
Not every histogram setup will look or behave the same. Several factors shape the outcome:
| Variable | Why It Matters |
|---|---|
| Excel version | Native histogram chart only available in 2016+ |
| Bin width/count | Determines how granular or broad the distribution looks |
| Dataset size | Small datasets can produce misleading shapes |
| Data type | Must be numeric and continuous for meaningful results |
| Static vs. dynamic output | ToolPak output doesn't refresh; PivotChart and native charts can |
Common Mistakes to Avoid ⚠️
- Using text or mixed data in the input range — Excel will error out or produce a blank chart
- Choosing bin sizes that are too wide or too narrow for your dataset's natural range
- Confusing a histogram with a bar chart — they look similar, but bar charts have gaps between bars to signal categorical data; histogram bars are adjacent
- Forgetting to remove blank rows in your data range before building the chart
How Excel Decides Bin Sizes Automatically
When you use the native chart with automatic binning, Excel applies Scott's Normal Reference Rule — a statistical formula that bases bin width on the standard deviation and size of your dataset. It's a reasonable default for normally distributed data, but it can produce odd-looking charts for skewed datasets or those with heavy outliers.
If the default binning doesn't reflect the shape you expect, manual bin adjustment is almost always worth the extra two minutes.
Differences Across Excel Platforms 🖥️
Behavior varies depending on where you're running Excel:
- Excel for Windows — Full support for all three methods above
- Excel for Mac — Native histogram chart supported in recent versions; ToolPak available but interface differs slightly
- Excel Online (browser) — Limited chart customization; bin controls may not be available depending on subscription tier
- Excel Mobile — Chart viewing only; histogram creation not fully supported
The version and platform you're working with determines which method is actually available to you — and how much control you'll have over the final output.
Getting the histogram right depends on more than just following the steps. Bin sizing, dataset characteristics, and the version of Excel in front of you all push the result in different directions. What works cleanly for one dataset or workflow can produce a misleading or incomplete chart in another context.