Create histogram in excel

Excel for Microsoft 365 Word for Microsoft 365 Outlook for Microsoft 365 PowerPoint for Microsoft 365 Excel for Microsoft 365 for Mac Word for Microsoft 365 for Mac Outlook for Microsoft 365 for Mac PowerPoint for Microsoft 365 for Mac Excel for the web Excel 2021 Word 2021 Outlook 2021 PowerPoint 2021 Excel 2021 for Mac Word 2021 for Mac Outlook 2021 for Mac PowerPoint 2021 for Mac Excel 2019 Word 2019 Outlook 2019 PowerPoint 2019 Excel 2019 for Mac Word 2019 for Mac Outlook 2019 for Mac PowerPoint 2019 for Mac Excel 2016 Word 2016 Outlook 2016 PowerPoint 2016 Excel 2016 for Mac Excel 2013 Excel for iPad Excel for iPhone Excel 2010 Excel 2007 More…Less

A histogram is a column chart that shows frequency data.

Note: This topic only talks about creating a histogram. For information on Pareto (sorted histogram) charts, see Create a Pareto chart.

  1. Select your data.

    (This is a typical example of data for a histogram.)

    Data used to create the sample histogram above

  2. Click Insert > Insert Statistic Chart > Histogram.

    Histogram command reached from the Insert Statistic Chart button

    You can also create a histogram from the All Charts tab in Recommended Charts.

Tips: 

  • Use the Design and Format tabs to customize the look of your chart.

  • If you don’t see these tabs, click anywhere in the histogram to add the Chart Tools to the ribbon.

Design and Format tabs for the Chart Tools

  1. Right-click the horizontal axis of the chart, click Format Axis, and then click Axis Options.

    Format Axis command on shortcut menu

  2. Use the information in the following table to decide which options you want to set in the Format Axis task pane.

    Option

    Description

    By Category

    Choose this option when the categories (horizontal axis) are text-based instead of numerical. The histogram will group the same categories and sum the values in the value axis.

    Tip: To count the number of appearances for text strings, add a column and fill it with the value “1”, then plot the histogram and set the bins to By Category.

    Automatic

    This is the default setting for histograms. The bin width is calculated using Scott’s normal reference rule.

    Bin width

    Enter a positive decimal number for the number of data points in each range.

    Number of bins

    Enter the number of bins for the histogram (including the overflow and underflow bins).

    Overflow bin

    Select this check box to create a bin for all values above the value in the box to the right. To change the value, enter a different decimal number in the box.

    Underflow bin

    Select this check box to create a bin for all values below or equal to the value in the box to the right. To change the value, enter a different decimal number in the box.

    Format Axis task pane

Automatic option (Scott’s normal reference rule)   

Formula for Automatic option

Scott’s normal reference rule tries to minimize the bias in variance of the histogram compared with the data set, while assuming normally distributed data.

Overflow bin option   

Formula for Overflow bin option

Underflow bin option   

Formula for Underflow bin option

  1. Make sure you have loaded the Analysis ToolPak. For more information, see Load the Analysis ToolPak in Excel.

  2. On a worksheet, type the input data in one column, adding a label in the first cell if you want.

    Be sure to use quantitative numeric data, like item amounts or test scores. The Histogram tool won’t work with qualitative numeric data, like identification numbers entered as text.

  3. In the next column, type the bin numbers in ascending order, adding a label in the first cell if you want.

    It’s a good idea to use your own bin numbers because they may be more useful for your analysis. If you don’t enter any bin numbers, the Histogram tool will create evenly distributed bin intervals by using the minimum and maximum values in the input range as start and end points.

  4. Click Data > Data Analysis.

    Data Analysis and Solver

  5. Click Histogram > OK.

    Data Analysis dialog box

  6. Under Input, do the following:

    1. In the Input Range box, enter the cell reference for the data range that has the input numbers.

    2. In the Bin Range box, enter the cell reference for the range that has the bin numbers.

      If you used column labels on the worksheet, you can include them in the cell references.

      Tip: Instead of entering references manually, you can click Collapse button to temporarily collapse the dialog box to select the ranges on the worksheet. Clicking the button again expands the dialog box.

  7. If you included column labels in the cell references, check the Labels box.

  8. Under Output options, choose an output location.

    You can put the histogram on the same worksheet, a new worksheet in the current workbook, or in a new workbook.

  9. Check one or more of the following boxes:

    Pareto (sorted histogram) This shows the data in descending order of frequency.


    Cumulative Percentage
        This shows cumulative percentages and adds a cumulative percentage line to the histogram chart.


    Chart Output
        This shows an embedded histogram chart.

  10. Click OK.

    If you want to customize your histogram, you can change text labels, and click anywhere in the histogram chart to use the Chart Elements, Chart Styles, and Chart Filter buttons on the right of the chart.

  1. Select your data.

    (This is a typical example of data for a histogram.)

    Data used to create the sample histogram above

  2. Click Insert > Chart.

    Chart button in the Illustrations group on the Insert tab in Word

  3. In the Insert Chart dialog box, under All Charts, click Histogram , and click OK.

Tips: 

  • Use the Design and Format tabs on the ribbon to customize the look of your chart.

  • If you don’t see these tabs, click anywhere in the histogram to add the Chart Tools to the ribbon.

Design and Format tabs for the Chart Tools

  1. Right-click the horizontal axis of the chart, click Format Axis, and then click Axis Options.

    Format Axis command on shortcut menu

  2. Use the information in the following table to decide which options you want to set in the Format Axis task pane.

    Option

    Description

    By Category

    Choose this option when the categories (horizontal axis) are text-based instead of numerical. The histogram will group the same categories and sum the values in the value axis.

    Tip: To count the number of appearances for text strings, add a column and fill it with the value “1”, then plot the histogram and set the bins to By Category.

    Automatic

    This is the default setting for histograms.

    Bin width

    Enter a positive decimal number for the number of data points in each range.

    Number of bins

    Enter the number of bins for the histogram (including the overflow and underflow bins).

    Overflow bin

    Select this check box to create a bin for all values above the value in the box to the right. To change the value, enter a different decimal number in the box.

    Underflow bin

    Select this check box to create a bin for all values below or equal to the value in the box to the right. To change the value, enter a different decimal number in the box.

    Format Axis task pane

Follow these steps to create a histogram in Excel for Mac:

  1. Select the data.

    (This is a typical example of data for a histogram.)

    Data used to create the sample histogram above

  2. On the ribbon, click the Insert tab, then click  Statistical chart icon (Statistical icon) and under Histogram, select Histogram.

Tips: 

  • Use the Chart Design and Format tabs to customize the look of your chart.

  • If you don’t see the Chart Design and Format tabs, click anywhere in the histogram to add them to the ribbon.

To create a histogram in Excel 2011 for Mac, you’ll need to download a third-party add-in. See: I can’t find the Analysis Toolpak in Excel 2011 for Mac for more details.

In Excel Online, you can view a histogram (a column chart that shows frequency data), but you can’t create it because it requires the Analysis ToolPak, an Excel add-in that isn’t supported in Excel for the web.

If you have the Excel desktop application, you can use the Edit in Excel button to open Excel on your desktop and create the histogram.

Button to Edit in Excel

  1. Tap to select your data.

    Data used to create the sample histogram above

  2. If you’re on a phone, tap the edit icon Edit icon to show the ribbon. and then tap Home.

  3. Tap Insert > Charts > Histogram.

    If necessary, you can customize the elements of the chart.

  1. Tap to select your data.

    Data used to create the sample histogram above

  2. If you’re on a phone, tap the edit icon Edit icon to show the ribbon, and then tap Home.

  3. Tap Insert > Charts > Histogram.

