In Excel: enable the Analysis ToolPak and use Data ▸ Data Analysis ▸ Regression, or get the same coefficients as a formula with LINEST.
6 pairs
R² = 0.9962
Intercept = 0.1667
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. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel multiple linear regression analysis”. 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 visual that makes the number obvious at a glance, 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. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Treat “excel multiple linear regression analysis” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.
Common mistakes
- Selecting non-adjacent predictor columns; both the ToolPak and
LINESTneed 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.
Other ways people ask this
People reach this page typing “how to run multiple linear regression in excel”, “multiple linear regression excel formula slope”, “how to find linear regression in excel” and “how to run linear regression in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.
Why do people search for this in so many different ways?
Because the same task has many names. “how to run multiple linear regression in excel”, “multiple linear regression excel formula slope”, “how to find linear regression in excel” all point at the one operation explained on this page, which is why they all lead here.