Home » excel » excel – Is there a function i can use to get the equation for the trendline?

excel – Is there a function i can use to get the equation for the trendline?

Posted by: admin May 14, 2020 Leave a comment

Questions:

I know I can get it on the graph by checking show equation but I was wondering if there’s a formula that spits out the equation itself in a cell?

I need to do this for thousands of separate data sets and graphing them is just not an option.

How to&Answers:

The LINEST function calculates the statistics for a line by using the “least squares” method to calculate a straight line that best fits your data, and then returns an array that describes the line. (from Excel help)
Not sure, but you may need to enable the Analysis Toolpack addin before being able to use that function.