To create a histogram in Excel, you provide two types of data — the data that you want to analyze, and the bin numbers that represent the intervals by which you want to measure the frequency. You must organize the data in two columns on the worksheet. These columns must contain the following data:

  • Input data    This is the data that you want to analyze by using the Histogram tool.

  • Bin numbers    These numbers represent the intervals that you want the Histogram tool to use for measuring the input data in the data analysis.

When you use the Histogram tool, Excel counts the number of data points in each data bin. A data point is included in a particular bin if the number is greater than the lowest bound and equal to or less than the greatest bound for the data bin. If you omit the bin range, Excel creates a set of evenly distributed bins between the minimum and maximum values of the input data.

The output of the histogram analysis is displayed on a new worksheet (or in a new workbook) and shows a histogram table and a column chart that reflects the data in the histogram table.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

See Also

Create a waterfall chart

Create a Pareto chart

Create a sunburst chart in Office

Create a box and whisker chart

Create a treemap chart in Office

Need more help?

Watch Video – 3 Ways to Create a Histogram Chart in Excel

A histogram is a common data analysis tool in the business world. It’s a column chart that shows the frequency of the occurrence of a variable in the specified range.

According to Investopedia, a Histogram is a graphical representation, similar to a bar chart in structure, that organizes a group of data points into user-specified ranges. The histogram condenses a data series into an easily interpreted visual by taking many data points and grouping them into logical ranges or bins.

A simple example of a histogram is the distribution of marks scored in a subject. You can easily create a histogram and see how many students scored less than 35, how many were between 35-50, how many between 50-60 and so on.

There are different ways you can create a histogram in Excel:

  • If you’re using Excel 2016, there is an in-built histogram chart option that you can use.
  • If you’re using Excel 2013, 2010 or prior versions (and even in Excel 2016), you can create a histogram using Data Analysis Toolpack or by using the FREQUENCY function (covered later in this tutorial)

Let’s see how to make a Histogram in Excel.

Creating a Histogram in Excel 2016

Excel 2016 got a new addition in the charts section where a histogram chart was added as an inbuilt chart.

In case you’re using Excel 2013 or prior versions, check out the next two sections (on creating histograms using Data Analysis Toopack or Frequency formula).

Suppose you have a dataset as shown below. It has the marks (out of 100) of 40 students in a subject.

Students Marks to create histogram in Excel 2016

Here are the steps to create a Histogram chart in Excel 2016:

  1. Select the entire dataset.
  2. Click the Insert tab.Insert Tab in the Excel Ribbon
  3. In the Charts group, click on the ‘Insert Static Chart’ option.Insert Static Chart Option in the Ribbon
  4. In the HIstogram group, click on the Histogram chart icon.Histogram Chart Option in the Ribbon

The above steps would insert a histogram chart based on your data set (as shown below).

Resulting Histogram Chart in Excel 2016

Now you can customize this chart by right-clicking on the vertical axis and selecting Format Axis.

Format Axis for Histogram Bin Options

This will open a pane on the right with all the relevant axis options.

Bin Options in the Histogram Chart in Excel 2016

Here are some of the things you can do to customize this histogram chart:

  1. By Category: This option is used when you have text categories. This could be useful when you have repetitions in categories and you want to know the sum or count of the categories. For example, if you have sales data for items such as Printer, Laptop, Mouse, and Scanner, and you want to know the total sales of each of these items, you can use the By Category option. It isn’t helpful in our example as all our categories are different (Student 1, Student 2, Student3, and so on.)
  2. Automatic: This option automatically decides what bins to create in the Histogram. For example, in our chart, it decided that there should be four bins. You can change this by using the ‘Bin Width/Number of Bins’ options (covered below).
  3. Bin Width: Here you can define how big the bin should be. If I enter 20 here, it will create bins such as 36-56, 56-76, 76-96, 96-116.Specifying Bin width in histogram chart
  4. Number of Bins: Here you can specify how many bins you want. It will automatically create a chart with that many bins. For example, if I specify 7 here, it will create a chart as shown below. At a given point, you can either specify Bin Width or Number of Bins (not both).Specifying Number of Bins in histogram chart
  5. Overflow Bin: Use this bin if you want all the values above a certain value clubbed together in the Histogram chart. For example, if I want to know the number of students that have scored more than 75, I can enter 75 as the Overflow Bin value. It will show me something as shown below.Overflow Bin Value in Histogram Excel 2016
  6. Underflow Bin: Similar to Overflow Bin, if I want to know the number of students that have scored less than 40, I can enter 4o as the value and show a chart as shown below.Underflow Bin Value in Histogram Excel 2016

Once you have specified all the settings and have the histogram chart you want, you can further customize it (changing the title, removing gridlines, changing colors, etc.)

Creating a Histogram Using Data Analysis Tool pack

The method covered in this section will also work for all the versions of Excel (including 2016). However, if you’re using Excel 2016, I recommend you use the inbuilt histogram chart (as covered below)

To create a histogram using Data Analysis tool pack, you first need to install the Analysis Toolpak add-in.

This add-in enables you to quickly create the histogram by taking the data and data range (bins) as inputs.

Installing the Data Analysis Tool Pack

To install the Data Analysis Toolpak add-in:

  • Click the File tab and then select ‘Options’.

Histogram in Excel - Options

  • In the Excel Options dialog box, select Add-ins in the navigation pane.

Histogram in Excel - Addins

  • In the Manage drop-down, select Excel Add-ins and click Go.

Histogram in Excel - Excel Addins

  • In the Add-ins dialog box, select Analysis Toolpak and click OK.

Histogram in Excel - Addins dialog box

This would install the Analysis Toolpak and you can access it in the Data tab in the Analysis group.

Histogram in Excel - Data Analysis Tab

Creating a Histogram using Data Analysis Toolpak

Once you have the Analysis Toolpak enabled, you can use it to create a histogram in Excel.

Suppose you have a dataset as shown below. It has the marks (out of 100) of 40 students in a subject.

Create Histogram in Excel - Dataset

To create a histogram using this data, we need to create the data intervals in which we want to find the data frequency. These are called bins.

With the above dataset, the bins would be the marks intervals.

You need to specify these bins separately in an additional column as shown below:

Create Histogram in Excel - bins

Now that we have all the data in place, let’s see how to create a histogram using this data:

  • Click the Data tab.
  • In the Analysis group, click on Data Analysis.

Histogram in Excel - Data Analysis Tab

  • In the ‘Data Analysis’ dialog box, select Histogram from the list.

Histogram in Excel - Data Analysis Dialog Box

  • Click OK.
  • In the Histogram dialog box:
    • Select the Input Range (all the marks in our example)
    • Select the Bin Range (cells D2:D7)
    • Leave the Labels checkbox unchecked (you need to check it if you included labels in the data selection).
    • Specify the Output Range if you want to get the Histogram in the same worksheet.  Else, choose New Worksheet/Workbook option to get it in a separate worksheet/workbook.
    • Select Chart Output.

Histogram in Excel - Histgram dialog box

  • Click OK.

This would insert the frequency distribution table and the chart in the specified location.

Histogram in Excel - frequency table

