Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
lonschlong
 
Posts: n/a
Default How do you fit a line to a graph?

I am trying to fit a line to my graph meaning I need a straight line that
goes through an x y scatter graph and is close to all the points. IF anyone
has any clue about what im talking about please help???
  #2   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

lonschlong wrote:
I am trying to fit a line to my graph meaning I need a straight line that
goes through an x y scatter graph and is close to all the points. IF anyone
has any clue about what im talking about please help???


There are multiple approaches.

1) you can just graph your x,y scatter data. Then right click on one of
the data points on the chart and select "add trendline". Select a
linear trendline and it will magically appear! You can then right click
on your new trendline, tell it to "format" and on the "options" tab tell
it to display the equation it generated if you wish.

2) Use the SLOPE() and INTERCEPT() functions to create constants and
then use them in the y=mx+b form of the equation of a line to create a
third column of data which is your straight line. Then just plot that
in the normal manner. You can then also use the CORREL() function to
measure how closely your line matches the Y data points.

Good luck...

Bill
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
overcoming zero values in line graph marika1981 Charts and Charting in Excel 3 March 11th 05 02:09 AM
Creating a line graph from 2 pivot tables? gmodi Charts and Charting in Excel 3 March 7th 05 02:09 PM
Line and Column Graph Nikki Charts and Charting in Excel 3 February 4th 05 04:42 AM
Can you have a vertical line graph in Excel 2003 smithers2002 Charts and Charting in Excel 3 January 12th 05 01:27 PM
How do I "index" data in a line graph? ShirleyJL Charts and Charting in Excel 2 January 10th 05 10:06 PM


All times are GMT +1. The time now is 04:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"