Is there a function i can use to get the equation

2019-02-27 16:27发布

问题:

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.

回答1:

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.