X axis labels with "super-categories" or "headers"

3

How do I make the X axis labels of a column chart looks like this? i.e. with, for lack of a better name, "super-categories" or "headers", like the labels "All sites", "All sites excluding LR" etc. in the image below.

Excel 2010 made this one automatically. A cell happened to be selected when I inserted a chart; if that cells happens to be in an area with data, then Excel will take a guess at what your chart should look like and make that automatically. That's what happened to me. I didn't even know this was possible; I just stumbled upon this.

Now I'd like to know how to reproduce this manually. i.e. without relying on Excel's automated reaction described above.

enter image description here

Jean-François Corbett

Posted 2014-01-23T15:38:18.530

Reputation: 2 219

I'm not sure I get you here. What do you actually mean by 'Excel made this one automatically'? And what would 'manually' equate to? I usually make such graphs in Excel (2007) through PivotCharts (i.e. making a PivotTable first however, then using inserting a chart). – Jerry – 2014-01-23T15:50:59.537

You know, when a cell happens to be selected when you insert a chart; if that cells happens to be in an area with data, then Excel will take a guess at what your chart should look like and make that automatically. That's what happened to me. – Jean-François Corbett – 2014-01-23T16:15:09.323

Okay, and what would you call making it manually? Like setting up your data so that you will always get that result? – Jerry – 2014-01-23T16:22:22.263

Answers

2

I figured out how to do it manually, without relying on Excel's automated behaviour, and without having to lay out the series data in any particular way (i.e. next to each other and next to the labels).

The critical bit is the layout of the category axis labels, and selecting that entire range as your axis label range.

If you lay out your labels like in the image below, and select as your axis label range the entire range where your categories, super-categories, super-super-categories etc., then you get the plot further below.

enter image description here

enter image description here

Jean-François Corbett

Posted 2014-01-23T15:38:18.530

Reputation: 2 219

2

You simply need to get the "super-categories" just like a header (occurs only once), but in a column to the left of the individual categories. The value will be in the last column. Here's an example when inserting a simple bar chart:

enter image description here

Jerry

Posted 2014-01-23T15:38:18.530

Reputation: 4 716

Thanks; I wanted to know how to do this manually, by which I mean, without relying on Excel's automated behaviour. – Jean-François Corbett – 2014-01-24T07:46:50.370