Display Equation of Line

andydarly

New Member
Joined
Oct 18, 2016
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi, all. I am looking to see if anyone knows if it is possible to display the Equation of the Line outside the chart itself so I can use it in calculations. In the attached I have a simple line graph displaying the line formula within the chart but wanted to know if it is possible to have this formula displayed in say cell A1?

Thanks in advance
 

Attachments

  • Line Graph.PNG
    Line Graph.PNG
    11.6 KB · Views: 7

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Try using the following formulas for the slope and y-intercept:
Excel Formula:
=INDEX(LINEST(known_y's,known_x's),1)
=INDEX(LINEST(known_y's,known_x's),2)
 
Upvote 0
Try using the following formulas for the slope and y-intercept:
Excel Formula:
=INDEX(LINEST(known_y's,known_x's),1)
=INDEX(LINEST(known_y's,known_x's),2)
Hi, Tetra201. Thanks for your reply.

I get #Value! when I try that. This might only work for straight line graphs though. I was hoping to have the formula outside so that if I changed the Trendline Option to say log or polynomial the formula would change and my calculation could change with it
 
Upvote 0

Forum statistics

Threads
1,215,330
Messages
6,124,305
Members
449,150
Latest member
NyDarR

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top