The fastest way to build a histogram in Excel

A histogram in Excel is a chart that groups your numbers into ranges and shows how many values fall into each range. Excel has a built-in histogram tool that does this automatically — you select your data, click Insert, choose Chart, and pick the Histogram option. The chart appears on your spreadsheet within seconds, and you can adjust the ranges (called bins) if the default grouping doesn't match what you're looking for.

The process works the same way whether you're using Excel on Windows, Mac, or the web version. You don't need to manually sort or count anything — Excel handles the grouping for you.

Key Takeaways

  • Select your data column first, then go to Insert > Chart and choose the Histogram option from the chart types.
  • Excel automatically groups your numbers into bins (ranges), but you can change the bin width or number of bins by right-clicking the horizontal axis.
  • A histogram works best with continuous numerical data like test scores, heights, or sales amounts — not with categories or text.
  • You can format the histogram like any other Excel chart by changing colors, titles, and axis labels through the Chart Design tab.

Selecting and preparing your data

Before you create a histogram, your data needs to be in a single column with numbers only. If your column has a header (like "Test Scores" at the top), that's fine — Excel will recognize it. The data should be continuous numbers: ages, weights, temperatures, sales figures, or test results. Histograms don't work well with categories like "red," "blue," "small," or "large."

Remove any blank cells in the middle of your data. If you have data in column A from row 1 to row 50, but row 25 is empty, click on that empty cell and delete it so your numbers are continuous. This prevents Excel from misinterpreting gaps as the end of your dataset.

You don't need to sort the numbers — Excel will do that automatically when it builds the histogram. You also don't need to count how many values fall into each range. Just make sure all your numbers are in one column and nothing else is mixed in.

Creating the histogram through the Insert menu

Click on any cell in your data column to select it. You don't have to highlight the entire column — Excel will find the data automatically. Then go to the Insert tab at the top of the ribbon and click Chart.

A dialog box opens showing different chart types. Look for Histogram in the list on the left side. Click it, and you'll see histogram options appear. Choose the basic histogram (the first option), then click OK. Excel creates the chart and places it on your spreadsheet.

If you're using Excel on the web, the steps are identical: Insert > Chart, then select Histogram from the chart type list.

Understanding and adjusting the bins

When Excel creates your histogram, it automatically divides your data into groups called bins. Each bin represents a range of numbers, and the height of each bar shows how many values fall into that range. By default, Excel chooses the bin size based on your data, but you may want to change it.

To adjust the bins, right-click on the horizontal axis (the bottom numbers of your chart) and select Format Axis. A panel opens on the right side. Under "Bins," you can choose to set a specific bin width (the size of each range) or set the number of bins you want. For example, if your data ranges from 0 to 100 and you want bins of 10, set the bin width to 10. If you want exactly 5 bins, set the number of bins to 5. Click outside the panel when you're done, and the chart updates.

If the default bins look reasonable, you don't have to change them. The goal is to show the shape of your data — whether it clusters in the middle, spreads evenly, or has multiple peaks. Experiment with different bin sizes to see which one tells the clearest story.

Formatting titles, labels, and colors

Once your histogram is created, you can customize how it looks. Click on the chart to select it, and the Chart Design tab appears at the top. From here, you can change the chart style (colors and layout) by clicking one of the preset designs.

To add or edit a title, click the chart, then click the Chart Elements button (the plus sign icon next to the chart). Check the box next to Chart Title, and a title box appears at the top of the chart. Click the title text to edit it. You can also add axis titles the same way — check Axis Titles to label what your horizontal and vertical axes represent.

To change colors, right-click on one of the bars in the histogram and select Format Data Series. A panel opens where you can pick a new fill color. You can also change the outline color of the bars or make them transparent. These changes are purely visual and don't affect your data.

Moving and resizing your histogram

Your histogram appears as a floating object on your spreadsheet. To move it, click on the chart and drag it to a new location. To resize it, click the chart and drag one of the corner handles outward to make it larger or inward to make it smaller. Dragging a side handle stretches it in one direction only.

If you want the histogram on a separate sheet, right-click the chart and select Move Chart. Choose whether to place it on a new sheet or move it to a different existing sheet. This is useful if your spreadsheet is crowded or if you want to print the chart on its own page.

Common problems and fixes

If your histogram doesn't appear or looks wrong, the most common cause is that your data contains text, blank cells, or non-numeric values. Go back to your data column and check for any cells that aren't numbers. Delete any blank rows, and make sure headers are actual text labels, not numbers mixed with text.

If the bins look too wide or too narrow, adjust them by right-clicking the horizontal axis and changing the bin width or number of bins. If your data has extreme outliers (one very large or very small number), they can stretch the chart and make other bars hard to see. Consider whether that outlier is a real data point or a mistake — if it's a mistake, delete it.

If you want to update the histogram with new data, you don't have to recreate it. Just add new numbers to the bottom of your original data column, and the chart updates automatically. If you delete rows from your data, the chart updates too.

Frequently Asked Questions

Can I create a histogram from data in multiple columns?

No. A histogram requires data in a single column. If your data is spread across multiple columns, copy it into one column first, then create the histogram. You can delete the copied column afterward if you don't need it.

What's the difference between a histogram and a bar chart?

A bar chart shows individual categories (like "January," "February," "March"), while a histogram groups continuous numbers into ranges. Use a histogram for data like ages or test scores. Use a bar chart for categories or comparisons between named groups.

Can I change the histogram to show percentages instead of counts?

Excel histograms show counts by default. To show percentages, right-click the vertical axis and select Format Axis. Under "Axis Options," you can adjust the scale, but Excel doesn't have a built-in percentage toggle for histograms. An alternative is to create a bar chart instead, which has more formatting options.

What if my data has negative numbers?

Histograms work fine with negative numbers. Excel will create bins that span from your lowest negative number to your highest positive number. The chart displays normally, and you can adjust the bins the same way as with all-positive data.

How do I delete a histogram I created?

Click on the chart to select it, then press Delete. The chart disappears, but your original data remains untouched. If you want to keep the data but remove the chart, this is the fastest way.