Now there are some things you need to know about the histogram created using the Analysis Toolpak:

  • The first bin includes all the values below it. In this case, 35 shows 3 values indicating that there are three students who scored less than 35.
  • The last specified bin is 90, however, Excel automatically adds another bin – More. This bin would include any data point which lies after the last specified bin. In this example, it means that there are 2 students who have scored more than 90.
    • Note that even if I add the last bin as 100, this additional bin would still be created.
  • This creates a static histogram chart. Since Excel creates and pastes the frequency distribution as values, the chart would not update when you change the underlying data. To refresh it, you’ll have to create the histogram again.
    • The default chart is not always in the best format. You can change the formatting like any other regular chart.
  • Once created, you can not use Control + Z to revert it. You’ll have to manually delete the table and the chart.

If you create a histogram without specifying the bins (i.e., you leave the Bin Range empty), it would still create the histogram. It would automatically create six equally spaced bins and used this data to create the histogram.

Creating a Histogram using FREQUENCY Function

If you want to create a histogram that is dynamic (i.e., updates when you change the data), you need to resort to formulas.

In this section, you’ll learn how to use the FREQUENCY function to create a dynamic histogram in Excel.

Again, taking the student’s marks data, you need to create the data intervals (bins) in which you want to show the frequency.

Create Histogram in Excel - Bins frequency

Here is the function that will calculate the frequency for each interval:

=FREQUENCY(B2:B41,D2:D8)

Since this is an array formula, you need to use Control + Shift + Enter, instead of just Enter.

Here are the steps to make sure you get the correct result:

  • Select all cells adjacent to the bins. In this case, these are E2:E8.
  • Press F2 to get into the edit mode for cell E2.
  • Enter the frequency formula: =FREQUENCY(B2:B41,D2:D8)
  • Hit Control + Shift + Enter.

Histogram in Excel - frequency function

With the result that you get, you can now create a histogram (which is nothing but a simple column chart).

Histogram in Excel - chart

Here are some important things you need to know when using the FREQUENCY function:

  • The result is an array and you can not delete a part of the array. If you need to, delete all the cells that have the frequency function.
  • When a bin is 35, the frequency function would return a result that includes 35. So 35 means score up to 35, and 50 would mean score more than 35 and up to 50.

Also, let’s say you want to have the specified data intervals till 80, and you want to group all the result above 80 together, you can do that using the FREQUENCY function. In that case, select one more cell than the number of bins. For example, if you have 5 bins, then select 6 cells as shown below:

Histogram in Excel - select one more than bin

FREQUENCY function would automatically calculate all the values above 80 and return the count.

Histogram in Excel - result when one more bin is selected

You May Also Like the Following Excel Tutorials:

  • Creating a Pareto Chart in Excel.
  • Creating a Gantt Chart in Excel.
  • Creating a Milestone Chart in Excel.
  • How to Make a Bell Curve in Excel.
  • How to Create a Bullet Chart in Excel.
  • How to Create a Heat Map in Excel.
  • Standard Deviation in Excel.
  • Area Chart in Excel.
  • Advanced Excel Charts.
  • Creating Excel Dashboards.


Download Article


Download Article

This wikiHow teaches you how to create a histogram bar chart in Microsoft Excel. A histogram is a column chart that displays frequency data, allowing you to measure things like the number of people who scored within a certain percentage on a test.

  1. Image titled Create a Histogram in Excel Step 1

    1

    Open Microsoft Excel. Its app icon resembles a white «X» on a green background. You should see the Excel workbook page open.

    • On a Mac, this step may open a new, blank Excel sheet. If so, skip the next step.
  2. Image titled Create a Histogram in Excel Step 2

    2

    Create a new document. Click Blank workbook in the upper-left corner of the window (Windows), or click File and then click New Workbook (Mac).

    Advertisement

  3. Image titled Create a Histogram in Excel Step 3

    3

    Determine both your smallest and your largest data points. This is important in helping figure out what your bin numbers should be and how many you should have.

    • For example, if your data range stretches from 17 to 225, your smallest data point would be 17 and the largest would be 225.
  4. Image titled Create a Histogram in Excel Step 4

    4

    Determine how many bin numbers you should have. Bin numbers are what sort your data into groups in the histogram. The easiest way to come up with bin numbers is by dividing your largest data point (e.g., 225) by the number of points of data in your chart (e.g., 10) and then rounding up or down to the nearest whole number, though you rarely want to have more than 20 or less than 10 numbers. You can use a formula to help if you’re stuck:[1]

    • Sturge’s Rule — The formula for this rule is K = 1 + 3.322 * log(N) where K is the number of bin numbers and N is the number of data points; once you solve for K, you’ll round up or down to the nearest whole number. Sturge’s Rule is best used for linear or «clean» sets of data.
    • Rice’s Rule — The formula for this rule is cube root (number of data points) * 2 (for a data set with 200 points, you would find the cube root of 200 and then multiply that number by 2). This formula is best used for erratic or inconsistent data.
  5. Image titled Create a Histogram in Excel Step 5

    5

    Determine your bin numbers. Now that you know how many bin numbers you have, it’s up to you to figure out the most even distribution. Bin numbers should increase in a linear fashion while including both the lowest and the highest data points.

    • For example, if you were creating bin numbers for a histogram documenting test scores, you would most likely want to use increments of 10 to represent the different grading brackets. (e.g., 59, 69, 79, 89, 99).
    • Increasing in sets of 10s, 20s, or even 100s is fairly standard for bin numbers.
    • If you have extreme outliers, you can either leave them out of your bin number range or tailor your bin number range to be low/high enough to include them.
  6. Image titled Create a Histogram in Excel Step 6

    6

    Add your data in column A. Type each data point into its own cell in column A.

    • For example, if you have 40 pieces of data, you would add each piece to cells A1 through A40, respectively.
  7. Image titled Create a Histogram in Excel Step 7

    7

    Add your bin numbers in column C if you’re on a Mac. Starting in cell C1 and working down, type in each of your bin numbers. Once you’ve completed this step, you can proceed with actually creating the histogram.

    • You’ll skip this step on a Windows computer.
  8. Advertisement

  1. Image titled Create a Histogram in Excel Step 8

    1

    Select your data. Click the top cell in column A, then hold down Shift while clicking the last column A cell that contains data.

  2. Image titled Create a Histogram in Excel Step 9

    2

    Click the Insert tab. It’s in the green ribbon that’s at the top of the Excel window. Doing so switches the toolbar near the top of the window to reflect the Insert menu.

  3. Image titled Create a Histogram in Excel Step 10

    3

    Click Recommended Charts. You’ll find this option in the «Charts» section of the Insert toolbar. A pop-up window will appear.

  4. Image titled Create a Histogram in Excel Step 11

    4

    Click the All Charts tab. It’s at the top of the pop-up window.

  5. Image titled Create a Histogram in Excel Step 12

    5

    Click Histogram. This tab is on the left side of the window.

  6. Image titled Create a Histogram in Excel Step 13

    6

    Select the Histogram model. Click the left-most bar chart icon to select the Histogram model (rather than the Pareto model), then click OK. Doing so will create a simple histogram with your selected data.

  7. Image titled Create a Histogram in Excel Step 14

    7

    Open the horizontal axis menu. Right-click the horizontal axis (e.g., the axis with numbers in brackets), click Format Axis… in the resulting drop-down menu, and click the bar chart icon in the «Format Axis» menu that appears on the right side of the window.

  8. Image titled Create a Histogram in Excel Step 15

    8

    Check the «Bin width» box. It’s in the middle of the menu.[2]

  9. Image titled Create a Histogram in Excel Step 16

    9

    Enter your bin number interval. Type into the «Bin width» text box the value of an individual bin number, then press Enter. Excel will automatically format the histogram to display the appropriate number of columns based on your bin number.

    • For example, if you decided to use bins that increase by 10, you would type in 10 here.
  10. Image titled Create a Histogram in Excel Step 17

    10

    Label your graph. This is only necessary if you want to add titles to your graph’s axes or the graph as a whole:

    • Axis Titles — Click the green to the right of the graph, check the «Axis Titles» box, click an Axis Title text box on the left or the bottom of the graph, and type in your preferred title.
    • Chart Title — Click the Chart Title text box at the top of the histogram, then type in the title that you want to use.
  11. Image titled Create a Histogram in Excel Step 18

    11

    Save your histogram. Press Ctrl+S, select a save location, enter a name, and click Save.

  12. Advertisement

  1. Image titled Create a Histogram in Excel Step 19

    1

    Select your data and the bins. Click the top value in cell A to select it, then hold down Shift while clicking the C cell that’s across from the bottom-most A cell that has a value in it. This will highlight all of your data and the corresponding bin numbers.

  2. Image titled Create a Histogram in Excel Step 20

    2

    Click Insert. It’s a tab in the green Excel ribbon at the top of the window.

  3. Image titled Create a Histogram in Excel Step 21

    3

    Click the bar chart icon. You’ll find this in the «Charts» section of the Insert toolbar. Doing so will prompt a drop-down menu.

  4. Image titled Create a Histogram in Excel Step 22

    4

    Click the «Histogram» icon. It’s the set of blue columns below the «Histogram» heading. This will create a histogram with your data and bin numbers.

    • Be sure not to click the «Pareto» icon, which resembles blue columns with an orange line.
  5. Image titled Create a Histogram in Excel Step 23

    5

    Review your histogram. Before saving, make sure that your histogram looks accurate; if not, consider adjusting the bin numbers and redoing the histogram.

  6. Image titled Create a Histogram in Excel Step 24

    6

    Save your work. Press Command+S, enter a name, select a save location if necessary, and click Save.

  7. Advertisement

