How do I set the range of a trend line in Excel?

G

Guest

I am using excel to create trend lines in a chart. I have four different sets
of data, two sets lie on weeks 1-6, and two sets lie on weeks 7-12 (x-axis).
Right now, I can make individual trend lines for all four sets of data, but
they extend the length of the x-axis (all 12 weeks). How do I get the trend
lines to extend just within the data range? Thanks for any help.
 
J

Jon Peltier

In a line chart (in any chart with a category axis, in fact), a
trendline covers the entire range of the X axis. If you're able to plot
the points on a Scatter chart, the trendline only spans the actual range
of data.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
 
G

Guest

Jon,
Thanks for your help. It is good to know what I can't do it so I stop
banging my head trying.
Elizabeth
 
T

Tammy

Hi Jon,

I have a user who is trying to make his trend line span only the range of
the data, instead of the entire range of the X axis. He is using a Scatter
chart. Can you explain how he can do this?

We are using Excel 2007.

I have been looking for the options, but can't seem to find the right one.

Please let me know if you need any further info.

Thanks for any help you can provide.
 
A

Andy Pope

Hi,

As Jon wrote a trendline is based on ALL the data in a series. If you want
to trend partial data you will need to create another series that is just
the partial data.
You can then add your trend line to that series. The series with partial
data can be formatted such that it does not shown on the chart by setting
the line and marker styles to none.

Cheers
Andy
 
T

Tammy

Hi Andy,

Thanks so much for your prompt response, I really appreciate it.

I will forward the info to my user.

Thanks!
 
T

Tammy

Hi Kelly,

Thanks so much for providing your helpful article. I will forward that to my
user, as well.

Thanks, again! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top