Search code examples
excelbar-chartstacked-chart

Can different data series be used in the same column (Excel, Stacked Bar Chart, Multi-Category)


Good day.

My data looks like this (Please assume it is correct):

enter image description here

My graph (Stacked Column) from this data does not show the Multi-Category("Car Classes") information:

enter image description here

This is what the result should look like (Manually edited in Paint):

enter image description here

I have tried and failed in many different ways to get this data to show. Please help.


Solution

  • You will need a different data layout for the chart you desire. In order to have the A and B as series, it's easiest to put the values in their own columns. You may want to omit the line with the total to 100 ( it just doesn't add anything useful to the chart).

    You may want to create a helper table for the chart layout. This can be done on a different sheet, using formulas to pull the data from the original source.

    Use a data layout like below, select the data, insert a horizontal 100% bar chart and switch rows/columns.

    enter image description here