SLOPE in Zoho Sheet: Linear Regression Slope and Examples
Calculate the rate of change in a Zoho Sheet linear-regression trend, with paired observations and verified independent arithmetic.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: SLOPE estimates how much a dependent value (y) changes for each one-unit increase in an independent value (x) along a least-squares straight line. For the six-week order sample below, =SLOPE(B2:B7;A2:A7) has the independently calculated expected result 1.285714286 orders per week. This describes an estimated trend, not a guarantee about the next week. Zoho describes the function as linear-regression slope, and explicitly names dependent y first, independent x second. Zoho SLOPE documentation, checked October 12, 2026.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked sources.
- Availability: Currently documented in Zoho Sheet’s rolling web-service help; no numbered release or retirement endpoint is established.
- Scope: English-language web-service documentation. Mobile and offline-client parity is outside the verified scope.
- Checked: October 14, 2026, against the official SLOPE reference. Documentation check; not a new native test.
Exact syntax and arguments
=SLOPE(y_values; x_values)
| Argument | Required? | Accepted purpose |
|---|---|---|
y_values |
Yes | Numeric dependent observations; a cell range or array such as B2:B7. The measured outcome goes first. |
x_values |
Yes | Numeric independent observations; a corresponding range or array such as A2:A7. This is the explanatory variable, not a forecast input. |
Neither argument has a documented optional default. The two sets must have the same number of entries; Zoho documents #N/A! when the sets are empty or their lengths do not match. Text, Boolean/logical values and blank cells are stated to be ignored. The Zoho help entry does not specify every detail of paired-row filtering when just one column is nonnumeric; avoid making assumptions about that edge case. Source: official SLOPE help, syntax, remarks and errors; checked October 12, 2026.
Reproduce the six-week example
- Create a blank sheet, then enter the following values in A1:B7.
- Confirm both data columns contain actual numeric cells and the two ranges are the same height.
- Enter the formula in a separate unused cell such as D2; do not place a formula inside its own source ranges.
- Display enough decimal places to compare with the expected result. Cell formatting can round the display without changing underlying values.
| Row | A — Week (x) |
B — Orders (y) |
|---|---|---|
| 1 | Week | Orders |
| 2 | 1 | 3 |
| 3 | 2 | 5 |
| 4 | 3 | 4 |
| 5 | 4 | 8 |
| 6 | 5 | 7 |
| 7 | 6 | 10 |
All six rows represent paired observations: week 1 corresponds to 3 orders, week 2 to 5 orders, and so on. Keep the header row outside the input ranges. Do not sort only one column; doing so destroys the pairings. Check that A2:B7 are numeric, with no text-number import problems.
Worked example 1 — Find the weekly trend
Enter in D2:
=SLOPE(B2:B7;A2:A7)
Expected numeric result: 1.285714285714286 (displayed as 1.285714286). This line estimates about 1.29 additional orders per week in the six-week sample. The units are orders / week, not orders on a specific future day. Reversing the arguments to SLOPE(A2:A7;B2:B7) solves a different regression, so it does not simply return the reciprocal of the original slope.
Verify the calculation instead of trusting a displayed number
For a simple least-squares line with a free intercept, let x̄ and ȳ be the numeric means of the paired observations. Then
x̄ = 3.5,ȳ = 37/6 = 6.166666667.Sxx = Σ(x − x̄)² = 17.5.Sxy = Σ(x − x̄)(y − ȳ) = 22.5.Syy = Σ(y − ȳ)² = 209/6 ≈ 34.833333333.- Least-squares slope
b = Sxy/Sxx = 9/7 ≈ 1.285714286. - Fitted y-axis intercept
a = ȳ − b×x̄ = 5/3 ≈ 1.666666667. - Correlation squared
r² = Sxy²/(Sxx×Syy) = 1215/1463 ≈ 0.830485304.
These figures were computed independently from the listed numbers. They are expected mathematical values, not output obtained from a native Zoho Sheet session. The agreement between the formulas is a useful cross-check only when every formula uses exactly the same paired numeric rows.
The expected slope comes from Sxy / Sxx, not from dividing the first and last values. A shortcut of (10−3)/(6−1)=1.4 uses only endpoints and is not the least-squares slope of all six observations. A regression trend uses the middle weeks too.
Worked example 2 — Compare with a perfect straight line
In a separate area place X values 1, 2, 3, 4 in F2:F5 and matching Y values 3, 5, 7, 9 in G2:G5, respectively. The points follow y = 2x + 1 exactly. Then use:
=SLOPE(G2:G5;F2:F5)
Expected result: 2. If the output is not 2, verify that G is the dependent range, F is the independent range, and the pairs were entered in the correct rows.
Worked example 3 — Read a negative trend correctly
Enter X values 1, 2, 3, 4, 5 in J2:J6 and Y values 11, 9, 8, 6, 4 in K2:K6. Then use:
=SLOPE(K2:K6;J2:J6)
Expected result: -1.7. A negative slope means the fitted straight line decreases by 1.7 units of Y per additional X unit. The sample fluctuates around that fitted line; it does not imply every individual week declined by precisely 1.7.
Advanced application — Build a transparent two-function forecast
Place the next period 7 in A8. To calculate the fitted Y value, combine the separately documented slope and intercept:
=INTERCEPT(B2:B7;A2:A7)+SLOPE(B2:B7;A2:A7)*A8
Expected result at A8 = 7: 10.666666667. The independent regression equation is ŷ = 5/3 + (9/7)×x. For a presentation value rounded to two decimal places, use:
=ROUND(INTERCEPT(B2:B7;A2:A7)+SLOPE(B2:B7;A2:A7)*A8;2)
Expected result: 10.67. This advanced expression is documented as a suggested calculation, not a native Zoho execution. It is useful for a planning dashboard where readers want to see each model component. It is not a confidence interval, and applying it outside the six observed weeks is extrapolation. If seasonality, promotions or sudden capacity changes affect orders, a straight line may be a poor predictive model. Zoho also provides a separately documented FORECAST(new_x_value; y_values; x_values) function for a one-step prediction; using it is an alternative to the explicit slope-intercept equation, subject to validation in your environment. Zoho FORECAST help, checked October 12, 2026.
Common errors and troubleshooting
| Symptom | What the evidence establishes | Action |
|---|---|---|
#N/A! |
Zoho explicitly associates this error with empty or unequal-length SLOPE ranges. | Compare B2:B7 with A2:A7; both must cover six data rows. |
#NAME! |
Zoho lists incorrect function names or invalid defined names. | Spell SLOPE correctly; check renamed ranges. |
#VALUE! |
Zoho’s general error table describes invalid argument types. | Ensure the inputs are ranges of numbers; clean imported strings instead of assuming conversion. |
#REF! |
Zoho identifies broken or incorrect cell references. | Repair deleted/moved range references. |
| All X values equal | Sxx = 0; a unique slope is mathematically undefined. Zoho’s exact native error in this case was not tested here. |
Supply at least two distinct numeric X values; do not invent a slope of zero. |
| Text/empty rows | Zoho says these values are ignored, but the help page does not spell out how each pair is removed. | Clean/validate the two-column source together, then retest in the native application. |
| A surprisingly large slope | The X scale may be days rather than weeks, or arguments may be reversed. | Write units beside the result; check every pair and both ranges. |
To audit imported data, the COUNT guide explains how to count numeric cells, and the AVERAGE guide explains the means in the slope calculation.
How this compares with Excel and Google Sheets
Microsoft documents SLOPE(known_y's, known_x's) and Google documents SLOPE(data_y, data_x): the conceptual Y-then-X order matches Zoho, though their English examples use commas while Zoho’s English reference uses semicolons. Microsoft explicitly warns that SLOPE and LINEST can disagree for degenerate/collinear datasets because their algorithms differ; do not transfer that Excel-specific implementation detail to Zoho without a native test. Google states that text is ignored, but neither platform’s documentation proves every Zoho coercion or paired-blank rule. See the checked Microsoft SLOPE documentation and Google SLOPE documentation.
Other related functions: INTERCEPT (the Y-axis crossing), RSQ (correlation squared), CORREL (signed strength of a relationship), LINEST (regression array) and FORECAST (point prediction). They are not interchangeable statistics. Use the official Zoho INTERCEPT, Zoho RSQ and Zoho LINEST references for syntax rather than assuming Excel’s conventions.
Availability, settings, and validation scope
These instructions reflect Zoho’s English public Zoho Sheet help as checked on October 12, 2026. Its examples use semicolons (;) between arguments; a different locale or imported workbook can display a different separator. Use the formula separator accepted by your own sheet without altering the argument order. The checked function article does not give a first-supported version, a universal account/plan entitlement, or a device-by-device compatibility matrix; therefore this guide makes no such claims. Feature behaviour in older releases, mobile clients, disconnected spreadsheets and third-party imports remains unverified.
Validation ledger: Official-reference research = checked; independent mathematical model = checked; native Zoho Sheet execution = NOT RUN; actual returned error codes for edge cases = NOT RUN.
References and date of checking
- Zoho Sheet — SLOPE, syntax, remarks, error table and related functions. Checked 2026-10-12: https://help.zoho.com/portal/en/kb/sheet/functions/statistical/articles/slope
- Zoho Sheet — INTERCEPT, regression intercept syntax. Checked 2026-10-12: https://help.zoho.com/portal/en/kb/sheet/functions/statistical/articles/intercept
- Zoho Sheet — FORECAST, advanced-alternative syntax. Checked 2026-10-12: https://help.zoho.com/portal/en/kb/sheet/functions/statistical/articles/forecast-function
- Microsoft Excel — SLOPE, compatibility comparison only. Checked 2026-10-12: https://support.microsoft.com/en-us/excel/functions/slope-function
- Google Sheets — SLOPE, compatibility comparison only. Checked 2026-10-12: https://support.google.com/docs/answer/3094048?hl=en