ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   How can I graph an equation instead of points? (https://www.excelbanter.com/new-users-excel/163193-how-can-i-graph-equation-instead-points.html)

Scott Murphy

How can I graph an equation instead of points?
 
Instead of plotting points on a graph, I would like to graph an equation in
the form of y = mx + b. How should I put this into a chart?

Bernie Deitrick

How can I graph an equation instead of points?
 
Scott,

Make up two columns, one with your xvalues (let's say, from A2 down), the other with the formula

=m*A2+b

where A2 is the first of your xvalues. Substitute m and b with values or cell references - like $C$2

Then copy that formula down, and graph based on that table.

HTH,
Bernie
MS Excel MVP


"Scott Murphy" <Scott wrote in message
...
Instead of plotting points on a graph, I would like to graph an equation in
the form of y = mx + b. How should I put this into a chart?




David Biddulph[_2_]

How can I graph an equation instead of points?
 
Decide on your minimum & maximum X values for your graph, & put them in
consecutive cells in a column (perhaps A2 & A3). Use your formula to
generate corresponding Y values in the next column (B2 and B3).
To aid in plotting the graph, put a heading (Y, or whatever) at the top of
your Y column but leave the corresponding heading blank at the top of the X
column. Select the 2 columns, including the Y heading and the blank above
the X (A1:B3), Insert/ Chart/ XY (select the subtype with straight line and
no point markers, if that's what you want), Series in columns, ... other
options to suit.
-
David Biddulph

"Scott Murphy" <Scott wrote in message
...
Instead of plotting points on a graph, I would like to graph an equation
in
the form of y = mx + b. How should I put this into a chart?




MartinW

How can I graph an equation instead of points?
 
G'day Scott,

You're not by any chance a soil tester from Australia are you?



"Scott Murphy" <Scott wrote in message
...
Instead of plotting points on a graph, I would like to graph an equation
in
the form of y = mx + b. How should I put this into a chart?





All times are GMT +1. The time now is 03:53 AM.

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