
📎 This article includes 1 downloadable practice file ↓
In this article
SLOPE returns the slope of the best-fit straight line — “sales grow by about ₹42,000 a month”.
Syntax
=SLOPE(known_ys, known_xs)
| Argument | What it means |
|---|---|
known_ys |
The values to explain. |
known_xs |
Usually month numbers or dates. |
Examples
Example 1
=SLOPE(C2:C25, A2:A25)
Average monthly change over two years.
SLOPE in practice
Where you will use it
- Sales growth per month
- Cost per extra unit
- Trend direction
Worked example
| Case | Formula | Result |
|---|---|---|
| 1 | =ROUND(SLOPE(INDEX($H$1:$L$3,A2,0),{1,2,3,4,5}),4) | 2 |
| 2 | =ROUND(SLOPE(INDEX($H$1:$L$3,A3,0),{1,2,3,4,5}),4) | 5 |
| 3 | =ROUND(SLOPE(INDEX($H$1:$L$3,A4,0),{1,2,3,4,5}),4) | -10 |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Argument order | known_y's first |
| Outliers | One point can tilt the slope |
Related functions
INTERCEPT · RSQ · TREND · FORECAST.LINEAR
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
📎 Practice files for this article
- 📗Practice workbook: Statistics advanced33 tasks on realistic sales data — type your formula, the Check column turns green when it is right. Answers sheet included.⬇ XLSX · 36 KB
Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time — plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul →Build this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.