Add New Question

  • Question

    The histograms I’m trying to represent have different class widths represented as different width blocks, and they are not replicating. How do I get different class widths?

    Community Answer

    You need to go to Setting > Option >Class and then choose your class.

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • Bins can be as wide or as narrow as you think they should be, so long as they both fit the data and don’t exceed the reasonable number of bins for your data set.

Thanks for submitting a tip for review!

Advertisement

  • Make sure your histogram makes sense before drawing any conclusion from it.

Advertisement

About This Article

Thanks to all authors for creating a page that has been read 1,249,784 times.

Is this article up to date?

Skip to content

How to Make a Histogram in Excel – and Adjust Bin Size (2023)

How to Make a Histogram in Excel – and Adjust Bin Size (2023)

We love how simple it is to create charts in Excel.

Like all others, making a histogram in Excel is similarly easy and fun. It helps you with data analysis, frequency distribution, and much more. 🎯

You can plot your data (very large ones, too) into a histogram in literally under a few seconds.

To learn what is a histogram, and how can you make and edit it in different ways – continue reading the article below.

Download our free sample workbook here to get your hands on a dataset to practice.

What is a histogram?

Before we narrate long and wordy definitions of what a histogram is, let’s just see what it looks like.

A histogram

Safe to say a histogram is more like a column/bar chart with each bar representing some numerical data. 📶

In a histogram, each bar represents a certain range for example 1-10, 11- 20, and so on. Excel calls this graphical representation of ranges ‘bins’.

On the y-axis (vertical axis), we plot the number of occurrences of that range in our dataset. Each bar represents the number of data points we have for each range in our data set.

How to create a histogram in Excel

Making a histogram in Excel is surprisingly easy as Excel offers an in-built histogram chart type.

To quickly see how you can make one, consider the data below.

Data in Excel

We have a group of children of different ages. A histogram can help us subgroup them based on their ages.

  1. Select the dataset.
Select the data
  1. Go to the Insert Tab > Charts > Recommended Charts.
Insert tab
  1. Select the tab “All Charts”.
All Charts
  1. Click on “Histogram” and choose the first chart type.
Selecting the chart type

And here comes a histogram for your data.

Cumulative Histogram in Excel

Excel has plotted age groups ( 7 to 17 years, 18 to 28 years, and so on) on the x-axis. The numbers are allocated on the y-axis.

The first bar (for 7 to 17 years) touches 2 on the y-axis. This tells that our dataset has 2 people that fall within this age range.

Kevin (15 years old) and Betty (7 years old). 👩🏼‍🤝‍👩🏼

 Bars connected to data

And so, you can readily see how many people we have in each age range.

Pro Tip!

You can also create a histogram chart through Excel’s Analysis Toolpak kit.

You can access it under the Data Tab > Analysis Group > Data analysis.

How to adjust bin sizes/intervals

Excel calls the range (like the age range 7 to 17 years) a bin. This bin size (age range) doesn’t necessarily have to be 10 years. You can set it to any interval – 15, 20, 30, or any number of years.

But how can you do that? Learn it here.

The above graph has the bin size set to 10. To change the bin size:

  1. Double-click on the graph. This will launch the Format pane to the right of your worksheet.
  2. Go to Horizontal Axis from the drop-down menu of options as shown below.
Format axis pane
  1. Click on the icon for Axis.
Bin width

Here you have the option for Bin Width.

  1. Change it to any value as desired.

For example, let’s set it to 15.

Setting the Bin Width to 15

Your histogram takes a whole new look like that.

Note how the bin sizes (age ranges) have now changed to 7 to 22 years, 22 to 37 years, and so on.

Why does the range start from 7 only and not a round number like maybe 5 or 0? 🤔

Take a quick look at our data set for this histogram. The smallest data point (age) that we have is 7, and so, that is where the range starts.

Kasper Langmann, Microsoft Office Specialist

Adjust the Number of Bins

In addition to the Bin size, you can also adjust the number of bins.

In this case, you fix the number of bins (bars) that you need on the graph, and Excel calculates the bin size itself.

  1. To do so, check the option for “Number of Bins”.
  2. Set the “Number of Bins” to any number.

We have set it to 6.

Number of histogram Bins set to 6

And there you have 6 bins to your graph now. Excel has automatically set the bin size to 10.1666.

But the bin size on the horizontal axis is now weird. Excel has taken the decimal places too far.

  1. To adjust this, go to the Number menu just below.
  2. Set the category to “Numbers”.
  3. Turn the decimal places to 0 or any number as desired.
Setting the decimal places

And you have your bin sizes adjusted.

How to add/remove spacing between bars

The histogram bars do not necessarily have to be of a certain width under the default chart type.

You can change the gap between bars (which will change the bin width, too) just as you like.

  1. Select the histogram and double-click it.
  2. From the format pane, go to “Series Ages” from the drop-down menu of options as shown below.
Select histogram and Series Ages
  1. Click on the icon for Axis.

Here you have the option for Gap Width.

Gap Width
  1. Increase the percentage as desired.

For example, let’s set it to 200%.

Gap Width set to 200%

The gap width increases between the bars and the bars are narrowed down.

In Excel-language, 1 means TRUE. 0 means FALSE.

Kasper Langmann, Microsoft Office Specialist

That’s it – Now what?

You must have enjoyed the ease and simplicity of creating histogram charts in Excel. 🥳

The guide above explains how you can quickly pull off a histogram in Excel out of any dataset. And then, how can you edit it to fix the size/number of bins in it and the gap width between bars?

