how to add secondary x axis in excel

How to Add Secondary X Axis in Excel

By Anthony Jones
AD

When working with data in Excel, sometimes a single axis isn't enough to Чарлит; fully convey your insights. This is where adding a secondary x-axis comes in handy. A secondary x-axis allows you to overlay two different sets of data on the same chart, providing a more comprehensive view of your data. Here's a step-by-step guide on how to add a secondary x-axis in Excel.

Before we dive in, ensure you've enabled the 'Developer' tab in your Excel ribbon. If it's not visible, go to 'File' > 'Options' > 'Customize Ribbon', then check the box next to 'Developer'.

Preparing Your Data

Before creating your chart, you need to prepare your data. Typically, you'll have two sets of data you want to compare. Let's assume you have data for 'Sales' and 'Profit' for each month in columns A and B, starting from row 2.

AD
How to add secondary axis in Excel (2 easy ways)
How to add secondary axis in Excel (2 easy ways)
How to Add a Secondary Axis in Excel 2026
How to Add a Secondary Axis in Excel 2026
How to Add a Secondary Axis in an Excel Pivot Chart (with Easy Steps) - ExcelDemy
How to Add a Secondary Axis in an Excel Pivot Chart (with Easy Steps) - ExcelDemy

In this step, you'll also need to create a third column (let's say 'Month') that contains the month names, since you'll be using this to create the secondary x-axis. You can enter these manually or use a formula like `=TEXT(A2,"mmm")` to extract the month.

Creating the Chart

Now that your data is set, let's create the chart. Select the data range (including headers), then click on the 'Insert' tab in the ribbon. Click on the chart type you want (bar, line, etc.), then select 'Sheet' to create the chart on a new sheet if you prefer.

How to Add Secondary Axis in Excel Fast - Step by Step Guide | MyExcelOnline
How to Add Secondary Axis in Excel Fast - Step by Step Guide | MyExcelOnline
Secondary Axis in Excel: Add, Remove & Change - ExcelDemy
Secondary Axis in Excel: Add, Remove & Change - ExcelDemy
How to Add a Secondary Axis in Excel Charts (Easy Guide)
How to Add a Secondary Axis in Excel Charts (Easy Guide)

Your chart will now be created, with 'Sales' and 'Profit' data both on the same x-axis. We'll fix this in the next step.

Adding the Secondary X-Axis

With the chart still selected, click on the 'Design' or 'Format' tab under 'Chart Tools'. Then, click on 'Add Chart Element' > 'Axis' > 'Secondary Horizontal (Category) Axis'.

AD

A new x-axis will appear on the chart, but it's likely still not laid out correctly. To fix this, right-click on the chart and select 'Format Selection' (or 'Format Selection of Type' if you're using a newer version of Excel). In the 'Format Selection' pane, under 'Axis', click the drop-down arrow next to 'Bound to Axis'. Select '.

Excel Combo Chart: How to Add a Secondary Axis
Excel Combo Chart: How to Add a Secondary Axis
How to Combine Graphs with Different X Axis in Excel - ExcelDemy
How to Combine Graphs with Different X Axis in Excel - ExcelDemy
How to Change X Axis Scale in Excel (2 Useful Methods) - ExcelDemy
How to Change X Axis Scale in Excel (2 Useful Methods) - ExcelDemy
How to Create an Excel Bar Chart Side by Side with Secondary Axis - ExcelDemy
How to Create an Excel Bar Chart Side by Side with Secondary Axis - ExcelDemy
How to Switch X and Y Axis in Excel
How to Switch X and Y Axis in Excel
How to Scale Time on X Axis in Excel Chart (3 Quick Methods) - ExcelDemy
How to Scale Time on X Axis in Excel Chart (3 Quick Methods) - ExcelDemy

Formatting the Secondary X-Axis

Now that your secondary x-axis is in place, you can format it to match the look and feel of your chart. Right-click on the axis and select 'Format Axis'. In the 'Format Selection' pane, you can adjust the axis title, labels, major and minor unit (if needed), and more.

Don't forget to format the series on the secondary axis as well. Select the series, then go to 'Format Selection' and adjust the series color, border, fill, and more. You can also change the series to 'Secondary Vertical (Value) Axis' if you want to overlay the data on top of the primary series.

Adding a Gridline for Better Readability

For better readability, you might want to add a gridline to your chart. Right-click on the chart and select 'Format Selection'. In the 'Format Selection' pane, under 'Axis', check the box next to 'Gridlines'. You can also adjust the gridline type, color, and more.

Gridlines can help differentiate between the primary and secondary data series, making your chart easier to understand.

There you have it! You've successfully added a secondary x-axis to your Excel chart. Visually comparing 'Sales' and 'Profit' on the same chart can provide valuable insights and help convey your data story more effectively. Happy charting!

How to Change Axis Scale in Excel (with Easy Steps) - ExcelDemy
How to Change Axis Scale in Excel (with Easy Steps) - ExcelDemy
How to Change Y Axis Scale in Excel (with Easy Steps) - ExcelDemy
How to Change Y Axis Scale in Excel (with Easy Steps) - ExcelDemy
Excel Axis Scale (Change Scale, X and Y-Axis Values) - ExcelDemy
Excel Axis Scale (Change Scale, X and Y-Axis Values) - ExcelDemy
AD