Changing the axis in Excel charts is a straightforward way to make your data easier to read and more visually appealing. You can adjust the scale, remove gridlines, or switch between vertical and horizontal layouts with just a few clicks. To do this, open your chart in Excel, click on the axis you want to change, and use the "Format Axis" pane to modify the settings. This guide covers the specific steps for desktop versions and explains common options you will see.
What You'll Need
- A computer with Microsoft Excel installed (2016, 2019, or Office 365 are recommended for the most options).
- A dataset or spreadsheet with at least two columns of data to create a chart.
- A basic understanding of which axis is which (the horizontal axis is the X-axis, and the vertical axis is the Y-axis).
Step-by-Step
- Open your chart. Launch Excel and open the workbook containing the data or chart you want to edit. If you are starting from a blank sheet, highlight your data and insert the chart type you prefer (e.g., Column, Line, or Scatter).
- Select the axis. Click directly on the axis you wish to modify. If you want to change the vertical axis (the Y-axis), click the left or right edge of the chart where the numbers are displayed. To change the horizontal axis (the X-axis), click the bottom or top edge of the chart where the categories are shown. You will see a thin blue border appear around the text labels when selected.
- Open the Format Axis pane. Once the axis is selected, look for the three dots (...) on the right side of the chart area. Click the ellipsis icon, then choose "Format Axis" from the menu that appears on the right side of the screen. Alternatively, you can right-click the axis and select "Format Axis" from the context menu.
- Understand the Category Options (Horizontal Axis). The pane will open with two tabs at the top: "Axis Options" and "Text Options." In the "Axis Options" section, you will see settings that control the labels and the spacing of your categories. For example, you can set the "Number of categories between tick-mark labels" to control how crowded the dates or names appear. If your data is time-based, look for the checkbox labeled "Categories in reverse order" to flip the timeline left-to-right or right-to-left.
- Adjust the Bounds and Units (Vertical Axis). In the same pane, look for the "Bounds" section at the top. This allows you to set the minimum and maximum values for the chart. For instance, if your data runs from 0 to 100, but you want to start the scale at 50, type "50" in the Minimum box. The "Units in Major Ticks” box controls the spacing of the gridlines. Typing a lower number (like 10 or 20) creates more gridlines for finer detail, while a higher number (like 50) creates fewer lines.
- Change the Number Format. Below the Bounds section, you will find the "Number" category. Click this dropdown to select how the data is displayed. Common choices include "Currency" for financial data, "Percentage" for ratios, or "Short Date" for timeline data. You can also use the "Format Code" option to create custom formats, such as adding a "$" sign or changing the number of decimal places.
- Modify the Fill & Line (Text Options). Click the "Text Options" tab at the top of the pane. Here you can change the font color, size, and weight. You can also add a background color or a border to the axis labels by using the Fill and Border tools. This is useful if you have a dark chart background and need white text to make the labels readable.
- Switch the Row and Column data. If you want to switch the axis completely (e.g., turn a column chart into a row chart), click the "Switch Row/Column" button located in the upper-right corner of the chart. This swaps the data series so that the categories on the vertical axis become the data series, and vice versa.
Common Mistakes
One of the most frequent issues users encounter is not selecting the correct axis. If you click on a data bar or a line, the Format options will apply to that series instead of the axis. Always click on the specific text labels (the numbers or the category names) to ensure you are editing the axis settings.
Another mistake is failing to uncheck the "Automatically” box before entering custom bounds. If you type a new minimum value but leave "Automatically” checked, Excel may override your number with a calculated value the next time the data changes. Always uncheck "Automatically” to lock in your specific settings.
Users also often forget to adjust the scale for the number of categories. If you have a scatter plot with many data points, leaving the default settings can make the X-axis labels unreadable. Reducing the "Number of categories between tick-mark labels” to 1 or 2 can often fix this visual clutter.
Tips
Use the "Logarithmic Scale” option if you are plotting data that spans several orders of magnitude, such as population growth or earthquake magnitudes. This compresses the large numbers and spreads out the smaller ones for better visibility.
For time-based horizontal axes, ensure your data is formatted as dates. If Excel reads the text as general labels, it will not sort them chronologically. Select the column, go to the Home tab, and choose "Format Cells” to set the type to "Date.”
When creating a secondary axis for a specific data series, ensure the two datasets have different units or scales. Excel will only offer the option to add a secondary axis if the data is not compatible with a single scale.
Troubleshooting
If your axis labels are not appearing or are cut off, check the chart area size. Sometimes the text is there, but the chart border is too tight. Click on the edge of the chart area (the white space surrounding the chart) and drag the corner handles outward to expand the canvas so there is room for the labels.
If you cannot find the Format Axis pane, try double-clicking the axis again. If that still does not open the pane, try right-clicking the axis. If neither method works, the chart may have been converted to an image or a static object. You must select the chart object itself (the whole box) rather than the axis text to access the formatting options.
If the numbers on your axis are displaying as dates (e.g., showing "1/1/2020” instead of a number), it is likely that your data is formatted as text or dates rather than general numbers. Select the axis in the pane, go to the "Number” category, and change it from "Date” to "General” or "Number.”
Frequently Asked Questions
How do I add a secondary vertical axis?
To add a secondary axis, click on the data series you want to display on the right side of the chart. In the top menu, go to the "Chart Design” tab and click "Add Chart Element.” Select "Axes” and choose "Secondary Vertical.” This will create a new axis on the right with its own scale.
Why does the horizontal axis show dates instead of months?
This usually happens if your data is not sorted chronologically or formatted as text. Ensure your data is sorted from oldest to newest. If the text looks like "Jan, Feb, Mar,” change the cell format to "Date” so Excel recognizes the sequence and labels the axis correctly.
Can I change the color of the gridlines?
Yes. Click on any gridline in the chart. This will select the entire gridline category. Open the Format pane, go to the "Fill & Line” icon, and use the "Color” picker to choose a new shade. You can also make them lighter by adjusting the "Transparency” slider.
How do I hide the axis completely?
Select the axis you want to hide by clicking on it. In the Format pane, go to the "Fill & Line” icon and choose "No fill” for the axis line. You can also go to the "Size & Properties” tab within the pane and check the box labeled "Hide.”
Does this work on mobile versions of Excel?
Basic axis formatting is available on mobile devices, but the options are limited. You can tap the axis text to select it and use the paint bucket icon to change colors, but advanced options like changing the minimum value or the number of categories may not be available in the mobile app interface.