To change the Y axis data in an Excel chart, you can either modify the source data range via the Select Data menu or adjust the axis scale through the Format Axis pane. Changing the data source updates which numbers appear on the axis, while adjusting the scale changes how those numbers are displayed (e.g., changing the minimum or maximum value). Note that menu labels may differ slightly depending on your version of Excel (Windows, Mac, or Web).
What You'll Need
- A computer with Microsoft Excel installed or access to Excel for the Web.
- An existing chart created within an Excel workbook.
- The new data set or the specific numerical bounds you wish to apply to your axis.
Step-by-Step
Depending on your goal, you will either need to change what data the axis represents or how that data is scaled. Follow the corresponding method below.
Method 1: Changing the Data Source (The "What")
Use this method if the chart is pulling from the wrong cells or if you have added new rows/columns to your spreadsheet that need to be reflected on the Y axis.
- Right-click anywhere on the chart area.
- Select Select Data... from the context menu. This opens the Select Data Source dialog box.
- In the Legend Entries (Series) box on the left, click the series you wish to modify and click Edit.
- In the Series values field, delete the existing cell range.
- Click and drag your mouse over the new range of cells in your worksheet that contains the Y axis values, or manually type the range (e.g.,
=Sheet1!$B$2:$B$10). - Click OK on the Edit Series window, then click OK again on the Select Data Source window.
Method 2: Adjusting the Axis Scale and Bounds (The "How")
Use this method if the data is correct, but the axis starts at the wrong number, has too many increments, or doesn't show the full range of your data.
- Right-click directly on the numbers of the Y axis (the vertical axis).
- Select Format Axis... from the menu. This will open the Format Axis pane on the right side of the screen.
- In the Format Axis pane, ensure the Axis Options icon (which looks like a small bar chart) is selected.
- Locate the Bounds section:
- Minimum: Enter the value where you want the Y axis to start. For example, if your data ranges from 50 to 60, setting the minimum to 40 prevents a large empty gap at the bottom.
- Maximum: Enter the value where you want the Y axis to end.
- Locate the Units section:
- Major: Change this number to control the distance between the gridlines and labels (e.g., changing this from 10 to 20 will show fewer numbers on the axis).
- Minor: Change this to adjust the smaller tick marks between major units.
- Press Enter or click outside the box to apply the changes instantly to the chart.
Common Mistakes
- Selecting the X Axis: Users often click the horizontal axis by mistake. Ensure you are right-clicking the vertical numbers to access the Y axis settings.
- Hard-coding Bounds: If you manually set a "Maximum" bound and then add new data that exceeds that number, the chart will cut off the top of your data bars or lines. If your data changes frequently, leave the bounds set to "Auto."
- Incorrect Range Selection: When editing series values, including the column header (the text label) in the range can sometimes cause Excel to misinterpret the data as text, leading to blank chart areas.
- Confusing Series with Axis Labels: The "Horizontal (Category) Axis Labels" box on the right of the Select Data menu controls the X axis, not the Y axis. The Y axis is always controlled via the "Legend Entries (Series)" section.
Tips
- Use Dynamic Named Ranges: If you frequently add data, consider converting your data range into an official Excel Table (Ctrl + T). Charts based on Tables update their axes automatically when new rows are added.
- Logarithmic Scale: If your Y axis data has a massive variance (e.g., some values are 10 and others are 10,000), check the Logarithmic scale box in the Format Axis pane to make the chart readable.
- Resetting to Auto: If you have messed up the bounds and the chart looks strange, go back to the Format Axis pane and click the Reset button next to the Minimum or Maximum values to return to automatic scaling.
Troubleshooting
If the Y axis is not updating as expected, try these steps in order:
- Check for Hidden Rows: By default, Excel does not plot data in hidden rows or columns. If your data is there but not appearing on the axis, right-click the chart > Select Data > Hidden and Empty Cells > check Show data in hidden rows and columns.
- Verify Data Types: Ensure the numbers in your cells are formatted as "Number" or "General" and not as "Text." If a number is stored as text, Excel treats it as a zero or ignores it, which will skew your Y axis.
- Refresh the Chart: Sometimes a simple data change doesn't trigger a visual refresh. Click any empty cell in the worksheet or press F9 to recalculate the workbook.
- Check for Overlapping Series: If you have multiple data series, ensure you are editing the specific series that corresponds to the Y axis values you want to change.
Frequently Asked Questions
Can I have two different Y axes in one chart?
Yes. Right-click a data series in your chart, select Format Data Series, and choose Secondary Axis. This creates a second vertical axis on the right side of the chart for different scales.
How do I change the Y axis to percentages?
Right-click the Y axis > Format Axis > Number. Under the Category dropdown, select Percentage and choose your desired decimal places.
Why is my Y axis starting at a number other than zero?
Excel often chooses an "Auto" minimum that best fits the data to highlight trends. To force it to start at zero, go to Format Axis > Bounds > Minimum and manually type 0.
How do I remove the Y axis entirely?
Click the chart, go to the Chart Design tab in the top ribbon, click Add Chart Element > Axes, and uncheck Primary Vertical Axis.
Can I change the Y axis to a date format?
Yes, provided the source data in your cells are valid Excel dates. Use the Format Axis > Number menu and select the Date category.