In Excel: select numeric values and choose Insert ▸ Statistic Chart ▸ Histogram. In Windows desktop Excel, right-click the horizontal axis ▸ Format Axis ▸ Axis Options to set a positive Bin width or a Number of bins.
On this page7
Put observations in one numeric column without totals. For the worked example, enter the ten delivery-day values in A2:A11.
Select A2:A11 and choose Insert ▸ Statistic Chart ▸ Histogram. If you already have a chart, first confirm its chart type is Histogram rather than an ordinary column chart.
In Windows desktop Excel, right-click the horizontal axis labels and choose Format Axis ▸ Axis Options. Selecting the vertical frequency axis or the bars opens different settings.
Choose Bin width and enter 2. Set Underflow bin to 2 and Overflow bin to 6. Use a positive number; the width has the same units as the source values.
Check the four frequencies against 2, 4, 3 and 1. Their sum should equal the ten numeric source observations, including the values in the end bins.
For a target bar count, choose Number of bins instead of Bin width. Keep the same boundaries when comparing separate groups, and label the chart with the measured unit and period.
What this does
A histogram counts observations within numeric intervals. Bin width is the size of an interval in the units of the data: width 2 means two delivery days per interval, not two deliveries per bar. Number of bins asks Excel to divide the data into that many intervals, including any underflow and overflow bins. Choose the setting that answers the question you need to check. Underflow groups values less than or equal to its threshold; overflow groups values greater than its threshold. These cutoffs can keep outliers from stretching the main scale. The chart frequency should still account for every numeric observation. Gap Width in a column chart changes bar spacing, not the bin boundaries of a histogram. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “histogram using excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the outcome you expected before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a visual that makes the number obvious at a glance, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
Enter delivery days 1, 2, 3, 3, 4, 4, 5, 6, 6 and 9 in A2:A11. Insert a Histogram, set Bin width to 2, Underflow bin to 2 and Overflow bin to 6. The four groups are ≤2, (2,4], (4,6] and >6; their frequencies are 2, 4, 3 and 1, which sum to 10. The value 4 belongs to (2,4], and 6 belongs to (4,6]. Compare those counts with the source cells before changing the width. Removing the overflow threshold exposes more of the right tail; editing the source value 9 changes the data, while changing bin width only changes how the same observations are grouped. Checking the frequency total and interval boundaries prevents a formatting choice from being mistaken for a change in the underlying observations. Set comparable bins before drawing conclusions about spread, clusters or outliers. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. If you take one thing from this page on “histogram using excel”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.
Common mistakes
- Selecting the vertical axis and looking for Bin width there. Bin controls belong to the horizontal numeric axis of a Histogram chart.
- Changing Gap Width in a column chart and expecting the data intervals to change; bar spacing and histogram bins are different settings.
- Leaving totals or summary rows inside the selected data.
- Reading a bin boundary as an extra observation. With underflow 2, the value 2 belongs to the underflow bin, and overflow 6 includes values strictly greater than 6.
- Comparing two distributions with different widths or cutoffs, which makes identical frequencies appear different.
Frequently asked questions
What is a histogram used for?
It shows the distribution of numeric values by counting how many fall into each interval.
How do I change histogram bin size or width?
In Windows desktop Excel, right-click the horizontal axis, select Format Axis ▸ Axis Options, choose Bin width and enter a positive value. Choose Number of bins when the desired number of intervals matters more than their width.
Why can I not find Bin width in Format Axis?
Check that the chart type is Histogram and that you selected the horizontal axis labels. A standard column chart and the vertical frequency axis do not offer the same bin settings.
Can I change histogram bins in Excel for the web on a Chromebook?
Microsoft documents creating a web histogram with Insert ▸ Statistical ▸ Histogram. Its web instructions do not establish the Windows Format Axis bin-editing workflow. If those controls are unavailable in your browser, use desktop Excel to set the bins or build an explicit frequency table with the boundaries you need; the browser version is not Windows desktop Excel.
Histogram or bar chart?
Use a histogram for numeric intervals; use a bar chart for separate categories.