Download the Histogram Workbook
Practice on the salary data from the video. Build the histogram, set your own bin width, overflow and underflow bins, and see the chart update when the data changes.
What Is a Histogram in Excel?
A histogram is a type of chart that shows how often different values occur in your data. It’s useful for seeing the distribution of data at a glance.
Here’s an example to see how many employees there are in certain salary ranges.

How to Create a Histogram in Excel
The histogram is a built-in chart type in Excel 2016 and later, including Microsoft 365 and Excel for Mac.
New to charts? Start with this guide on how to make a graph in Excel.
Step 1: Prepare Your Data
Suppose we have a dataset about personnel data with columns for names, entry date and the yearly salaries.

Step 2: Insert the Histogram Chart
To create the Excel histogram chart, perform the following steps:
- Select Your Data: Highlight the data you want to use.
- Insert the Chart:
- Go to the Insert tab.
- Click on Insert Statistic Chart.
- Choose Histogram.

Step 3: Adjust the Histogram Bins
Adjusting the bins is important to ensure your histogram accurately represents your data.
Bins determine how your data is grouped and how detailed your histogram will be. Proper bin settings help you see patterns and trends more clearly.
- Right-click the horizontal axis and select Format Axis, or select the axis and press Ctrl+1.

Histogram Bin Options Explained
- Select one of these options:
- By Category: Use this when your categories are text instead of numbers. The histogram groups identical categories and adds up their values. To count text items, such as fruit types, add a helper column filled with 1 and plot it with By Category.
- Automatic: The default setting. Excel calculates bin width using Scott’s normal reference rule. If you are unsure about setting bin width, leave it on automatic, and Excel will choose the best option for you.
- Bin Width: Set how wide each bin is. For example, a bin width of 5 groups ages in steps of five years.
- Number of Bins: Set how many bins you want, including the overflow and underflow bins. For example, 10 bins split test scores into ten ranges.
- Add these if needed:
- Overflow Bin: Use this to group all values above a certain number into one bin. Example: If you have sales data and want to group all sales above $10,000 together, set the overflow bin to 10,000.
- Underflow Bin: Groups all values at or below a certain number into one bin. Example: to group all survey scores of 50 or less, set the underflow bin to 50.
Setting the right bin options in your Excel histogram helps you visualize data accurately and identify trends. Experiment with these settings to see what works best for your data.

For our Excel Histogram example we’ll use these settings:
- Bin Width: Setting the bin width to 40,000 will create salary bins in increments of $40,000.
- Overflow Bin: We’ll capture all values above 200,000 in this bin.
- Underflow Bin: All salaries of 30,000 or less go into one bin.

Adjusting these settings helps you create a histogram that best represents your data, making it easier to analyze and interpret.

How to Customize Your Histogram
Customizing your Excel histogram makes it easier to read and more visually appealing. Here are simple steps to personalize your chart:
Change the Colors
- Select the chart and go to the Chart Design tab.
- Click Change Colors, or select the bars and pick a Shape Fill color on the Format tab.
Add Data Labels
- Show the frequency on the chart.
- Right-click the bars and select Add Data Labels. Make them bigger and bold so they stand out.
Edit the Chart Title
- Click on the chart title to change it.
- Enter a title that clearly describes your data.
Remove the Axis and Gridlines
Remove the vertical axis and gridlines to make your chart cleaner.
- Right-click on the vertical axis and select Delete.
- Right-click on the gridlines and select Delete.

Show the Bin Labels in Thousands
If your data has large numbers, you can simplify the X-Axis labels by adjusting the number formatting.

- Double-click the X-Axis to open the Format Axis panel.
- Go to the Number category.
- In the Format Code field, enter this code and press Add:
0,"K"- This code will round the numbers to the nearest thousand and add a “K” suffix.
- Example: If your data ranges from 21,000 to 261,000, it will display as 21K to 261K.
For more codes like this, see this guide to custom number formatting in Excel.


- Adding a single comma after the zero rounds the number to the nearest thousand.
- Adding two commas would round to the nearest million.
- The “K” suffix helps readers understand the true value of the axis.
The Histogram Updates Automatically
The chart stays linked to your data. Change a value and the bars update right away.
If a salary drops into a lower range, that bin grows and the bin it left shrinks. You never have to rebuild the chart.
How to Read the Histogram Bin Labels
Excel uses standard statistical notation for bin ranges on the horizontal axis.
- Brackets and Parentheses:
- Numbers in brackets [ ] are included in the bin.
- Numbers in parentheses ( ) are excluded from the bin.
- The label [10, 20] means both 10 and 20 are within the bin.
- The label (20, 40] means 20 is not within the bin, but 40 is.
- If your value is 20, it will be included in the bin [10, 20].
- It will not be included in the bin (20, 40].
Download the Histogram Workbook
Download the Histogram Workbook
Get the salary data and build your own histogram step by step.
Frequently Asked Questions
How do I make a histogram in Excel?
Select your data and go to Insert > Insert Statistic Chart > Histogram. Excel picks the bins for you. To set your own, right-click the horizontal axis and select Format Axis.
How do I change the bin size in an Excel histogram?
Select the horizontal axis and press Ctrl+1 to open Format Axis. Under Bins, choose Bin width and type the size you want, for example 40000. You can also choose Number of bins instead.
What are overflow and underflow bins in a histogram?
The overflow bin groups all values above a number you set into one bar. The underflow bin groups all values at or below a number you set. They keep extreme values from creating lots of tiny bins.
What is the difference between a histogram and a bar chart?
A histogram groups numbers into ranges and shows how many values fall into each range, so it shows a distribution. A bar or column chart compares separate categories, such as sales by region.
Why can I not find the histogram chart in Excel?
The histogram chart is built into Excel 2016 and later, including Microsoft 365 and Excel for Mac. In Excel 2013 and older, use the Histogram tool of the Analysis ToolPak under Data > Data Analysis instead.
What do the brackets in histogram bin labels mean?
A square bracket means the number is included in the bin, a round bracket means it is not. The label (20, 40] includes 40 but not 20.
Leila Gharani
Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.







