Excel does not provide a true Histogram chart as a PivotChart type. You can, however, group numeric values into bins in a PivotTable and plot their counts in a PivotChart, creating a useful histogram-style frequency chart that updates when you refresh the PivotTable.
What Excel means by a PivotChart histogram
A histogram shows how many numerical observations fall within successive ranges, or bins. For example, it might show how many delivery times were under 10 minutes, from 10 to under 20 minutes, and so on. The columns touch because the horizontal axis represents continuous ranges, not unrelated categories.
A PivotChart is a chart connected to a PivotTable. It lets you rearrange fields, filter categories, and summarize records without rebuilding a chart from scratch. Excel supports many PivotChart types, but its built-in statistical Histogram chart is not available as a PivotChart type. That distinction matters: selecting a PivotChart and trying to change its type to Histogram will not turn it into Excel’s native histogram.
The practical workaround is to make the PivotTable calculate a count for each numeric interval, then display those counts with a clustered-column PivotChart. The result can look and behave like a histogram, although the intervals are PivotTable categories rather than the bins controlled by the dedicated Histogram chart.
Build a histogram-style PivotChart with grouped values
In Excel for Microsoft 365 on Windows, begin with one clean column of numeric observations and a header, such as Measurement. Each row should represent one observation. Then create the PivotTable and configure its fields:
- Select a cell in the data and choose Insert > PivotTable. Confirm the table or range and choose where to place the PivotTable.
- In the PivotTable Fields pane, drag Measurement to Rows and also to Values.
- If the Values area shows Sum of Measurement, open its drop-down, choose Value Field Settings, select Count, and choose OK. A histogram needs the number of records in each bin, not their sum.
- Right-click a numeric item in the PivotTable row labels and choose Group.
- In the Grouping dialog, set Starting at, Ending at, and By. For example, use 0, 50, and 10 to create intervals of 10 units across that range. Choose OK.
- Select a cell in the PivotTable and choose PivotTable Analyze > PivotChart. Choose Column, then Clustered Column, and confirm.
The group settings define the interval size and the displayed span. Pick a starting point and interval that make sense for the measurement and keep the chart readable. If the data includes observations beyond the selected range, review the PivotTable after grouping to check how Excel has handled the endpoints and any outside values.
Worked example: count measurements in ten-unit bins
Suppose a Measurement column contains these 20 observations: 4, 7, 9, 11, 13, 14, 18, 19, 21, 22, 24, 26, 27, 29, 31, 33, 34, 36, 38, and 41. Put Measurement in both the PivotTable Rows and Values areas, set the Values summary to Count, then group the row field from 0 to 50 by 10.
The resulting frequency counts should add up to 20. The bins contain 3 observations from 0 to under 10, 5 from 10 to under 20, 6 from 20 to under 30, 5 from 30 to under 40, and 1 from 40 to under 50. Excel’s displayed group labels can be read as successive intervals; do not interpret adjacent labels as ranges that both include their shared boundary. A value exactly on a boundary belongs to one group, not both.
This example also shows why Count matters. If the Values field remains set to Sum, Excel will add the measurements within each group. That answers a different question and produces a chart of totals, not a frequency distribution. For records with a separate ID field, counting IDs is another sound choice, provided every observation has an ID.
Make the columns look like histogram bars
A clustered-column PivotChart initially leaves space between columns, as it would for ordinary categories. To make the display more histogram-like, select a column, right-click, and choose Format Data Series. Under Series Options, reduce Gap Width, often to 0%. The columns then meet, visually emphasizing adjacent ranges. This formatting changes appearance only; it does not change the bin definitions or the counts.
Give the chart a descriptive title that states the measure and, if useful, the bin width, such as “Delivery time frequency (10-minute bins).” Label the horizontal axis with the units and the vertical axis as a count or frequency. If the chart is crowded by PivotChart field buttons, use PivotChart Analyze > Field Buttons > Hide All. Hiding those buttons does not remove the PivotTable fields or prevent filtering through the PivotTable.
Check that the bins appear in ascending numeric order and that the chart has no misleading gaps or extra categories. Consider whether zero-count bins should remain visible: retaining them can communicate the full range, while omitting them can make the displayed distribution easier to scan but may conceal empty intervals.
When to use Excel’s native Histogram chart instead
If you want Excel’s built-in histogram behavior, select the original numeric observations and choose Insert > Insert Statistic Chart > Histogram. This creates a regular chart, not a PivotChart. To control the intervals, right-click the horizontal axis, choose Format Axis, and use the bin settings under Axis Options. Depending on the chart, you can set a bin width or number of bins and configure overflow or underflow bins.
A native Histogram chart is usually the better fit when the main task is visualizing a distribution and you want to adjust bins through axis options. A PivotChart is often preferable when the data needs interactive PivotTable filtering, such as comparing a measurement distribution by region or product. You can add a category field to the PivotTable and use it to filter or split the counts, but the result remains a PivotTable-based chart rather than the native statistical chart.
Another option is Excel’s Analysis ToolPak Histogram tool, which produces a frequency table from raw data and specified bin limits. It can be useful when you need a frequency output alongside a chart, but it is not a PivotChart and does not have PivotTable field controls. These approaches answer related questions, but they are not interchangeable in how they define bins or respond to filtering.
Refresh behavior and keeping the chart current
PivotCharts reflect their PivotTable’s summarized data. If the source records change, refresh the PivotTable using Data > Refresh All, or right-click the PivotTable and choose Refresh. The connected PivotChart updates with the refreshed summary.
For a source that will grow, format the source range as an Excel Table before creating the PivotTable: select the data and choose Insert > Table. A PivotTable based on that table can include newly added table rows after a refresh. If the PivotTable instead uses a fixed cell range, records added outside that range may not be included; you may need to adjust the source using PivotTable Analyze > Change Data Source and refresh.
Refresh is not the same as changing the bin design. If you want a different interval width or range, right-click a grouped label and choose Ungroup, then group the numeric field again with the new settings. Before sharing a chart, refresh it and verify that the source range, bin limits, and observation count still match the current data.
Common problems and how to fix them
- Group is unavailable or grouping fails: Check for blank cells, text entries, errors, or numbers stored as text in the field. Numeric grouping needs a consistently numeric field. Clean or convert the source values, then refresh and try again.
- The chart shows sums instead of frequencies: Open Value Field Settings and change the summary to Count. Check that the chosen field is populated for every record you intend to count.
- Some observations seem missing: Check the chosen start and end values, inspect any outside or blank categories, and confirm the PivotTable source includes all rows. Values beyond the selected grouped range need particular attention.
- Columns have gaps: Reduce Gap Width in Format Data Series. Remember that this changes the visual spacing, not the underlying classification.
- The frequencies look unexpectedly small: Review report filters, slicers, and hidden or filtered source records. Also confirm that a field placed in the Values area is being counted in the way you expect.
- New rows do not appear: Refresh the PivotTable and verify its source. A fixed source range may need to be expanded; an Excel Table is generally easier to maintain as records are appended.
Choosing between a PivotChart and a histogram
Choose based on what you need the chart to do, rather than on whether the bars touch. A grouped PivotChart is useful when you want PivotTable summaries, interactive filters, or a distribution that can be examined alongside other categories. A native Histogram chart is a better choice when you want Excel’s statistical-chart bin controls applied directly to the raw numeric observations.
For a quick decision, consider these questions:
- Do you need PivotTable filters or a PivotChart connected to other PivotTable summaries? Use grouped numeric bins and a column PivotChart.
- Do you mainly need to explore bin width and distribution shape? Use the native Histogram chart.
- Do you need a frequency table that can be copied or analyzed separately? Consider the Analysis ToolPak or a PivotTable, depending on whether you need interactive filtering.
- Will the source grow or be updated? Use an Excel Table as the source where practical, and include refresh and range checks in your workflow.
Whichever route you take, state the bin width and units clearly. Two histograms of the same observations can look quite different if they use different interval widths or starting points, so readers need that context to interpret comparisons fairly.
Frequently Asked Questions
Can you create a Histogram chart directly from a PivotTable?
Not as Excel’s native Histogram chart type. Build a histogram-style PivotChart by grouping the numeric PivotTable field into bins, counting records in each group, and charting those counts with clustered columns.
How do I change the bin size in a PivotChart histogram?
Right-click a grouped numeric row label in the PivotTable, choose Group, and change the By value. If necessary, ungroup first and then set the start, end, and interval again.
Why can’t I group the numbers in my PivotTable?
Look for blanks, errors, text mixed into the numeric field, or numbers stored as text. Correct the source field, refresh the PivotTable, and retry grouping.
Should histogram columns have gaps?
Usually, histogram bars touch because neighboring bins represent adjacent ranges. In a column PivotChart, reduce Gap Width in Format Data Series to make them touch; this is a visual setting and does not alter the counts.
Will a PivotChart histogram update when I add data?
It updates after the PivotTable is refreshed, provided the new records are included in the PivotTable source. An Excel Table can make an expanding source easier to manage, but you still need to refresh.
Related
- Excel PivotChart Without a PivotTable: What Actually Works
- Excel Cell Dropdown: Create a Pick List and Use It
- Excel Consolidate Rows With the Same Value
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Google Sheets Distribution Charts: Types and SetupA Google Sheets distribution chart is usually a histogram: it groups numerical values into ranges, or bins, and…
- Copy Sparklines from Excel to PowerPoint: Best MethodsTo copy sparklines from Excel to PowerPoint, select the cells that contain them, use Excel’s Home > Copy…
- Excel Pivot Chart Multiple Lines: How to Create ThemYes. To show multiple lines in an Excel PivotChart, create a PivotChart from your PivotTable, choose a line…
- Excel Line Chart Data Range: How to Set ItIn Excel for Microsoft 365 on Windows, select the cells you want to chart—including the category labels and…
- Excel Horizontal Waterfall Chart: How to Build OneExcel does not provide a horizontal orientation for its built-in Waterfall chart: the native chart displays changes as…
- Excel Pie Chart: Count Occurrences for Each CategoryYes. To make an Excel pie chart count occurrences, first summarize how many times each category appears, then…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.