Honestly, this is not even an iota of what Excel has to offer. There’s so much more for you to learn.

Especially the VLOOKUP, SUMIF, and IF functions of Excel – you just cannot let go of these functions.

Hop on here to get access to my 30-minute free email course to learn these and many more functions of Excel.

Kasper Langmann2023-02-23T14:44:31+00:00

Page load link

It’s a step-by-step tutorial to create a HISTOGRAM in Excel in different ways in a different version of Excel.

A histogram is a column or a bar chart that represents values using a range. Think of a class teacher who wants to present marks of students using a category range (Bins). In the class, she has 50 students, and to present the performance of the class, she can use the distribution of students according to their marks using a histogram.

steps to create a histogram in excel all version

In this guide, I’ll be sharing with you everything you need to master this chart. So stay with me for the next few minutes…

  • 2016
  • 2013
  • Mac
  • Pivot
  • Other

Steps to Make a Histogram in Excel 2016

If you are like me, using Excel 2016 I’ve got good news for you and the good news is, that there is an inbuilt option to create a histogram in this version of Excel.

Let’s suppose you have a list of employees (here is the list) and their period of employment with the company.

employee data to create a histogram in excel

And now you need to create a histogram that should show the number of employees in a particular period range (Bin).

Follow these simple steps:

  • First of all, select the data and go to the Insert Tab Charting Insert Statistic Charts Histogram Histogram, to insert the chart.
go to data tab to create a histogram in excel 2016

In reality, this is the only step you need to follow, your chart is there in your spreadsheet.

insert excel histogram from data tab charts

You can delete the chart title and gridlines if you want.

excel histogram 2016 without chart title gridlines

Pro Tip When you’re using Excel 2016 make sure to convert your data into an Excel table to make it dynamic. So whenever you add new data to it, your chart gets updated automatically.

…download this sample file from here to learn more.

But now you need to have a look at how can you customize it and all the options you have with it.

Let’s explore some of the main options related to bins one by one:

  • Now, select your chart’s axis and right-click on it, and open “Format Axis”.
open format axis option to change settings for the chart

1. By Categories

If you think about the data we are using here, every entry is unique as each employee’s name is different.

excel histogram 2016 with categories

But if you have data where you have repetitive entries, then you can use this option to create a chart based on the SUM or COUNT of those categories instead of numeric bins.

In this case, the bins would be the categories not the distribution of numerical data.

2 Automatic

When you create a histogram, Excel creates bins automatically using the range of the values you have. In simple words, this option is the default way to make a histogram.

3. Bin Width

By using this option, you can specify the width of the Bins. Let’s say if you want to make each bin have 10 then this will create each bin of 0-10, 10-20, and so on.

With this option you have control over the width of the bin and Excel will create the number of bins using the width you specified. Let’s say you have values from 1 to 20 and you want bin width 4, then Excel will create 5 bins like this:

excel histogram with specific bin width

4. Number of Bin

And if you want to specify the number of bins instead of the range you can click on this option and enter the number. Let’s say if you want to have 3 bins and the range of values is 0-15 then Excel will create bins like:

excel histogram with specific number of bins

5. Overflow Bin Underflow Bin

These two options help you to create more than or less than bins in the chart. Let say, you want to have a bin for the employees with a working period of fewer than 10 years.

You can simply enter 10 in the underflow. Or, if you want to have a Bin for the employees having a working period of more than 20 years, enter 20 in the overflow.

excel histogram with overflow underflow bins

Steps to Create a Histogram Chart in Excel 2013 (Data Analysis Tool Pack)

If you are using Excel 2013 or a lower version then you need to follow different steps to create this chart.

There is ADD-IN which you need to install, “Analysis Tool Pack”. It comes with your Excel but you need to install it.

So let’s learn to install it (I’m using screenshots for Excel 2016 but the steps are the same in all the Excel versions) and then we’ll get into making a histogram.

Steps to Install Data Analysis Tool Pack

Once you click OK, it will process for a few seconds and you’re ready to go. You’ll have a “Data Analysis” button in the Data tab.

data analysis button to create histogram

…make sure to download this sample data file from here to follow along.

Before you create a histogram using “Analysis Took Pack” you need to create Bins. Yes, manually. but it’s a simple thing, you know. Here we need bins like below or whatever you want to make.

create bins to create histogram in excel 2013

Now let’s follow these simple steps to insert the histogram and make sure you have this data file with you to follow along.

  1. Input Range: The range where you have employee years with the company (Make sure to only select the values without heading).
  2. Bin Range: The range where you have bins, yes the one we have just created (Make sure to only select the values without heading).
  3. Output Option: Select the “New Worksheet” for the output and tick mark the “Chart Output” for the chart.
  • In the end, click OK.

Once you click OK you’ll have a new worksheet with a chart and a frequency.

your histogram in excel 2013 is ready

…here’s the sample file with a histogram created using “Analysis Tool Pack”. 

Important Points You Need to Understand when you are using “Analysis Took Pack” to Create a Histogram in Excel

Creating a Histogram in the Excel for Mac [2011]

To create a histogram in the Mac version of Excel [2011] we need to install the “Analysis Tool Pack” as well.

…make sure to download this sample file to follow along.

Activating “Analysis Tool Pack” in Excel Mac

Follow these simple steps to activate “Analysis Tool Pack” in Excel Mac

Now the next step.

Step to Create a Histogram [Mac Excel]

Before you create your chart, make sure to create the bins as we have made in the above method. And, if you don’t know about the Bins, make sure to read about them in the above section of this post.

  1. Input Range: The range where you have employee years with the company (Make sure to only select the values without heading).
  2. Bin Range: The range where you have bins, yes the one we have just created (Make sure to only select the values without heading).
  3. Output Option: Select the “New Worksheet” for the output and tick mark the “Chart Output” for the chart.
  • After that, click OK.

Once you click OK, it’ll insert a new worksheet with the frequency table and a histogram.

final histogram in excel mac version

…download the final file from here to learn more.

Create a Histogram using the Pivot table and Pivot Chart

When it comes to control and flexibility there is nothing like a pivot table and pivot chart. I have found a simple way to create a histogram by combining a pivot table and a pivot chart. The below chart is a pivot chart, can you believe it?

create a histogram in excel using pivot chart and pivot table

Let me tell you how it works (with the same employee data here).

Now you need to do a bit of customization in the chart to make it a perfect one.

Boom! your histogram is ready.

your histgram using a pivot chart and pivot table is ready

…download the final sample from here to learn more. 

Dynamic Histogram using FREQUENCY Function

If you create a histogram using “Analysis Tool Pack” it won’t be a dynamic one.

But…

You can create a dynamic histogram by using the FREQUENCY function. To use this function all you need is to create bins in the data (I’m using the same employee data here) and then enter the below formula in the formula bar:

=FREQUENCY(InputDataRange,BinRange)

using freuency function to create a dynamic histogram in excel

Make sure to enter this formula as an array formula by using Alt + Shift + Enter.

After that, you just need to insert a normal column chart using the table we have just created.

once you create table with frequncy formula simply insert a cloumn chart to create a histogram

And don’t forget to change the gap width to 0% from “Format Data Series” options.

make gap width zero to make a histogram in excel using frequency function

…download the sample file from here to learn more.

When You Need to Create a Histogram

Creating a histogram in Excel is not rocket science, but you need to be aware of the situations where it can be helpful and useful.

1. To Present Large Data

