Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Two-Level Axis Labels.
Written by Allen Wyatt (last updated March 26, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021
Excel is great at creating charts. With some types of data, you may have a need for two-level axis labels for your chart. For instance, you may want something similar to the following along the X-axis for your chart:
Pro | Team | Reg | Pro | Team | Reg ... Eastern US | Western US ...
Setting up such an arrangement in an Excel worksheet is easy, but getting the same result in a chart may not be as obvious.
Go ahead and set up your worksheet to reflect the column titles the way you want them. These column titles will end up as your X-axis labels. You could set them up as follows:
| A | B | C | D | E | F | G | 1 | | Eastern US | Western US | 2 | | Pro | Team | Reg | Pro | Team | Reg |
With your table completed, you are ready to create the chart. Just select your data table, including all the headings in the first two rows, then create your table. Excel automatically recognizes that you have two rows being used for the X-axis labels, and formats the chart correctly. Since the X-axis labels appear beneath the chart data, the order of the label rows is reversed—exactly as mentioned at the first of this tip. (See Figure 1.)
Figure 1. Two-level axis labels are created automatically by Excel.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (1188) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Two-Level Axis Labels.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
When creating a chart based on data in a worksheet, you may want to sort the information in the chart without rearranging ...
Discover MoreWant a cool, small chart to show what your data is doing? You need a sparkline, discussed in this tip.
Discover MoreIf you need a number of charts in your workbook to all be the same size, it can be a bother to manually change each of ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2022-12-15 21:59:10
moohat
thank you very much, it helps me to arrange my chart as my boss expected..
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments