How to create an axis with subcategories
Excel
365
Excel offers a lot of different tricks to create great informative charts and diagrams. A lot of
the useful adjustments related to the axis. E.g., you can hide an axis, use primary and
secondary axis, change the presentation of data on the axis, etc.
One of such tricks is showing an axis with subcategories:
![An axis with subcategories in Excel for Microsoft 365 An axis with subcategories in Excel 365](/images/tips/607_365/1.png)
To create an axis with subcategories, do one of the following:
- If you have a data with structured categories, just select them and create
the chart you like:
Excel automatically "understands" the structured data as axis data with subcategories:
- If you already have a chart, do the following:
For example:
![A chart in Excel for Microsoft 365 A chart in Excel 365](/images/tips/607_365/4.png)
1. Add the new category or subcategory to your data.
For this example:
![A new chart data in Excel for Microsoft 365 A new chart data in Excel 365](/images/tips/607_365/5.png)
2. Do one of the following:
- On the Chart Design tab, in the Data group, choose Select Data:
- Right-click on the chart area and choose Select Data... in the popup menu:
3. In the Select Data Source dialog box, under Horizontal (Category) Axis Labels, click the Edit button:
![Select Data Source dialog box in Excel 365 Select Data Source dialog box in Excel 365](/images/tips/607_365/6.png)
4. In the Axis Labels dialog box, choose cells with categories and subcategories for this axis and click OK several times:
![Axis Labels dialog box in Excel 365 Axis Labels dialog box in Excel 365](/images/tips/607_365/7.png)
Excel changes an axis:
![Changed chart in Excel 365 Changed chart in Excel 365](/images/tips/607_365/8.png)