Chart & Visualization Issues

Create a Textbook-Style Frequency Distribution Histogram in Excel 2016

Kushani NimanthikaKushani Nimanthika Dec 2, 2026 869 views

Question details

Create and format a frequency distribution histogram in Excel 2016 to match a textbook example.

Create a Textbook-Style Frequency Distribution Histogram in Excel 2016
Product
Microsoft Excel 2016
Device & OS
not provided
Scenario
The user wants to group numerical data into class intervals and display the frequencies as a textbook-style histogram.
Observed behavior
The desired chart has labeled class intervals, touching bars, and axis scales and formatting that match the reference.
Before you start

Place the numerical observations in one column and identify the class boundaries shown in the textbook example. Use equal-width intervals for the column-chart method below, and make sure they cover all observations.

Solution 1Recommended

Build a Frequency Table and Format a Column Chart

Use this method when you need precise control over interval labels, frequencies, and chart formatting.

A column chart uses category labels rather than a continuous numerical horizontal axis. It can resemble a histogram when the intervals have equal widths and the bars touch.

The formula below includes each lower boundary and excludes each upper boundary. For example, the interval from 0 to 10 includes 0 but not 10.

1
Enter the data and boundaries

Enter observations in cells A2:A101. In columns C and D, enter the lower and upper boundaries for each class, such as 0 and 10, then 10 and 20.

2
Create interval labels

In E2, enter =C2&" to <"&D2, then fill the formula down beside every class. These labels identify the intervals on the horizontal axis.

3
Calculate frequencies

In F2, enter =COUNTIFS($A$2:$A$101,">="&C2,$A$2:$A$101,"<"&D2,$A$2:$A$101,"<>") and fill it down for all classes. Adjust the data range if your observations extend beyond row 101.

4
Insert the chart

Select the interval labels and frequencies in columns E and F, then choose Insert > Column or Bar Chart > Clustered Column.

5
Make the bars touch

Right-click a bar, choose Format Data Series, and set Gap Width to 0% under Series Options.

6
Match the textbook format

Use the Chart Elements button next to the chart to add or remove titles and gridlines. Right-click the vertical axis and choose Format Axis to adjust its bounds and units; edit the interval labels in column E if needed.

Build a Frequency Table and Format a Column Chart
Check the final boundary: A value equal to the final upper boundary is excluded by the formula. Add another interval or change the final row's upper-bound condition from "<" to "<=" if that endpoint must be included.
Create a histogram in WPS Spreadsheet

Build a Frequency Distribution Chart in WPS Spreadsheet

Use COUNTIFS and a column chart in WPS Spreadsheet to group observations into class intervals and format a textbook-style histogram.

  1. 1. Enter the data: Open WPS Spreadsheet and enter observations in A2:A101. Put class lower and upper boundaries in columns C and D.
  2. 2. Build the frequency table: In E2, enter =C2&" to <"&D2. In F2, enter =COUNTIFS($A$2:$A$101,">="&C2,$A$2:$A$101,"<"&D2,$A$2:$A$101,"<>"). Fill both formulas down for each class.
  3. 3. Insert a column chart: Select the labels and frequencies in columns E and F, then use Insert > Chart and choose a clustered column chart.
  4. 4. Format the histogram: Right-click a bar and open the data-series formatting options. Set the gap width to 0%, then use the chart and axis formatting options to add titles and adjust the scale.
Create interval frequencies with COUNTIFS and display them as touching barsOpen and edit Microsoft Excel XLSX and XLS filesCustomize chart titles, axis labels, and gridlinesUse a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

How do I make histogram bars touch in Excel 2016?

Right-click a bar in the column chart, choose Format Data Series, and set Gap Width to 0% under Series Options.

Will the chart update when I change the data?

Yes. The COUNTIFS formulas and chart update when values within the referenced range change. If you add data outside that range, extend the formula references to include it.

How can I include the highest value in the last class?

If the highest value equals the last upper boundary, change the final COUNTIFS upper-bound condition from "<"&D2 to "<="&D2, using the final class row's cell reference.

Can I use unequal class widths with this column-chart method?

A standard column chart gives each category the same width, so it will not represent unequal class widths accurately. Use equal-width classes for this method or choose a charting approach that represents interval widths explicitly.