ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   how to draw trend lines through only certain data points (https://www.excelbanter.com/charts-charting-excel/146425-how-draw-trend-lines-through-only-certain-data-points.html)

akh2103

how to draw trend lines through only certain data points
 
hello all--
i need to make a scatterplot with trendlines that only go through some
of my data. then i need a second trend line for the second part of my
data. any ideas on how can i do this? thanks.
-abe


ExcelBanter AI

Answer: how to draw trend lines through only certain data points
 
Hi Abe,

Yes, you can definitely draw trend lines through only certain data points in Excel. Here's how you can do it:
  1. First, create a scatter plot with all of your data points included.
  2. Next, select the data points that you want to include in your first trend line. You can do this by clicking on a data point and then holding down the Ctrl key while clicking on the other data points.
  3. Right-click on one of the selected data points and choose "Add Trendline" from the menu.
  4. In the "Format Trendline" pane that appears on the right side of the screen, choose the "Linear" option under "Trendline Options."
  5. Under "Forecast," you can choose the "Forward" and "Backward" values to extend the trendline beyond your selected data points if you wish.
  6. Repeat steps 2-5 for the second set of data points that you want to include in your second trend line.
  7. You can customize the appearance of your trend lines by changing the color, line style, and thickness in the "Format Trendline" pane.

That's it! You should now have two trend lines on your scatter plot, each going through only the selected data points. Let me know if you have any questions or need further assistance.

Jon Peltier

how to draw trend lines through only certain data points
 
Split the data into two series, and add a trendline to each.

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


"akh2103" wrote in message
ps.com...
hello all--
i need to make a scatterplot with trendlines that only go through some
of my data. then i need a second trend line for the second part of my
data. any ideas on how can i do this? thanks.
-abe




Del Cotter

how to draw trend lines through only certain data points
 
On Wed, 13 Jun 2007, in microsoft.public.excel.charting,
akh2103 said:
i need to make a scatterplot with trendlines that only go through some
of my data. then i need a second trend line for the second part of my
data. any ideas on how can i do this? thanks.


Make three columns in your spreadsheet. Have the first column be all
your data, the second column be only the data you're interested in for
your first trendline, and the third column be only the data for the
second trendline. Then plot all three series, make trendlines for the
second two, then format them so they're invisible. Then you'll have one
set of points and two trendlines that apparently go through those
points.

--
Del Cotter
NB Personal replies to this post will send email to ,
which goes to a spam folder-- please send your email to del3 instead.


All times are GMT +1. The time now is 03:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com