Easy Tutorial on Building Histograms with Microsoft Excel

Easy Tutorial on Building Histograms with Microsoft Excel

Daniel Lv12

Easy Tutorial on Building Histograms with Microsoft Excel

Histograms are a useful tool in frequency data analysis, offering users the ability to sort data into groupings (called bin numbers) in a visual graph, similar to a bar chart. Here’s how to create them in Microsoft Excel.

If you want to create histograms in Excel, you’ll need to use Excel 2016 or later. Earlier versions of Office (Excel 2013 and earlier) lack this feature.

Related: How to Find Out Which Version of Microsoft Office You’re Using (and Whether it’s 32-bit or 64-bit)

How to Create a Histogram in Excel

Put simply, frequency data analysis involves taking a data set and trying to determine how often that data occurs. You might, for instance, be looking to take a set of student test results and determine how often those results occur, or how often results fall into certain grade boundaries.

Histograms make it easy to take this kind of data and visualize it in an Excel chart.

You can do this by opening Microsoft Excel and selecting your data. You can select the data manually, or by selecting a cell within your range and pressing Ctrl+A on your keyboard.

A selected data range in Microsoft Excel

With your data selected, choose the “Insert” tab on the ribbon bar. The various chart options available to you will be listed under the “Charts” section in the middle.

Click the “Insert Statistic Chart” button to view a list of available charts.

Tap Insert > Insert Statistic Chart

In the “Histogram” section of the drop-down menu, tap the first chart option on the left.

Tap the Histogram icon to insert a histogram chart

This will insert a histogram chart into your Excel spreadsheet. Excel will attempt to determine how to format your chart automatically, but you might need to make changes manually after the chart is inserted.

BLUETTI NEW LAUNCH AC240

Formatting a Histogram Chart

Once you’ve inserted a histogram into your Microsoft Excel worksheet, you can make changes to it by right-clicking your chart axis labels and pressing the “Format Axis” option.

Right-click your chart axis and click Format Axis to edit your data groupings

Excel will attempt to determine the bins (groupings) to use for your chart, but you might need to change this yourself. For instance, for a list of student test results out of 100, you might prefer to group the results into grade boundaries that appear in groups of 10.

You can leave Excel’s bin grouping choice by leaving the “By Category” option intact under the “Format Axis” menu that appears on the right. If you want to change these settings, however, switch to another option.

For instance, “By Category” will use the first category in your data range to group data. For a list of student test results, this would separate each result by student, which wouldn’t be as useful for this kind of analysis.

A histogram with bins grouped by category

Using the “Bin Width” option, you can combine your data into different groups.

Referring to our example of student test results, you could group these into groups of 10 by setting the “Bin Width” value to 10.

An Excel histogram with bin groupings grouped by bin width

The bottom axis ranges start with the lowest number. The first bin grouping, for instance, is displayed as “[27, 37]“ while the largest range ends with “[97, 107],” despite the maximum test result figure remaining 100.

The “Number Of Bins” option can work in a similar way by setting a firm number of bins to show on your chart. Setting 10 bins here, for instance, would also group results into groups of 10.

For our example, the lowest result is 27, so the first bin starts with 27. The highest number in that range is 34, so the axis label for that bin is displayed as “27, 34.” This ensures as equal distribution of bin groupings as possible.

An Excel histogram, with bin groupings grouped by number of bins


EmEditor is a fast, lightweight, yet extensible, easy-to-use text editor, code editor, CSV editor, and large file viewer for Windows. Both native 64-bit and 32-bit builds are available, and moreover, the 64-bit includes separate builds for SSE2 (128-bit), AVX-2 (256-bit), and AVX-512 (512-bit) instruction sets. New versions support AI-assisted writing.

For the student results example, this may not be the best option. If you want to ensure that a set number of bin groupings are always displayed, however, this is the option you’d need to use.

You can also split data into two with overflow and underflow bins. For instance, if you wanted to carefully analyze data under or above a certain number, you could tick to enable the “Overflow Bin” option and set a figure accordingly.

For example, if you wanted to analyze student pass rates below 50, you could enable and set the “Overflow Bin” figure at 50. Bin ranges below 50 would still be displayed, but data over 50 would be grouped in the appropriate overflow bin instead.

This works in combination with other bin grouping formats, such as by bin width.

An Excel histogram with an overflow bin figure enabled

The same works the other way for underflow bins.

For instance, if a failure rate is 50, you could decide to set the “Underflow Bin” option to 50. Other bin groupings would display as normal, but data below 50 would be grouped in the appropriate underflow bin section.

An Excel histogram with an underflow bin grouping

You can also make cosmetic changes to your histogram chart, including replacing the title and axis labels, by double-clicking those areas. Further changes to the text and bar colors and options can be made by right-clicking the chart itself and selecting the “Format Chart Area” option.

To make cosmetic changes to an Excel histogram, right-click and press the Format Chart Area button

Standard options for formatting your chart, including changing the border and bar fill options, will appear in the “Format Chart Area” menu on the right.

  • Title: Easy Tutorial on Building Histograms with Microsoft Excel
  • Author: Daniel
  • Created at : 2024-08-27 23:57:29
  • Updated at : 2024-08-28 23:57:29
  • Link: https://win-answers.techidaily.com/easy-tutorial-on-building-histograms-with-microsoft-excel/
  • License: This work is licensed under CC BY-NC-SA 4.0.