🥝GuideKiwi
Free Guide

Learn to Create Histograms in Excel for Data Visualization

Understanding Histograms and Their Purpose in Data Visualization A histogram is a type of chart that shows how data is distributed across different ranges or...

GuideKiwi Editorial Team·

Understanding Histograms and Their Purpose in Data Visualization

A histogram is a type of chart that shows how data is distributed across different ranges or categories. Unlike other chart types you might see in Excel, histograms specifically display the frequency of data points within set intervals, called bins or classes. This makes histograms particularly useful when you want to understand patterns in large datasets, identify where most of your data clusters, or spot unusual values that fall outside normal ranges.

Histograms work by dividing your data into equal-sized groups and counting how many values fall into each group. For example, if you're examining test scores from 100 students, you might create bins representing score ranges like 0-10, 11-20, 21-30, and so on. The height of each bar in the histogram represents the number of students whose scores fell within that range. This visual representation makes it much easier to see at a glance whether most students scored high, low, or spread across the range.

The key difference between histograms and other chart types lies in what they represent. Bar charts typically show comparisons between different categories, while histograms show the distribution of continuous numerical data. A histogram answers questions like: "How are our monthly sales distributed?" or "What is the spread of employee ages in our company?" Rather than comparing one category against another, histograms reveal the shape and spread of your entire dataset.

Common situations where histograms prove valuable include analyzing customer age demographics, examining the distribution of product weights or sizes in manufacturing, reviewing test score performance across a group, tracking daily website traffic patterns, or assessing the distribution of response times for customer service calls. Quality control departments, researchers, educators, and business analysts frequently use histograms to make sense of their data.

Practical Takeaway: Before creating a histogram, ask yourself whether you're trying to show how data is distributed across a range of values. If you're comparing separate categories rather than showing frequency distribution, a different chart type may serve you better.

Preparing Your Data for Histogram Creation in Excel

Before you can create a histogram in Excel, your data needs to be organized properly. The most effective approach is to have your data in a single column, with each value listed vertically. For instance, if you're creating a histogram of daily sales figures, you would list each day's sales amount in cells going down a single column. Excel reads data organized this way more efficiently and produces more accurate histograms.

When organizing your data, ensure all values are numerical. Text entries, blank cells, or mixed data types can cause Excel to either exclude those values from the histogram or produce unexpected results. If you have data that includes some empty cells, Excel will typically ignore them, which is usually acceptable. However, if you notice your histogram seems incomplete, check your source data for any non-numerical entries that might be causing issues.

The quantity of data points matters less than the quality of organization. You can create a histogram with just 20 data points, though histograms become more meaningful as your dataset grows. With larger datasets—50, 100, or more values—patterns become clearer and the distribution shape more pronounced. If you're working with a very small dataset, the histogram may not reveal meaningful patterns, but it can still provide a visual reference for how those values spread across your range.

Consider the context of your data before creating your histogram. Are all your values measured in the same units? For example, if you're analyzing heights, ensure all measurements use the same scale—either all inches or all centimeters, not a mix. If your data includes both positive and negative values, Excel can accommodate that, though you may want to consider whether your analysis question requires that range.

One helpful preparation step involves identifying your data range's minimum and maximum values. If your lowest value is 15 and your highest is 98, you now know your bins should span from at least 15 to 98. This information helps you decide on appropriate bin sizes later. You might also want to scan for any obvious outliers—values that seem unusually high or low—as these may influence how you set up your bins.

Practical Takeaway: Organize your data in a single vertical column with no empty cells within your dataset, and verify that all entries are numbers. Clean, organized data leads directly to accurate, readable histograms.

Setting Up Bins and Intervals for Your Histogram

Bins are the ranges or intervals that organize your data in a histogram. Choosing the right bin size significantly affects what your histogram shows. Bins that are too large will make your distribution look flat and hide important patterns. Bins that are too small can make your histogram look jagged and confusing, with many empty or single-value bins. Finding the middle ground involves understanding your data and considering what story you want the histogram to tell.

A common starting point for determining bin size is to use the square root rule. Count how many data points you have, find its square root, and use that as your approximate number of bins. For instance, if you have 100 data points, the square root is 10, suggesting roughly 10 bins. This provides a reasonable starting point, though you may adjust based on your results. Another approach involves using Sturges' rule, which calculates the number of bins as 1 + (3.3 × log10 of the number of data points). While this sounds technical, Excel can handle these calculations, and many analysts use simpler methods.

In Excel, you don't always have to calculate bin sizes manually. When you create a histogram using Excel's built-in histogram tool (found under the Charts menu in modern Excel versions), Excel suggests a bin width automatically. You can accept this suggestion or modify it based on your needs. To manually set bins, you create a separate column listing the upper boundary of each bin—for example, if you want bins for 0-10, 11-20, 21-30, you would list 10, 20, 30 in a column.

The choice of bin boundaries affects where data falls. If your data includes the value 20, does it belong in the 10-20 bin or the 20-30 bin? Excel assigns data to bins consistently, typically using "greater than or equal to the lower bound and less than the upper bound" logic, except for the last bin which includes the upper boundary. Understanding this helps you set boundaries that make sense for your analysis.

As you decide on bins, consider what questions you want your histogram to answer. If you're analyzing customer satisfaction scores ranging from 1 to 100, you might use bins of size 10 (1-10, 11-20, etc.) to show overall satisfaction distribution. If you're looking at website page load times ranging from 0.5 to 5 seconds, bins of size 0.5 might work better. Your domain knowledge—understanding what your data represents—should guide these decisions.

Practical Takeaway: Start with Excel's automatic bin suggestion, create your histogram, and then adjust bin size if the result doesn't clearly show the patterns you're investigating. Smaller bins show more detail, while larger bins provide a broader overview.

Creating a Histogram Using Excel's Chart Tools

Modern versions of Excel include a dedicated histogram chart type that simplifies creation significantly. To access this feature, start by selecting your data range—click on the first cell containing data, hold Shift, and click on the last cell in your dataset. This highlights all your values. Then, navigate to the Insert menu at the top of Excel and look for the Charts section. You'll see various chart type options displayed as icons.

In Excel 2016 and newer versions, the histogram chart type appears in the Charts menu. Click on the histogram icon, which typically looks like a bar chart with adjacent bars. Excel immediately previews how your histogram will look and inserts it into your spreadsheet. The default settings usually provide a reasonable starting point, with Excel automatically calculating appropriate bins based on your data.

After inserting your histogram, you'll want to customize it. The histogram chart includes several interactive elements. Right-click on any bar in the histogram to access formatting options. You can adjust the bin width by clicking on the bars and selecting "Format Data Series." A dialog box appears where you can manually enter a specific bin width or adjust the gap between bars. If Excel's automatic bins don't clearly show what you're looking for, try entering a different bin width value and observing how the histogram changes.

Excel also allows you to modify the bin boundaries. Instead of accepting the default starting and ending points, you can specify exactly where you want your bins to begin and end. This proves useful if your data includes

🥝

More guides on the way

Browse our full collection of free guides on topics that matter.

Browse All Guides →