1. Home
  2. MS Office
  3. Comparative histogram in excel 2010

Comparative Histogram In Excel 2010

Charts are one of the most eminent feature  in Excel but sometimes you need to use them in a different way. We will try to make a Comparative Histogram out of the table data which is quite unique from the rest of the charts. In this type of Histogram, we compare two sets, or groups of data using horizontal bars, so our main emphasize will be on horizontal bars in the chart. If you will ever need to make a chart out of your spreadsheet which contains two sets of data, then this post would come helpful.

Launch Excel 2010, and open spreadsheet in which you want to make a histogram for your data table. For instance, we have included a spreadsheet of university students, containing columns for each gender, as shown in the screenshot below.

table

For making comparative histogram, we need to convert values of one field into negative values. We will convert Female column values into negative, to grasp a good look at Histogram.

negative

Now select the data range for which you want to make chart and navigate to Insert tab. From Column, click All Chart Types.

all chart types

You will reach Insert Chart dialog, from left pane select Bar, and from right pane select the bar chart you want to insert. Click Ok to continue.

selection

You will see the bar chart, inclusion of negative values played a vital role here as it does not depict orthodox bar chart. It is spread from X-axis to –X axis, allocating each gender one X-axis, as shown in the screenshot below.

chart 12

Now we need to make some changes to make the bars and values prominent. We will be adding Legends at the both sides of chart and remove negative values in X-axis. First we need to set the Y-axis of the chart at the left side. For this select the Y-axis by clicking upon any value in it, and right-click to choose Format Axis, as shown in the screenshot below.

format axis

Format Axis dialog will appear, now from left pane, select Axis Options, and from right pane, choose None from Major tick mark type and Minor tick mark type, from Axis labels select Low. Click Close to continue.

low

You will see the Y-axis labels is now set at the left side of the chart.

y-axis

Now select X-axis to format it for removing negative values. Right-click it and select Format Axis.

format axis x-

From left pane, select Number, and under category select Custom. Now from Type, select one that states [Red], upon click you will notice the negative values in X-axis change to red. Click OK.

dialog 1

Now right-click bar and hit Format Data Series.

format data series

Format Data Series dialog will open up. Now select Series Options from left side, and from the main window, under Series Overlap, move the scroll bar to extreme right, to make it 100% overlapped. Under Gap Width, give it 30% gap. Click Close to continue.

format series

Now remove the Legend by selecting it and then pressing delete on keyboard. Navigate to Layout tab and click Text Box.

text box

Insert text box at the both sides of X-axis to mark Male and Female respectively, as shown in the screenshot below.

final

You can always apply suitable style and design to add eye-candy to the chart. From Design tab, and from Chart Style group give chart a suitable style.

design

final chart

You can also check out previously reviewed guides on Creating Pictograph in Excel 2010 & Using Scatter & Trendline in Excel 2010.

7 Comments

  1. Thanks!! very helpful!! Do you know how to do it with 4 series instead of 2 (two on the left and two on the right?)

  2. Thanks! It really helped. I don’t know why Microsoft has not made it a template which would have been much better than this. Anyway Thanks!