N
The Global Insight

Can you use Excel for regression?

Author

Christopher Davis

Updated on February 08, 2026

To run the regression, arrange your data in columns as seen below. Click on the “Data” menu, and then choose the “Data Analysis” tab. You will now see a window listing the various statistical tests that Excel can perform. Scroll down to find the regression option and click “OK”.

How do you do regression analysis on Excel?

Regression

  1. On the Data tab, in the Analysis group, click Data Analysis. Note: can’t find the Data Analysis button?
  2. Select Regression and click OK.
  3. Select the Y Range (A1:A8).
  4. Select the X Range(B1:C8).
  5. Check Labels.
  6. Click in the Output Range box and select cell A11.
  7. Check Residuals.
  8. Click OK.

Can you do linear regression in Excel Online?

In Excel for the web, you can view the results of a regression analysis (in statistics, a way to predict and forecast trends), but you can’t create one because the Regression tool isn’t available.

How does Excel calculate linear regression?

In regression analysis, Excel calculates for each point the squared difference between the y-value estimated for that point and its actual y-value. The sum of these squared differences is called the residual sum of squares, ssresid. Excel then calculates the total sum of squares, sstotal.

How do you calculate regression by hand?

Simple Linear Regression Math by Hand

  1. Calculate average of your X variable.
  2. Calculate the difference between each X and the average X.
  3. Square the differences and add it all up.
  4. Calculate average of your Y variable.
  5. Multiply the differences (of X and Y from their respective averages) and add them all together.

What is the formula for line of best fit?

Here is the formula for a linear least squares line, or best fit straight line: (Remember that the equation of a line is y = mx + b, with m = slope and b = y-intercept.)

How to run regression analysis in Microsoft Excel?

Open the Regression Analysis tool. If your version of Excel displays the ribbon, go to Data, find the Analysis section, hit Data Analysis, and choose Regression from the list of tools. If your version of Excel displays the traditional toolbar, go to Tools > Data Analysis and choose Regression from the list of tools.

Where do I find the regression tool pack in Excel?

Find Analysis tool pack. If it’s on your list of active add-ins, you’re set. If it’s on your list of inactive add-ins, look at the bottom of the window for the drop-down list next to Manage, make sure Excel Add-Ins is selected, and hit Go. In the next window that pops up, make sure Analysis tool pack is checked and hit OK to activate.

Can you run linear regression on a PC?

The linear regression version of the program runs on both Macs and PC’s, and there is also a separate logistic regression version for the PC with highly interactive table and chart output.

What can you do with regressit for Excel?

Customization of the built-in teaching notes could be arranged to suit a program. RegressIt is also an excellent platform for online teaching: it makes great videos and is very efficient for use in workshops and webinars. If you would be interested in developing or co-developing an online course that uses it (e.g., at Coursera), please contact us.