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.

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.

Tags: excelexcel, function