Skip to main content

Excel INTERCEPT Function

Author: Amanda Li Last Modified: 2024-10-24

The INTERCEPT function calculates the point at which a linear regression line will intersect the y-axis by using the given x-values and y-values.

intercept function 1


Syntax

=INTERCEPT(known_ys, known_xs)


Arguments

  • known_ys (required): An array or cell reference to dependent variables (y-values).
  • known_xs (required): An array or cell reference to independent variables (x-values).

Return Value

The INTERCEPT function returns a numeric value.


Function Notes

  • Arguments can be numbers, arrays, or references that contain numbers.
  • INTERCEPT ignores blank cells, text and logical values in a reference argument.
  • INTERCEPT ignores text and logical values in an array argument. However, if the two array arguments have different numbers of data points, the #N/A error value will be returned.
  • If there are any error values in any of the arguments, INTERCEPT will return the first error value.
  • The #DIV/0! error occurs if:
    • The variance of the supplied known_xs equals to zero;
    • Either of the supplied known_xs or known_ys arguments is empty.

Example

Supposing you have a table with x- and y-values as shown below, to get the y-axis intercept value, please copy or enter the formula below in a blank cell, and press Enter to get the result:

=INTERCEPT({2;-7;3;6;9},{-10;-7;0;3;8})

Or, use cell references to make the formula dynamic:

=INTERCEPT(C4:C8,B4:B8)

intercept function 2


Related functions

Excel LINEST Function

The Excel LINEST function returns the statistic for a best fit straight line based on the supplied set of x value and y value by using the “least squares” method. The function returns an array of constant values.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.