Statistical
All versions
◉ 12 views
=SLOPE()
Returns the slope of the linear regression line through data points in known_y's and known_x's. The slope is the vertical distance divided by the horizontal distance between any two points on the line, which is the rate of change along the regression line.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=SLOPE(known_y's, known_x's)
Hover argument names in the table for details.
Output typeNumber
Popularity25 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon
▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =SLOPE() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
known_y's |
Range | Required | An array or cell range of numeric dependent data points. |
known_x's |
Range | Required | The set of independent data points. |
▣ Examples
شیب خط رگرسیون خطی عبوری از نقاط داده موجود در A3:A9 و B3:B9.
=SLOPE(A3:A9,B3:B9)
✦ Tips
- The arguments must be either numbers or names, arrays, or references that contain numbers.
- If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
- The equation for the slope of the regression line is: where x and y are the sample means AVERAGE(known_x’s) and AVERAGE(known_y’s).
⚠ Common Errors
#N/A
If known_y's and known_x's are empty or have a different number of data points, SLOPE returns the #N/A error value.
Fix: Make the two ranges the same size
#DIV/0!
For example, if the data points of the known_y's argument are 0 and the data points of the known_x's argument are 1: SLOPE and INTERCEPT return a #DIV/0! error.
Fix: دادههای ورودی را بررسی کنید که همخط و نامعین نباشند؛ از تابع LINEST برای دادههای همخط استفاده کنید.
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!