How to Adjust Histogram X-Values in Excel

Charts & pivot tables · Updated November 3, 2026

How to Adjust Histogram X-Values in Excel

To adjust a histogram’s x-values in Excel for Microsoft 365 on Windows, select the horizontal axis, open Format Axis, and change the bin width or number of bins under Axis Options. This changes how Excel groups your numeric data along the x-axis; it does not alter the original values. You will need a column of numeric data and an Excel histogram chart, or you can create one from your data first.

What You’ll Need

  • A column of numeric values, such as test scores, delivery times, or measurements. Remove or account for text entries and blanks before interpreting the chart.
  • Excel for Microsoft 365 on Windows. The built-in Histogram chart and bin controls are also available in recent desktop versions of Excel, though ribbon labels or chart formatting options can vary slightly.
  • A clear idea of the interval size you want to show. For example, scores grouped in steps of 10 are easier to explain than an arbitrary interval such as 7.43.

Step-by-Step

  1. Select the data or an existing histogram. If you already have a histogram, click it once so Excel displays the chart tabs, then continue to step 3. To create one, select the numeric cells, including a heading if present. Avoid selecting unrelated columns, totals, or labels that are not part of the measurements.
  2. Insert a histogram if you do not have one. On the ribbon, choose Insert > Insert Statistic Chart > Histogram. Excel creates a chart and chooses an initial bin arrangement automatically. If the Histogram option is unavailable, check that your selection contains numeric data and that you are using a desktop Excel version that supports this chart type.
  3. Select the horizontal axis. Click the labels along the bottom of the chart—the ranges or categories representing the data values. Make sure the horizontal axis, not the vertical frequency axis or the chart area, is selected. If selecting it is difficult, click the chart and use Format > Current Selection to choose the horizontal axis from the chart elements list.
  4. Open the axis formatting controls. Right-click the selected horizontal axis and choose Format Axis. The Format Axis pane opens. On Windows, you can also select the axis and use Chart Format > Format Selection when that command appears on the ribbon. In the pane, select Axis Options if it is not already active.
  5. Set a bin width to control the x-axis intervals. Under Bins, select Bin width and enter a number that makes sense for your data. For example, if your values are exam scores from 0 to 100 and you want intervals of 10 points, enter 10. Excel redraws the histogram using bins of that width. The width is measured in the same units as the source values: a width of 10 means 10 points, 10 dollars, or 10 seconds, depending on what your column contains.
  6. Or choose the number of bins. If you know how many bars you want rather than the size of each interval, select Number of bins and enter a whole number, such as 8. Excel divides the data range into that many groups. The resulting interval width depends on the spread of the values, so the bins may not have the round-number boundaries you would get by specifying a width directly. Choose one method at a time and compare the chart before deciding which communicates the pattern more clearly.
  7. Set an end bin if you need to group extremes. In the same Bins area, an Overflow bin groups values above a threshold into one final bar. An Underflow bin groups values at or below a threshold into one initial bar. Select the relevant option and enter the threshold. For example, an overflow bin at 90 can make it easier to show all scores above 90 together. Check the displayed ranges carefully because the threshold changes how the edge values are grouped.
  8. Review the chart and refine it. Close the pane or click elsewhere, then check that the axis labels and bar heights tell the story you intend. If the labels are crowded, make the chart wider, reduce the number of bins, or use a larger bin width. If the chart looks too coarse, use a smaller width or more bins. Keep the original data unchanged while you compare settings.
  9. Optionally change how the axis labels look. To change the number format rather than the bins, select the horizontal axis and open Format Axis. Expand Number, choose a suitable category such as Number, and set decimal places or a number format. This changes the label display; it does not change the values or the bin boundaries. If the Number controls are unavailable for the selected chart element, confirm that you selected the axis labels.

Mac and web note: In Excel for Mac, select the histogram axis, Control-click or right-click it, and choose Format Axis; use the axis options in the formatting pane to set the bins. The pane layout can differ from Windows. Excel for the web may offer fewer chart-formatting controls, depending on the current feature set. If you cannot find the bin settings in the browser, open the workbook in the desktop app and make the change there.

Common Mistakes

Confusing bin width with the axis scale. A histogram’s x-axis represents value ranges grouped into bins. Changing the bin width or number of bins changes those groups and can change the shape of the chart. It is not the same as setting minimum and maximum bounds on a conventional value axis. To change which measurements are included, edit or filter the source data; to change the grouping, edit the bin settings.

Formatting the wrong axis. The vertical axis usually shows counts or frequencies, while the horizontal axis shows the bins. If you change the vertical axis maximum, you change the height scale, not the x-values. Select the bottom labels and verify that the Format Axis pane is showing bin controls before editing.