Remember the example of the students? Sometimes it’s hard to present data in a normal chart (Line, Column, or Bar). But with a histogram, you can make bins and present large data in a simple chart.

2. To Understand the Distribution

A histogram not only distributes data into bins but also helps you to understand the distribution. Looking at the below histogram, you can understand that most of the students scored between 40 and 80. And 23 students scored above 60.

3. To Help in Decision Making

By using a histogram you can easily decide the students who need to work on their performance. Once you know the numbers in the distribution you can separately focus on each distribution.

What are Bins?

Bin (Bucket) is a range of values in which you distribute the frequency of occurrence. Normally, when someone makes a histogram he/she needs to create bins before but in while making a histogram in Excel you don’t need to create bins.

In the end

If you are using Excel 2016 then there is a simple one-click way to create a histogram as it’s there already. Otherwise, you can use the “Analysis Tool Pack”, but you need to install it first to use it.

Well, if you ask me, my favorite method to make a histogram is by using a pivot chart as it’s way more dynamic and gives you more options to control the chart.

But now you have to tell me one thing. Which method is your favorite?

Make sure to share your views with me in the comment section, I’d love to hear from you. And please, don’t forget to share this post with your friends, I am sure they will appreciate it.

More Charting Tips and Tutorials

  • Add a Horizontal Line in a Chart in Excel
  • How to Add a Vertical Line in a Chart in Excel
  • How to Create a Bullet Chart in Excel
  • How to Create a Dynamic Chart Range in Excel
  • How to Create a Dynamic Chart Title in Excel
  • How to Create Interactive Charts In Excel
  • How to Create a Sales Funnel Chart in Excel
  • How to Create a HEAT MAP in Excel
  • How to Create a Pictograph in Excel
  • How to Create a Milestone Chart in Excel
  • How to Insert a People Graph in Excel
  • How to Create PIVOT CHART in Excel
  • How to Create a Population Pyramid Chart in Excel
  • How to Create a SPEEDOMETER Chart [Gauge] in Excel
  • How to Create a Step Chart in Excel
  • How to Create a Thermometer Chart in Excel
  • How to Create a Tornado Chart in Excel
  • How to Create Waffle Chart in Excel

A histogram Excel chart is a data analysis chart used to represent histogram data. In Excel 2016 and older versions, this chart is built-in in Excel. While for previous versions, we used to make this chart manually by using the cumulative frequency method. In the histogram chart, the data comparison is classified into ranges.

In layman’s terms, it is a graphical representation of data using bars of different heights. For example, a histogram chart in Excel is like a bar chart except that it groups numbers into ranges, unlike individual values in a bar chart.

A histogram in Excel comprises five parts: “Title,” “Horizontal,” “Bars” (height and width), “Vertical,” and “Legend.”

  1. The title describes the information about the histogram.
  2. (Horizontal) X-axis grouped intervals (and not the individual points).
  3. Bars have a height and width. The height represents the number of times the set of values within an interval occurred. The width represents the length of the interval covered by the bar.
  4. (Vertical) Y-axis is the scale that shows you the frequency of the values within an interval.
  5. Legend describes additional information about the measurements.

Refer to the image given below to understand better. It shows a sample histogram with each component highlighted.

Table of contents
  • Histogram in Excel
    • Purpose of a Histogram in Excel
    • How to Make a Histogram Chart in Excel?
    • Different shapes of Histogram Chart in Excel
    • Steps to Create a Histogram in Excel
    • Examples
      • Example #1 – Height of Apple Trees
      • Example #2 – Set of Negative and Positive Values
    • Pros
    • Cons
    • Things to Remember
    • Histogram Excel Chart Video
    • Recommended Articles

Histogram-chart

Purpose of a Histogram in Excel

The purpose of the histogram chart in Excel is to roughly assess the probability distribution of a given variable by showing the frequencies of observations occurring in a certain range of values.

How to Make a Histogram Chart in Excel?

  1. Divide the entire range of values into a series of intervals.
  2. Count how many values fall into each interval.
  3. The buckets are generally specified as consecutive, non-overlapping intervals of a variable. They must be adjacent and may be of equal size.
  4. As the adjacent bins are continuous without gaps, the rectangles of a histogram touch each other to indicate that the original variable is continuous.

Different shapes of Histogram Chart in Excel

  1. Bell-shaped
  2. Bimodal
  3. Skewed right
  4. Skewed left
  5. Uniform
  6. Random

Steps to Create a Histogram in Excel

Following are the steps to create a histogram in Excel:

  1. The first step to building a histogram in Excel is to select the range of cells containing the data to be presented using the histogram. Then, it would be the input for the histogram.

    Histogram chart - step 1

  2. Click on “Recommended Charts,” as shown in the below figure.

    Histogram chart - step 2

  3. Select “Histogram” from the presented list.

    Histogram chart - step 2

  4. Click “OK.”

    Histogram chart - step 3

Examples

A histogram chart in Excel is simple and easy to use. Let us understand working with some examples.

You can download this Histogram Chart Excel Template here – Histogram Chart Excel Template

Example #1 Height of Apple Trees

Histogram Example 1

As shown in the above figure screenshot, the data is about the height of apple trees. The total number of trees is 17. The X-axis of the histogram in Excel shows the height range in cm. The Y-axis indicates trees. The chart shows three bars. One for the range 100-250 cm, the second for the range of 250-400, and the third for the range 400 – 550. So, the width of a bar is 150. So, the readings are in cm. The vertical axis (Y) shows the number of trees under a given range. E.g6 trees are in the range 100-250, 9 trees are in the range 250-400, and 2 trees are in the range 400-550. The legend is the height of the tree represented by green color. So, the bars indicate different heights in cm for the recorded trees.

Example #2 – Set of Negative and Positive Values

Histogram Example 2

As shown in the above example, the dataset contains positive and negative values. Here also, Excel auto-calculated the range, which is 3.3. The total number of values in the dataset is 19. The 3 bars indicate three different ranges and the total number of input values falling under each range. 5 values are [-3.9, -0.6], 8 values range from -0.6 to 2.7, and 6 values range from 2.7 to 6.

Pros

  1. The histogram chart in Excel is useful where the entities to be measured can be presented in ranges such as height, weight, scales, frequencies, etc.
  2. They give a rough idea of the density of the underlying data distribution and often for density estimation.
  3. They are also used to estimate the underlying variable’s probability density function.
  4. Different intervals can expose various features of the input data in the histogram in Excel.

Cons

  1. A histogram chart in Excel can present data that is misleading.
  2. Too many blocks can make your analysis tough, while a few can miss out on important data.
  3. A histogram in Excel is not useful for showcasing discrete/categorized entities.

Things to Remember

  1. The histograms are based on the area and not the height of bars.
  2. It is a column-based chart that shows frequency data and is useful for depicting continuous data.
  3. While working on the histograms, one must ensure that the bins are not too small or too large. However, doing so might lead to incorrect observations.
  4. There is no “ideal” number of bins, and different bin sizes reveal various data features.
  5. The number of bins k can be assigned directly or can be calculated from a suggested bin width that has:

histogram 2

The braces indicate the Ceiling Function in ExcelThe CEILING function is very similar to the FLOOR function in terms of functionality. However, the result is the polar opposite, with the floor function giving a less significant result. The ceiling formula, on the other hand, gives result with a higher significance.read more.

histogram 3which takes the square root of the number of data points in the sample.

Histogram Excel Chart Video

Recommended Articles

