=CORREL(array1, array2)
Returns Karl Pearson's correlation coefficient \(r\), between −1 and +1.
Equivalent: =PEARSON(array1, array2) — same result.
Hours of study in A2:A11, marks in B2:B11. =CORREL(A2:A11, B2:B11) might return 0.92 — strong positive correlation.
Price (column A) and demand (column B) for 20 weeks: =CORREL(A2:A21, B2:B21) might return −0.84 — strong negative correlation.
| Function | Divisor | Use |
|---|---|---|
=COVARIANCE.P(array1, array2) | n | Population covariance |
=COVARIANCE.S(array1, array2) | n − 1 | Sample covariance (unbiased) |
Recall: \(r = \text{Cov}(X, Y) / (\sigma_X \sigma_Y)\). Cov is in original units; r is unit-free.
Excel has no direct Spearman function. Combine RANK.AVG with CORREL:
=RANK.AVG(A2, $A$2:$A$11, 1) and drag down — ranks of X (ties get average rank).=RANK.AVG(B2, $B$2:$B$11, 1) and drag down — ranks of Y.=CORREL(C2:C11, D2:D11) — this is Spearman's \(\rho\).Marks of Judge A: 90, 85, 70, 60, 95 (A2:A6); Judge B: 88, 80, 75, 65, 92 (B2:B6). Compute ranks (descending or ascending — order is consistent): both give ranks 4, 3, 2, 1, 5. Then =CORREL(ranksA, ranksB) gives ρ = 1.0 — the two judges rank the five candidates in exactly the same order, so rank agreement is perfect (\(\sum d^2 = 0\)).
Useful when data are ordinal (rankings) or have outliers — Spearman is less sensitive than Pearson.
Use Data Analysis ToolPak → Correlation:
For variables Height (A), Weight (B), Age (C): ToolPak produces:
| Height | Weight | Age | |
|---|---|---|---|
| Height | 1 | ||
| Weight | 0.85 | 1 | |
| Age | 0.40 | 0.32 | 1 |
| Function | Returns |
|---|---|
=SLOPE(y_range, x_range) | Slope b of the regression line Y = a + bX |
=INTERCEPT(y_range, x_range) | Intercept a |
=RSQ(y_range, x_range) | R² (coefficient of determination) |
=STEYX(y_range, x_range) | Standard error of the estimate |
=FORECAST.LINEAR(x, known_y, known_x) | Predicted Y for a given X |
Study hours (A2:A11) and marks (B2:B11).
=SLOPE(B2:B11, A2:A11) → 7.5=INTERCEPT(B2:B11, A2:A11) → 32=RSQ(B2:B11, A2:A11) → 0.846=FORECAST.LINEAR(5, B2:B11, A2:A11) → 32 + 7.5 × 5 = 69.5.Sales (Y) vs advertising spend (X). Once SLOPE and INTERCEPT are computed, fitted line is \( \hat Y = a + bX \). Use FORECAST.LINEAR to predict sales for a planned advertising budget.
For a full regression report (ANOVA, t-statistics, R², p-values, confidence intervals):
Output from regression of marks on study hours:
| Statistic | Value |
|---|---|
| Multiple R | 0.920 |
| R Square | 0.846 |
| Adjusted R² | 0.827 |
| Std. Error | 4.62 |
| Observations | 10 |
| Coeff. | Std. Err | t | p-value | |
|---|---|---|---|---|
| Intercept | 32.00 | 4.50 | 7.11 | 0.0001 |
| Study hours | 7.50 | 1.12 | 6.70 | 0.0002 |
p-value of slope < 0.05 ⇒ study hours significantly predict marks.
=FORECAST.LINEAR(x_new, known_y, known_x)
Returns the predicted Y for a single new X assuming a linear model fitted to historical (known_x, known_y).
=TREND(known_y, known_x, new_x, [const])
Returns predicted Y values for multiple new_x values simultaneously (array formula in legacy Excel; spills in 365).
=LINEST(known_y, known_x, [const], [stats]) returns an array of regression coefficients (and optional statistics). Useful for multivariate regression in cells.
=GROWTH(known_y, known_x, new_x, [const]) fits \(Y = a \cdot b^X\) and predicts.
=FORECAST.ETS(target_date, values, timeline, [seasonality], [data_completion], [aggregation]) applies Holt–Winters triple-exponential smoothing for seasonal time series.
Excel also has a Forecast Sheet tool (Data → Forecast → Forecast Sheet) that automatically builds a chart and table with confidence intervals.
Months 1–12 sales in A2:A13, B2:B13. To predict month 15: =FORECAST.LINEAR(15, B2:B13, A2:A13). For months 13–18 at once: select B14:B19 and enter {=TREND(B2:B13, A2:A13, A14:A19)} as array formula (or just =TREND(...) in Excel 365).
Quarterly revenue 8 quarters → predict next 4 using Forecast Sheet: select data → Data → Forecast Sheet → set forecast end → Create. Excel auto-fits ETS and shows lower/upper 95 % CI.
The on-chart equation gives you a sanity check on SLOPE and INTERCEPT.
=CORREL; covariance =COVARIANCE.P/S; Spearman via RANK.AVG + CORREL.=FORECAST.LINEAR (single), =TREND (multiple), =GROWTH (exponential), =FORECAST.ETS (seasonal).