Log in  \/ 
x
or
x
x
Register  \/ 
x

or

Kutools for Excel 22.00 HOT

300+ Powerful Features You Must Have in Excel

Kutools-for-Excel

Kutools for Excel is a powerful add-in that frees you from performing time-consuming operations in Excel, such as combine sheets quickly, merge cells without losing data, paste to only visible cells, count cells by color and so on. 300+ powerful features / functions for Excel 2019, 2016, 2013, 2010, 2007 or Office 365!

Read More Download Buy now

Office Tab 14.00HOT

Adding Tabbed Interface for Office

Office Tab

It enables tabbed browsing, editing, and managing of Microsoft Office applications. You can open multiple documents / files in a single tabbed window, such as using the browser IE 8/9/10, Firefox, and Google Chrome. It's compatible with Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365. Demo

Read More Download Buy now

Kutools for Outlook 13.00NEW

100+ Powerful Features for Outlook

Kutools-for-Outlook

Kutools for Outlook is a powerful add-in that frees you from time-consuming operations which majority of Outlook users has to perform daily! It can save your time from using Microsoft Outlook 2019, 2016, 2013, 2010 or Office 365!

Read More Download Buy now

Kutools for Word  9.00NEW

100+ Powerful Features for Word

Kutools-for-Word

Kutools for Word is a powerful add-in that frees you from time-consuming operations which majority of Word users have to perform daily! It can save your time from using Microsoft Word / Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365!

Read More Download Buy now

Classic Menu for Office

Bringing Back Your Familiar Menus

Restores the old look and menus of Office 2003 to Microsoft Office 2019, 2016, 2013, 2010, 2007 or Office 365. Don’t lose time in finding commands on the new Ribbon. Easy to deploy to all computers in enterprises and organizations.

Read More Download Buy now

How to group (two-level) axis labels in a chart in Excel?

For example you have a purchase table as below screen shot shown, and you need to create a column chart with two-lever X axis labels of date labels and fruit labels, and at the same time date labels are grouped by fruits, how to solve it? This article provides a couple of ways to help you group (two-level) axis labels in a chart in Excel.


Group (two-level) axis labels with adjusting layout of source data in Excel

This first method will guide you to change the layout of source data before creating the column chart in Excel. And you can do as follows:

1. Move the fruit column before Date column with cutting the fruit column and then pasting before the date column.

2. Select the fruit column except the column heading. In our case, please select the Range A2:A17, and then click the Sort A to Z button on the Data tab.
doc group axis labels 2

3. In the throwing out Sort Warning dialog box, keep the Expand the selection option checked, and click the Sort button.

4. In the fruit column, select the first series of same cells, says A2:A6, and click Home > Merge & Center. And then click the OK button in the popping Microsoft Excel dialog box. See below screenshots:
doc group axis labels 01doc group axis labels 02
And then the first series of adjacent cells filled by Apple are merged. See below screenshot:
doc group axis labels 03

5. Repeat Step 4 and merge other adjacent cells filled with same values.

Tip: One click to merge all adjacent cells filled with same value in Excel
If you have Kutools for Excel installed, you can apply its Merge Same Cells utility to merge all adjacent cells which contain same value with only one click. Full Feature Free Trial 30-day!
ad merge same cells 2

6. Select the source data, and then click the Insert Column Chart (or Column) > Column on the Insert tab.

Now the new created column chart has a two-level X axis, and in the X axis date labels are grouped by fruits. See below screen shot:


Group (two-level) axis labels with Pivot Chart in Excel

The Pivot Chart tool is so powerful that it can help you to create a chart with one kind of labels grouped by another kind of labels in a two-lever axis easily in Excel. You can do as follows:

1. Create a Pivot Chart with selecting the source data, and:
(1) In Excel 2007 and 2010, clicking the PivotTable > PivotChart in the Tables group on the Insert Tab;
(2) In Excel 2013, clicking the Pivot Chart > Pivot Chart in the Charts group on the Insert tab.

2. In the opening dialog box, check the Existing worksheet option, and then select a cell in current worksheet, and click the OK button.

3. Now in the opening PivotTable Fields pane, drag the Date field and Fruit field to the Rows section, and drag Amount to the Values section.

Notes:
(1) The Fruit filed must be above the Date filed in the Rows section.
(2) Apart from dragging, you can also right click a filed, and then select Add to Row Labels or Add to Values in the right-clicking menu.

Then the date labels are grouped by fruits automatically in the new created pivot chart as below screen shot shown:


Demo: Group (two-level) axis labels in normal chart or PivotChart


Kutools for Excel includes more than 300 handy tools for Excel, free to try without limitation in 30 days. Download and Free Trial Now!

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Kathy K · 1 years ago
    Thank you! In order to save space, is it possible to only label the first and last date in the series? I've tried changing the "interval unit" setting under label, but it doesn't seem to have any effect on a multi-level chart. I also tried setting the middle date labels to spaces or blanks, but that completely confused excel.,
    • To post as a guest, your comment is unpublished.
      kellytte · 1 years ago
      Hi Kathy,
      There is another trick that can save space in the X axis in chart.
      Select the date cells in the source data, right click, and select Format Cells from context menu. And then customize the date format with the number formatting code m/d
      • To post as a guest, your comment is unpublished.
        Kathy K · 1 years ago
        Thanks @kellyette, I'll give that a try.
  • To post as a guest, your comment is unpublished.
    aj · 3 years ago
    Hello,
    I am trying to make a graph but I am not able to display data as I need it.
    I have 5 columns of data. first 3 columns are identifiers (date, location, product), 4th and 5th columns are to compare the sales numbers in a graph. However when I select the columns I only get location as vertical text on horizontal axis and date and product data is showing as horizontal text and gets all scrambled.
    I tried changing the text direction but it did not work. How can I have date, location, product information next to each other for each date, displaying vertically under each comparison data?
    Thanks in advance for your help.
    AJ
    • To post as a guest, your comment is unpublished.
      kelly.extendoffice@gmail.com · 2 years ago
      Hi aj,
      Which version of Excel are you using? And which chart type are you creating? In Excel 2013, select 5 columns, and then click Insert > Insert Column Chart > Clustered Column, the first 3 columns will be added as x axis automatically.
    • To post as a guest, your comment is unpublished.
      Michelle · 2 years ago
      I have this same problem. You can only rotate the upper level of labels. The 2nd level will always be Horizontal (or Vertical on the Y-axis). I can't figure a way to change it either.
  • To post as a guest, your comment is unpublished.
    GEC · 3 years ago
    merging cells makes the table un-usable. Might as well use powerpoint instead of a table.

Feature Tutorials