This article is a guide to Histogram Chart in Excel. Here, we discuss its uses and how to create a histogram in Excel, along with Excel examples and downloadable Excel templates. You may also look at these useful functions in Excel: –

  • How to Create a Wizard Chart in Excel?
  • Histogram Formula
  • Divide in Excel Formula
  • ODD Function in Excel

A histogram is a popular chart for data analysis in Excel. It is similar to a column chart and is used to present the distribution of values in specified ranges.

Excel provides a few different methods to create a histogram. In this article, we’ll show you two different methods and explain the advantages and disadvantages of each method.

We’ll cover:

  1. What is a histogram?
  2. How is a histogram different from a column chart?
  3. How to create a histogram in Excel with the histogram chart
  4. How to create a histogram in Excel using a formula

So, let’s dive in.

1. What is a histogram?

A histogram is a chart that shows the frequency distribution of a set of values. The frequency distribution of these values are arranged into specified ranges known as bins. 

Examples of using a histogram include grouping performance scores into ranges, grouping values into ranges of years, or survey responses grouped into age brackets. A histogram is a type of data visualization. You can learn all about what data visualization is in this guide, and see some data visualization examples here

2. How is a histogram different to a column chart?

A histogram is very similar to a column chart, but they are not exactly the same. A few differences between the two charts include:

  • The purpose of a histogram is to present frequency distribution e.g., the count of exam scores grouped into ranges. Column charts compare values e.g., the total sales value of six different products.
  • The X axis of a histogram must be in order of its size e.g., 1-5, 6-10, 11-15. A column chart does not need to be in a specific order. The order depends on its purpose.
  • The X axis is formed of intervals or bins in a histogram. A column chart typically has text values in this axis, such as names of cities.
  • There are no gaps between the columns of a conventional histogram.
  • 100% of the values in a data set must be included in a histogram. A column chart could be used to compare only the top 5 products.

3. How to create a histogram in Excel with the histogram chart

The first method to create a histogram in Excel is to use the built-in histogram chart.

This chart is available in Excel 2016 and later, so if you have an earlier version of Excel, you can follow the second method provided in this post.

Two rows of data in an Excel spreadsheet

There are 41 scores in this data, and we want to create a histogram that distributes the scores over intervals of 10 starting from the score of 40, and ending with 100 (the maximum score).

  1. Select range A1:B42.
  2. Click Insert > Insert Statistic Chart > Histogram.

An annotated diagram showing how to create a histogram in Excel

The following histogram is inserted. It has grouped the scores into four bins.

A simple histogram in Excel

This is nothing like what we require, so we need to edit the axis options.

  1. Right click on the category axis (x-axis) and click Format Axis.
  2. Click the Axis Options category.
  3. Type 40 for the Underflow bin. This is the score that the bins will start from.
  4. Type 90 for the Overflow bin. Scores of 91 or above will be included in this final bin.
  5. Specify a Bin width of 10. This creates bins in intervals of 10 from 40.

A histogram in Excel with the drop-down menu used to format the axis

An alternative to specifying a bin width would be to use the option to specify the number of bins required.

The format axis pane in Excel used to format the axis of a histogram

The histogram is now looking good.

A histogram in Microsoft Excel

An important thing to know is that the upper value of a bin is included, and the lower value is not (except for the first bin).

So, if there is a score of 60, this is included in the (50, 60] bin and not the (60, 70] bin. This is specified by the different brackets in the axis, but this is not clear to the reader.

Some general improvements can be made to the histogram chart, such as editing the chart title, adding data labels, and changing the colors of the columns.

These techniques are not covered in this article as our focus is on creating the histogram. There are many chart formatting options.

A simple histogram showing exam score distribution in Excel

The advantages of using this method to create a histogram are that we do not need to prepare bins in advance or write complex formulas. It is all controlled by the built-in chart and the options available.

The disadvantages are that it is only available in Excel 2016 or later and that you are confined to the abilities of the built-in chart. It lacks versatility.

4. How to create a histogram using a formula in Excel

Using a formula to count the occurrences in each bin provides more flexibility for your histogram. This is my preferred method and also works in all versions of Excel.

This method involves inserting a column chart instead of the histogram option and then formatting it to look like a conventional histogram.

We will use the same exam score data used in the previous example, but two of the scores have been changed to less than 40.

First we need to create the source data for our chart. This is the bins and the frequency of exam scores in each of those bins.

The following image shows the source created in this example. The bins are typed into range G4:G10 and the COUNTIFS function is used to count the occurrences of the scores for each bin.

=COUNTIFS($B$2:$B$42,”>=”&E4,$B$2:$B$42,”<=”&F4)

The values in ranges E4:E10 and F4:F10 have been used to assist the COUNTIFS function. It makes it easier to change if the size of the bins changes in the future. These columns will be hidden as nobody wants to see them.

An Excel spreadsheet with data and a formula typed into the formula bar

To create the histogram:

  1. Select range G4:H10
  2. Click Insert > Insert Column or Bar Chart > Clustered Column.

The steps you need to follow to create a histogram in Excel

The following column chart is inserted. It looks great already, but we will make some general improvements and then remove the gap between each column.

A column chart in Excel

3. I have made the following changes to the column chart.

  • Edited the chart title to “Exam Score Distribution”
  • Formatted the columns to a green colour
  • Removed the value axis (y-axis)
  • Removed the horizontal gridlines
  • Added data labels above each column

A column chart in Excel showing distribution of exam scores

4. To remove the gap between each column, right click on one of the columns and click Format Data Series.

A column chart in Excel, showing the menu used to format data series in the column chart

5. From the Format Data Series pane, Click the Series Options category and change the Gap Width to 0.

The format data series window in Microsoft Excel

The gap between the column is removed making it look like a typical histogram.

A fully formatted histogram chart in Excel showing exam score distribution

By creating our own bins, this method provided more flexibility for our histogram. The first bin is for scores less than 40. And then the bins are in intervals of 10. The rigidity of the built-in histogram chart prevents this freedom.

This chart is also very easy to change in the future, as we just need to edit the values in the cells of the source data.

Finally, because the category axis (x-axis) is generated from range G4:G10, we were able to make it appear how we wanted. 

Final thoughts

Histograms are used to present the distribution of data arranged in intervals, known as bins. There are a few different methods to create a histogram in Excel. The method you choose will depend on your data, the level of flexibility required and how often your data changes.

For a hands-on introduction to the field of data analytics, try out this free five-day short course. And, for more Excel tutorials, check out the following:

  • How to use the IFERROR function in Excel
  • How to use the COUNTIFS function in Excel
  • Convert text to numbers in Excel (4 methods)

Note: This tutorial on how to make a histogram in Excel is suitable for Excel 2007, Excel 2010, Excel 2013, Excel 2016, Excel 2019, and Office 365 users. 

In this guide, I will show you how to create a histogram in Excel, the easy way. Histograms add a power punch to your reports. They are powerful data visualization tools that help you gain insights and tell a story based on your data. 

I’ll cover :

  • Excel Histogram Overview
  • How to Make a Histogram in Excel?
    • How to Make a Histogram in Excel Using Data Analysis Tool?
    • How to Make a Histogram in Excel Using the Histogram Chart Tool?
  • FAQs

Find the sample Excel Sheet used in this guide, below. You can use it to follow along with me.

Related: 

How To Find Duplicates In Excel? The Best Guide

Excel Goal Seek—the Easiest Guide (3 Examples)

Create A Pivot Table In Excel—the Easiest Guide

Excel Histogram Overview

A histogram is a column chart that displays the frequency of a variable in a given range. It is very similar to bar charts, except that it groups data together in user-specified intervals called bins. 