Entering an interval in the wrong units. If the source values are stored as decimals from 0 to 1, entering a bin width of 10 will not create ten-percent intervals. Likewise, dates are stored as serial numbers in Excel. Check the actual values and their units before choosing a width. A chart label formatted as a date does not necessarily mean the underlying values are ordinary whole numbers.

Choosing too many bins because the chart looks more detailed. Very narrow bins can make random variation look like a meaningful pattern, especially with a small data set. Conversely, too few bins can hide clusters or outliers. Try a couple of sensible settings and explain the chosen interval when you share the chart.

Assuming the chart changed the data. Bin settings affect the visual grouping, not the cells in your data column. If a measurement itself is wrong, correct the source value. Do not try to fix an incorrect measurement by changing a bin boundary.

Tips

Choose an interval that matches the way someone would naturally discuss the values. For an age distribution, whole-year or five-year intervals may be easy to interpret; for long service times, larger intervals may be more useful. The best choice depends on the range, the number of observations, and what the chart needs to reveal.

Keep the bin width consistent when comparing histograms. If two groups use different intervals, their bar heights may not be directly comparable, even if the charts look similar. Use the same width and, where appropriate, the same underflow and overflow thresholds for both charts.

Give the chart a descriptive title and label the measurement units. A title such as “Delivery time in minutes” helps readers interpret a bin that runs from 20 to 30. If the chart is used in a report, state the bin width in a subtitle or nearby note so readers do not have to infer it from the labels.

Keep a copy of the original workbook or record the previous setting before making substantial changes. If you need to compare alternatives, duplicate the chart or create separate charts rather than repeatedly changing a chart used in a finished report. This makes it easier to see which grouping is clearest without changing the underlying observations.

Troubleshooting

There is no Bins section. First check that you inserted a Histogram chart rather than a column chart. A column chart can look similar but does not provide the histogram-specific bin controls. Select the chart and check its type from the chart design options; if needed, recreate it using Insert > Insert Statistic Chart > Histogram. Then select the bottom axis and reopen Format Axis.

The chart does not update after entering a width. Click another setting or press Enter after typing the value. Make sure the value is positive and appropriate for the data range. If the pane has reverted to a different option, select Bin width again and enter the value in that field. Also check whether the chart is based on the column you intended to select.

The bars or labels look unexpected. Check the source column for text stored as text, blanks, errors, or values with different units. Look for a misplaced decimal point or a value far outside the normal range, since one extreme observation can stretch the data range and make the other bins appear compressed. Correct the source data only when it is genuinely wrong; otherwise, consider an overflow or underflow bin to group the extremes.

The x-axis shows numbers or dates in an odd format. Inspect the underlying cell values and the axis number format. If dates are involved, determine whether the data are true Excel dates or text that resembles dates. Use Format Axis > Number to adjust how labels display, but remember that a number format does not change the bin width. If you need date-based groups such as months, consider whether a histogram is the right chart for your question.

The chart is hard to read after changing bins. Increase the chart width, reduce the number of bins, or use wider intervals so labels have room. If only the first or last bin seems wrong, inspect the underflow and overflow settings. If the result still does not match the intended categories, check whether the chart includes an unintended heading or another column in its source selection.

Frequently Asked Questions

How do I change the x-axis values on an Excel histogram?
Select the horizontal axis, choose Format Axis, and change Bin width or Number of bins under Axis Options. Use Number formatting only if you want to change how the labels appear.

Can I enter custom x-axis ranges?
You can control the grouping with a bin width, a number of bins, and optional underflow or overflow thresholds. The built-in histogram does not let you type an independent start and end value for every bin. If you require precise custom categories, create a frequency table using your chosen boundaries and chart that table instead.

What is the difference between bin width and number of bins?
Bin width specifies the size of each interval in the units of your data. Number of bins specifies how many groups Excel should make across the data range. A fixed width is useful when the interval itself has meaning; a fixed count is useful when you want to control the chart’s overall number of bars.

Why does changing the x-axis also change the bar heights?
The bar height is the number of observations that fall within each bin. When you change the boundaries, observations move between bins, so the counts change even though the source data do not. This is expected behavior for a histogram.

Can I change the x-axis without changing the data?
Yes. Changing the bin settings or the label number format changes the chart presentation, not the original cells. To change the actual measurements, edit the source data separately and check that the chart includes the corrected range.

Why can’t I find histogram bin settings in Excel for the web?
Some chart-formatting controls can differ or be unavailable in the browser. Open the workbook in Excel for Microsoft 365 desktop, select the histogram’s horizontal axis, and use Format Axis to access the bin options.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.