Excel: Creating Charts with Multiple Groups of Stacked Bars

Last reviewed: March 12, 1998
Article ID: Q77241
The information in this article applies to:
  • Microsoft Excel for Windows 95, version 7.0
  • Microsoft Excel for Windows, versions 2.x, 3.x, 4.x, 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 2.x, 3.x, 4.0, 5.0, 5.0a

SUMMARY

Normally, data series in a stacked column or bar chart have one stack per category. However, it is possible to arrange your data so that the chart appears to have more than one stack per category.

The following sample data produces ten different stacks with two columns each. The first column has the Y2 value stacked over the Y1 value; every other column has the Y3 value stacked over the Y4 value.

To create the chart, type the following into a worksheet:

A1 :  X      B1 :  Y1     C1 :  Y2     D1 :  Y3     E1 :  Y4
A2 :  X1     B2 :  1      C2 :  2      D2 :         E2 :
A3 :         B3 :         C3 :         D3 :  3      E3 :  4
A4 :  X2     B4 :  1      C4 :  2      D4 :         E4 :
A5 :         B5 :         C5 :         D5 :  3      E5 :  4
A6 :  X3     B6 :  1      C6 :  2      D6 :         E6 :
A7 :         B7 :         C7 :         D7 :  3      E7 :  4
A8 :  X4     B8 :  1      C8 :  2      D8 :         E8 :
A9 :         B9 :         C9 :         D9 :  3      E9 :  4
A10:  X5     B10:  1      C10:  2      D10:         E10:
A11:         B11:         C11:         D11:  3      E11:  4

Microsoft Excel Versions 5.0 and 7.0

To create the chart, follow these steps:

  1. Select cells A1:E11. Point to Chart on the Insert menu, and then click As New Sheet.

  2. In Step 1 of Chart Wizard, click Next.

  3. In Step 2 of Chart Wizard, click Column, and then click Next.

  4. Click to select either the third or fifth view in Step 3 of Chart Wizard, and then click Next.

  5. In Step 4 of Chart Wizard, click the up arrow next to "Use Column(s) for Category (X) Axis Labels" until it increments to 1, and then click Finish.

Microsoft Excel Versions 4.0 and Earlier

To create the chart, follow these steps:

  1. Select the data in cells A1 through E11.

  2. On the File menu, click New and click Chart in the New dialog box.

  3. On the Gallery menu, click Column and select the third or fifth option.

MORE INFORMATION

The labels X1 through X5 appear along the horizontal axis. Y1 through Y3 appear in the legend as series names. You can extend this chart to include more groups by adding more data in two rows for each new group.

The number of rows per category label defines the number of stacks per group. To add another group of two bars, insert a row before each X label and add two more columns of data in the new row, such as Y5 and Y6.

The number of columns of data per row defines the number of columns in each stack. For example, if the values for Y3 in the above chart were moved to the first row of each group, the chart would still have two stacks per group. However, the first stack would contain three columns and the second stack would contain only one column.

REFERENCES

Microsoft Excel 7.0

For more information about column and bar charts in Microsoft Excel, click Answer Wizard on the Help menu and type:

   column charts
   bar charts

Microsoft Excel 5.0

For more information about column and bar charts in Microsoft Excel, click the Search button in Help and type:

   column charts
   bar charts


Additional query words: 2.10 2.20 3.00 spreadsheet
Keywords : xlchart
Version : WINDOWS: 2.0, 3.0, 4.0, 5.0, 7.0; MACINTOSH: 2.0, 3.0, 4.0, 5.0
Platform : MACINTOSH WINDOWS
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 12, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.