Creating a simple histogram in Excel 2007

Keywords: histogram, normal distribution, Excel 2007, column chart

Version: Should work with any version. Tested with Excel 2007.

This article contain a quick tutorial on how to create a simple histogram in Excel 2007, to visualize for example student test score, like in the example.

To make this, start by creating a new worksheet and enter some structure, like in the image below.

Creating a simple histogram in Excel 2007

Starting bin and bin width defines the resolution and span of the histogram categories. Data is the column where you will enter your data(!), in this caste test score results, Bin no is just a counter, Bins are the histogram categories, and Frequency is the number occurence of a test score result (Data) in Bins.

So how to achieve this? The key here is the frequency formula and the array formula function in Excel.

Creating a simple histogram in Excel 2007

To enter an array formula this follow these steps.

1. Select the range that will contain your frequency distribution (in this case D6:D18)

2. Enter the frequency fomula in the toolbar text field:

=FREKVENS(B6:B65,D6:D18)

where B6:B65 should be the actual range containing your data.

3. After entering the complete formula press shift+CTRL+Enter to tell Excel you want this to be an array formula.

4. Done!

Now select the range containing your Bins and Frequency and create a clustered column chart. The default Excel column chart have a gap between the columns while traditionally in histograms there should be no gap between columns. Remove the gaps by right clicking the data series –> Format data series –> select  Alternatives for data series –> spacing –> set to zero.

Format the chart to your liking. A sample histogram can be seen below:

Creating a simple histogram in Excel 2007

Another way to visualize distribution is by graphing the cumulative relative frequency. To do this, just create a new column where you sum up the relative frequencies for all bins. The sum will of course be 100%. Then create a new graph similar to the histogram above. The result can look something like this:

histogram2.png

Popularity: 36% [?]



Comments (4)

rickAugust 27th, 2008 at 3:53 pm

It would be extremely helpful to show the column and row headings! The article references cells specific cells, but no reference!

JesperSeptember 23rd, 2008 at 8:29 am

You are correct of course. I will see if I can fix that.

Regards
Jesper

SoniaNovember 8th, 2008 at 4:30 pm

I can’t find Format Data Series!!
AHH!

VuNovember 8th, 2008 at 9:03 pm

Right click on the column, i think

Leave a comment

Your comment