Statistical All versions ◉ 41 views

=INTERCEPT()

Calculates the point at which a line will intersect the y-axis by using existing x-values and y-values. The intercept point is based on a best-fit regression line plotted through the known x-values and known y-values. Use the INTERCEPT function when you want to determine the value of the dependent variable when the independent variable is 0 (zero). For example, you can use the INTERCEPT function to predict a metal's electrical resistance at 0°C when your data points were taken at room temperature and higher.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=INTERCEPT(known_y's, known_x's)
Hover argument names in the table for details.
Output typeNumber
Popularity20 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =INTERCEPT() 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)
Download INTERCEPT.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
known_y's Range Required The dependent set of observations or data.
known_x's Range Required The independent set of observations or data.

▣ Examples

▦ Data
CellValue
A2 Known y
B2 Known x
A3 2
B3 6
A4 3
B4 5
A5 9
B5 11
A6 1
B6 7
A7 8
B7 5
A8 Known y
B8 Known x
A9 2
B9 6
A10 3
B10 5
A11 9
B11 11
A12 1
B12 7
A13 8
B13 5
Point at which a line will intersect the y-axis by using the x-values and y-values above =INTERCEPT(A2:A6, B2:B6)
Result: 0.0483871

§ Remarks

  • The arguments should 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.
  • If known_y's and known_x's contain a different number of data points or contain no data points, INTERCEPT returns the #N/A error value.
  • The equation for the intercept of the regression line, a, is: where the slope, b, is calculated as: and where x and y are the sample means AVERAGE(known_x's) and AVERAGE(known_y's).
  • The underlying algorithm used in the INTERCEPT and SLOPE functions is different than the underlying algorithm used in the LINEST function. The difference between these algorithms can lead to different results when data is undetermined and collinear. 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: INTERCEPT and SLOPE return a #DIV/0! error. The INTERCEPT and SLOPE algorithm is designed to look for one and only one answer, and in this case there can be more than one answer. LINEST returns a value of 0. The LINEST algorithm is designed to return reasonable results for collinear data, and in this case at least one answer can be found.

✦ Tips

  • The arguments should 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 intercept of the regression line, a, is: where the slope, b, is calculated as: and 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 contain a different number of data points or contain no data points, INTERCEPT 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: INTERCEPT and SLOPE 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!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.