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.

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


1

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  |
  1. In the first row, put your first major group title into cell B1.
  2. Put your second major group title into cell E1.
  3. In cells B2:G2 place your column labels.
  4. Display the Home tab of the ribbon.
  5. Select cells B1:D1 and, in the Alignment group, click the Merge and Center tool. The first major group title should now be centered over the first group of column labels.
  6. Select cells E1:G1 and click the Merge and Center tool. The second major group title should now be centered over the second group of column labels.
  7. Make the cells at B1:G2 bold. (This sets them off from your data.)
  8. Place your row labels into column A, beginning at cell A3.
  9. Place your data into the table, beginning at cell B3.

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.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Removing Extra Paragraph Marks

Tired of having too many paragraph breaks in your document? You can get rid of the extra paragraph marks by using the ...

Discover More

Creating a Spelling Exclusion List

Don't like it when Word always says a word is spelled right and you know that it isn't? Here's how you can fine-tune the ...

Discover More

Converting European Dates to US Dates

Those in Europe use a date format that is different than those in the US; this is not news. But what if you need to ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Controlling Chart Gridlines

Gridlines are often added to charts to help improve the readability of the chart itself. Here's how you can control ...

Discover More

Creating a Year-to-Date Comparison Chart

Excel is an excellent tool for keeping track of data over time. If you have information you are keeping by year, you may ...

Discover More

Reliable Display of X-Y Values in a Chart

Excel can display both values and names for data points in a chart, when you hover the mouse over the data point. This ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 7?

2022-12-15 21:59:10

moohat

thank you very much, it helps me to arrange my chart as my boss expected..


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.