How to Extend Trendline in Excel to Y Axis

Cody Schneider7 min read

Ever create a scatter plot in Excel, add a trendline, and then scratch your head wondering why it’s floating in the middle of your chart instead of starting from the vertical Y-axis? You’re not alone. This common quirk happens because Excel automatically scales your chart to fit your data, and if your data doesn't start at zero, your trendline won't appear to start there either. This tutorial will walk you through exactly how to extend that trendline so it connects to the Y-axis, giving you a clearer picture of your data's starting point.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

We’ll cover two straightforward methods: a quick-fix using Excel's built-in formatting tools and a manual approach using functions for full control. By the end, you'll be able to make your charts tell the full story, from the y-intercept onward.

Why Doesn't My Trendline Touch the Y-Axis?

Before we jump into the fix, it helps to understand why this happens in the first place. The answer comes down to how Excel visualizes your data. Excel’s primary goal is to make your data presentable and readable, not necessarily to create a perfectly scaled academic graph starting from zero every time.

Imagine you're tracking website traffic from a new marketing campaign. Your data looks something like this:

When you turn this into a scatter plot, Excel notices that all your X-axis values (Days Since Launch) are clustered between 14 and 18. To make the chart easier to read, it optimizes the X-axis to only show a relevant range—perhaps from 13 to 19. Since the point where Day = 0 is far off to the left, you can’t see the Y-axis intercept.

The trendline you add is just a visual representation of the mathematical relationship between your specific data points. The line exists mathematically back to zero, but Excel only draws the portion that corresponds to the visible area of your chart. Extending the trendline simply tells Excel, "Go ahead and draw the line all the way back to X = 0 so I can see where it starts."

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Method 1: Extending the Trendline with the 'Forecast' Feature

This is the fastest and most common way to get your trendline to meet the Y-axis. It uses a built-in feature that many users miss. All it takes is a few clicks within the trendline formatting options.

Step 1: Create a Scatter Plot with a Trendline

First, you need a chart. Let's use an e-commerce example where we're tracking daily sales based on the number of marketing emails sent.

  1. Organize your data. Set up two columns: one for your independent variable (X-axis, e.g., 'Emails Sent') and one for your dependent variable (Y-axis, e.g., 'Total Sales'). Make sure your X-axis values do not start at zero.
  2. Insert the chart. Highlight both columns of data, go to the Insert tab on the Ribbon, find the Charts group, and select Insert Scatter (X, Y) or Bubble Chart. Choose the first option—a simple scatter plot.
  3. Add the trendline. Right-click on any of the data points in your chart and select Add Trendline... from the context menu. A dotted line will appear, and the Format Trendline pane will open on the right side of your screen. Keep it linear for this example.

You'll now have a scatter plot with a floating trendline that doesn’t reach the Y-axis because our Emails Sent data starts at 1,000, not 0.

Step 2: Use the 'Backward Forecast' to Extend the Line

This is where the magic happens. The Format Trendline pane holds the key to extending the line.

  1. Open Trendline Options. If the Format Trendline pane isn't already open, double-click the trendline to open it.
  2. Find the Forecast option. In the pane, ensure you're on the Trendline Options tab (the one that looks like a bar chart). Scroll down to see a section called Forecast.
  3. Enter a 'Backward' value. You’ll see two boxes: "Forward" and "Backward." The "Backward" box tells Excel how many units to extend the trendline to the left on the X-axis. To reach X=0, extend it backward by the same amount as your lowest X data point.

In our example, the lowest value for 'Emails Sent' is 1000. So, in the Backward field, type 1000.

As soon as you enter this, the trendline instantly extends to the Y-axis. The chart’s X-axis will automatically adjust to include “0.”

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Pro Tip: Finding the Y-Intercept Value

Extending the line visually shows you the starting point, but what’s that exact value on the Y-axis?

In the same Format Trendline pane, scroll down and check the box that says Display Equation on Chart. Excel will add a text box with the formula for the trendline, typically in the format y = mx + b.

y = 4.25x + 850

The variable ‘b’ (here, 850) is the Y-intercept. This indicates that, according to the trend, if you sent zero emails, you'd theoretically make $850 in sales. This is a powerful baseline metric.

Method 2: Calculating and Plotting the Intercept Yourself

While the first method is quick, you might prefer more control or need to use the intercept in formulas. This involves using Excel's SLOPE and INTERCEPT functions to build a new data series for a customized trendline.

This approach is ideal when you need to create a specific visualization or build a dynamic dashboard where data may change.

Step 1: Calculate Slope and Intercept with Functions

Use empty cells in your worksheet to perform these calculations:

  • For the intercept: =INTERCEPT(known_y's, known_x's)
  • For the slope: =SLOPE(known_y's, known_x's)

Select your ‘Total Sales’ column for known_y’s and ‘Emails Sent’ for known_x’s.

Step 2: Create a New Data Table for the Trendline

Create a small table with columns "Trendline X" and "Trendline Y" with these points:

  • First point (Y-intercept):
  • Second point (End of line):

Step 3: Add the New Data Series to Your Chart

  1. Right-click your chart and choose Select Data...
  2. Click "Add" to add a new series
  3. In Edit Series:
  4. Click OK twice. You’ll see a new line connecting your two points.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Step 4: Format the Line

Change the new series to look like a trendline:

  • Right-click the new line, choose Change Series Chart Type...
  • Change its type from Scatter to Scatter with Straight Lines
  • Adjust the color/thickness as desired

This method, while more involved, provides full control and is excellent for dynamic data environments.

Common Pitfalls and Best Practices

Ensure You're Using a Scatter Chart

Make sure your chart type is Scatter (not Line). Line charts treat X as categorical, which can distort trendlines.

Check the Forecast Backward Value

If entering the “Backward” option doesn’t work, verify you’re entering the exact lowest X value. It should match your data (e.g., 1000).

Be Mindful of Trendline Extrapolation

Extending trendlines involves extrapolation, a prediction based on data trends. Use this judiciously, it provides insights but isn't always precise in real-world scenarios.

Final Thoughts

Extending the trendline in Excel to reach the Y-axis enhances your data visualization by revealing baselines and starting points. Whether using Excel’s built-in 'Forecast' feature or the manual calculation approach with INTERCEPT() and SLOPE(), you gain a clearer understanding of your data's story. Combining both methods with thoughtful analysis can help you develop dynamic, insightful charts and reports. When in doubt, remember: the goal is meaningful, honest visualization—use trendline extension as a helpful guide, not an absolute truth.

When blending these techniques and supporting your reports with solid data practices, you can transform raw numbers into automated insights. Whether analyzing data or optimizing your visualization workflows, tools like Graphed (https://www.graphed.com/register) can streamline your data reporting across all channels.

Related Articles