How to Find Regression in Excel

If you just need to find regression in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: enable the Analysis ToolPak and use Data ▸ Data Analysis ▸ Regression, or get the same coefficients as a formula with LINEST.

On this page7
ƒxCorrelation & TrendlineLive

6 pairs

Correlation (r)
0.9981

R² = 0.9962

Slope
1.9857

Intercept = 0.1667

=CORREL(A2:A10,B2:B10) · =SLOPE(B,A) · =RSQ()
=LINEST(B2:B50,C2:D50,TRUE,TRUE)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Regression fits a straight-line relationship between one outcome column and one or more predictor columns. The ToolPak produces a full report — coefficients, their standard errors, t statistics and p-values, R squared, and the F test for the model as a whole. LINEST returns the same numbers as a spilled array without the report layout. Both require the predictor columns to be contiguous. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “find regression in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a data step that keeps your analysis trustworthy, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

Revenue in B2:B50 is modelled on ad spend in C and site visits in D. Data ▸ Data Analysis ▸ Regression with Input Y Range B1:B50, Input X Range C1:D50 and Labels ticked returns R Square 0.83, an ad-spend coefficient of 2.4 with a p-value of 0.004, and a visits coefficient whose p-value of 0.31 says it adds nothing once spend is in the model. The ToolPak output is the difference between an estimated relationship and a quantified one — the p-values are what stop a coincidence being presented as a driver. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. The short version of “find regression in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.

Common mistakes

  • Selecting non-adjacent predictor columns; both the ToolPak and LINEST need one contiguous X block, so copy the columns together first.
  • Reading LINEST's coefficients left to right in column order — it returns them in reverse, with the last predictor first.
  • Reporting a high R squared as proof of causation when the predictors were chosen after seeing the data.
  • Leaving strongly correlated predictors in the model, which makes individual coefficients unstable even when the fit looks excellent.

Frequently asked questions

Where is regression in Excel?

Data ▸ Data Analysis ▸ Regression, which appears only after the Analysis ToolPak add-in is enabled.

Is it available on a Mac?

Yes, the Analysis ToolPak ships with Excel for Mac 2016 and later and is enabled from Tools ▸ Excel Add-ins.

What does R squared tell me?

The share of the variation in the outcome the model accounts for. It always rises when predictors are added, so use Adjusted R Square to compare models of different size.

How do I get the equation without the report?

LINEST returns the coefficients and the intercept; SLOPE and INTERCEPT do the same for a single predictor.