This is very helpful for easy data interpretation. 

Let’s say, you are a teacher who just finished evaluating your students’ performance. Now, you want to find how many students have failed the test and how many students have performed well.

For this, you create three intervals or bins, namely, poor performance, average performance and good performance. Using an Excel Histogram, you can plot the number of students in these three intervals easily. 

How to Make a Histogram in Excel?

There are two easy ways to add an Excel Histogram. If you are using Excel versions 2013 or earlier, you can add them using the Data Analysis Tool.

In later versions of Excel, there is a ready-made Histogram Chart tool available in the Charts section. I’ll explain both these methods using simple examples. 

How to Make a Histogram in Excel Using Data Analysis Tool? 

To add Excel Histogram using the Data Analysis tool pack, follow these steps.

  1. Get your data ready. I have the list of students along with their marks in this example.
  1. Enter the upper limits of each bin (interval) in a separate column, anywhere in the sheet.

I have entered the upper limits in column D, starting from D2. I have specified 3 upper limits, which means I want to have three bins.

Upper limits for bins for Excel Histogram
How to Make a Histogram in Excel? Enter the Upper Limits of each bin (interval) in any adjacent column
  1. Click on the Data Analysis button under the Data tab. 
  1. In the Data Analysis menu, select Histogram and click OK
  1. Select the Input Range for the Histogram. In my example, it is going to be B2:B21. 
Excel Histogram using Data Analysis tool
Enter the Input Range, Bin Range, and Output Range in the Histogram dialogue box. Also, make sure to check the Chart Output tickbox to display the histogram.
  1. Select the Bin Range for the Histogram. In this example, it is D2:D4.
  1. Select a suitable Output Range for the Histogram. I have selected cell F2. 
  1. Check the Chart Output tick box and click OK
Excel Histogram Result
Click OK. The histogram along with the frequency distribution table will now appear in the specified Output Range.
  1. To change the gap width between bins, right-click on any one of the bars and click on the Format Data Series button. Also, remove unwanted intrevals by unchecking them in the Values filter as shown below.
Values Filter Excel Histogram
Click on the Values filter on the right-hand side of the chart to remove unwanted bins or intervals.
How to Make a Histogram in Excel
Change the gap between the bins by setting a suitable Gap Width in the Format Data Series pane

Also Read: 

How To Use Excel Countifs: The Best Guide

Excel Conditional Formatting -the Best Guide (Bonus Video)

The Best Excel Project Management Template In 2021

How to Make a Histogram in Excel Using the Histogram Chart Tool?

Let’s see how to make a frequency Histogram in Excel using the Histogram Chart Tool:

  1. Select the Data Range. I have selected the range B2:B21 in this example. 
  1. Locate and click on the Histogram option under the Charts group in the Insert tab. 
Excel Histogram using Charts
Click on the Histogram button under the Charts group in the Insert tab after selecting your Data Range
  1. After Excel plots the Histogram, you can format it if needed. To format, right-click on the Horizontal axis and then on the Format Axis option.
Format Axis Excel Histogram
Right Click on the Horizontal Axis and click on the Format Axis option to change the number of bins and bin size
  1. Change the Number of Bins and the Bin Width in the Format Axis pane. 
Excel Histogram Gap Width
Set the Number of Bins, Underflow Bin, and Overflow Bin to properly plot the Histogram. Right-Click on the bins to access the Format Data Series pane to change the Gap Width between the bins.

Specify the number of bins, the range of overflow and underflow bins here to make Excel plot your histogram properly. 

You can change the gap between the bins by right-clicking on the bins and changing the Gap Width in the Format Data Series pane. 

Suggested Reads: 

Create An Excel Dashboard In 5 Minutes – The Best Guide

Dynamic Dropdown Lists In Excel – Top Data Validation Guide

Predict Future Values Using Excel Forecast Sheet – The Best Guide

FAQs

What is a histogram chart used for in Excel?

A histogram displays the frequency of a variable in certain intervals (bins) in the form of a column chart. It simplifies data visualisation to a great extent. 

Is a histogram suitable for continuous data?

Histograms are suitable for plotting both continuous and discrete data, as long as they need to be measured on an interval scale. 

What is the difference between a histogram vs bar graph?

Though histograms and bar graphs may look very similar, they are very different from each other. 
Histograms present the frequency distribution of a quantitative variable in a single chart. Bar graphs on the other hand compare different categorical variables in a single chart. 

Let’s Wrap Up 

In this guide, I have walked you through how to make a histogram in Excel. We also saw, how to change the bin width and range of a histogram. If you have any doubts regarding histograms or any other Excel feature, please let us know in the comments below. 

If you need more high-quality Excel guides, please check out our free Excel resources centre.

Simon Sez IT has been teaching Excel for over ten years. For a low, monthly fee you can get access to 100+ IT training courses. Click here for advance Excel courses with in-depth training modules.

Adam Lacey

Adam Lacey is an Excel enthusiast and online learning expert. He combines these two passions at Simon Sez IT where he wears a number of different hats.When Adam isn’t fretting about site traffic or Pivot Tables, you’ll find him on the tennis court or in the kitchen cooking up a storm.

A histogram chart is often confused with a bar chart because it displays data using bars of different heights. The ‘true’ histogram chart shows the distribution of numerical data. Each bar of the histogram represents the count of data values within the specified range. See more about different types of histogram charts in Excel.

Simple histogram chart in Excel 365

The chart above shows the distribution of employees ages. The graph contains two unique bins <= 25 and > 55 covering edge cases.

To create a histogram in Excel for Microsoft 365, do the following:

   1.   Add the data for the chart and transform it (if needed):

For this example, the birthday date transformed to the age of people:

The data for simple histogram chart in Excel 365

To calculate full years, use the formula:

= DATEDIF (<birthday>, TODAY (), «y»)

Note: The function TODAY () returns the current date, and DATEDIFF () with the last «y» parameter returns the full number of years between two dates.

See more How to calculate age in Excel.

   2.   Create a histogram chart:

   2.1.   Select the prepared data (in this example,
C2:D20).

   2.2.   On the Insert tab, in the Charts group,
click on the Insert Statistic Chart button:

The Insert Statistic Chart button in Excel 365

From the Insert Statistic Chart dropdown list, select Histogram:

The Histogram Chart in Excel 365

Excel creates the histogram chart from the data:

The simple Histogram chart in Excel 365

As you can see, the default histogram has too many bins (bars), but you can change the number of bins and bin widths.

   3.   Format the histogram chart:

   3.1.   Right-click on the horizontal axis and choose Format Axis… in the popup menu:

Format Axis in popup menu Excel 365

   3.2.   On the Format Axis pane, on the Axis Options
tab, under Bins:

Format Axis for Histogram chart in Excel 365

  • In the Bin Width field, define the number range size for bins.

    For this example, every age range spans 10 years.

  • Select the Overflow bin checkbox and type the number, all values above this number will be added to the last bin, ignoring other options such as Bin Width.
  • Select the Underflow bin checkbox and type the number, all values below and equal to this number will be added to the first bin, ignoring other options such as Bin Width.

Make other adjustments as you desire.

Note: Histograms show the shape and the spread of continuous data. For categorical data, discrete by its definition, you should use bar charts that represent category frequencies.

Понравилась статья? Поделить с друзьями:
  • Creating a crossword puzzle in word
  • Creating a chart with excel
  • Createobject excel application что это
  • Createobject excel application свойства
  • Created excel drop down list