Intercept and Slope Function

bancanus

New Member
Joined
Apr 26, 2018
Messages
2
The output of Intercept and Slope function is not what I expected.

[TABLE="width: 311"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]=INTERCEPT(A2:A113,B2:B113)[/TD]
[TD="align: right"]497.167[/TD]
[/TR]
[TR]
[TD]=SLOPE(A2:A113,B2:B113)[/TD]
[TD="align: right"]-0.01124[/TD]
[/TR]
</tbody>[/TABLE]

I expect to see Intercept around 12.558, slope around -0.0102

Am I missing something?


[TABLE="width: 160"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]X[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD="align: right"]16-Jan-2018[/TD]
[TD="align: right"]13.705[/TD]
[/TR]
[TR]
[TD="align: right"]17-Jan-2018[/TD]
[TD="align: right"]12.929[/TD]
[/TR]
[TR]
[TD="align: right"]18-Jan-2018[/TD]
[TD="align: right"]12.281[/TD]
[/TR]
[TR]
[TD="align: right"]19-Jan-2018[/TD]
[TD="align: right"]13.058[/TD]
[/TR]
[TR]
[TD="align: right"]20-Jan-2018[/TD]
[TD="align: right"]12.152[/TD]
[/TR]
[TR]
[TD="align: right"]21-Jan-2018[/TD]
[TD="align: right"]12.152[/TD]
[/TR]
[TR]
[TD="align: right"]22-Jan-2018[/TD]
[TD="align: right"]13.446[/TD]
[/TR]
[TR]
[TD="align: right"]23-Jan-2018[/TD]
[TD="align: right"]13.446[/TD]
[/TR]
[TR]
[TD="align: right"]24-Jan-2018[/TD]
[TD="align: right"]12.087[/TD]
[/TR]
[TR]
[TD="align: right"]25-Jan-2018[/TD]
[TD="align: right"]12.022[/TD]
[/TR]
[TR]
[TD="align: right"]26-Jan-2018[/TD]
[TD="align: right"]12.815[/TD]
[/TR]
[TR]
[TD="align: right"]27-Jan-2018[/TD]
[TD="align: right"]13.317[/TD]
[/TR]
[TR]
[TD="align: right"]28-Jan-2018[/TD]
[TD="align: right"]13.187[/TD]
[/TR]
[TR]
[TD="align: right"]29-Jan-2018[/TD]
[TD="align: right"]12.022[/TD]
[/TR]
[TR]
[TD="align: right"]30-Jan-2018[/TD]
[TD="align: right"]12.411[/TD]
[/TR]
[TR]
[TD="align: right"]31-Jan-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]1-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]2-Feb-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]2-Feb-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]2-Feb-2018[/TD]
[TD="align: right"]13.446[/TD]
[/TR]
[TR]
[TD="align: right"]2-Feb-2018[/TD]
[TD="align: right"]13.187[/TD]
[/TR]
[TR]
[TD="align: right"]2-Feb-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]2-Feb-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]2-Feb-2018[/TD]
[TD="align: right"]11.763[/TD]
[/TR]
[TR]
[TD="align: right"]3-Feb-2018[/TD]
[TD="align: right"]13.187[/TD]
[/TR]
[TR]
[TD="align: right"]4-Feb-2018[/TD]
[TD="align: right"]12.411[/TD]
[/TR]
[TR]
[TD="align: right"]5-Feb-2018[/TD]
[TD="align: right"]12.281[/TD]
[/TR]
[TR]
[TD="align: right"]6-Feb-2018[/TD]
[TD="align: right"]12.67[/TD]
[/TR]
[TR]
[TD="align: right"]7-Feb-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]8-Feb-2018[/TD]
[TD="align: right"]13.187[/TD]
[/TR]
[TR]
[TD="align: right"]9-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]10-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]11-Feb-2018[/TD]
[TD="align: right"]13.317[/TD]
[/TR]
[TR]
[TD="align: right"]12-Feb-2018[/TD]
[TD="align: right"]12.929[/TD]
[/TR]
[TR]
[TD="align: right"]13-Feb-2018[/TD]
[TD="align: right"]12.67[/TD]
[/TR]
[TR]
[TD="align: right"]14-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]15-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]16-Feb-2018[/TD]
[TD="align: right"]12.411[/TD]
[/TR]
[TR]
[TD="align: right"]17-Feb-2018[/TD]
[TD="align: right"]12.022[/TD]
[/TR]
[TR]
[TD="align: right"]18-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]19-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]20-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]21-Feb-2018[/TD]
[TD="align: right"]12.152[/TD]
[/TR]
[TR]
[TD="align: right"]22-Feb-2018[/TD]
[TD="align: right"]11.569[/TD]
[/TR]
[TR]
[TD="align: right"]23-Feb-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]24-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]24-Feb-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]25-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]25-Feb-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]26-Feb-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]27-Feb-2018[/TD]
[TD="align: right"]11.44[/TD]
[/TR]
[TR]
[TD="align: right"]28-Feb-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]1-Mar-2018[/TD]
[TD="align: right"]11.505[/TD]
[/TR]
[TR]
[TD="align: right"]2-Mar-2018[/TD]
[TD="align: right"]12.022[/TD]
[/TR]
[TR]
[TD="align: right"]3-Mar-2018[/TD]
[TD="align: right"]11.505[/TD]
[/TR]
[TR]
[TD="align: right"]4-Mar-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]5-Mar-2018[/TD]
[TD="align: right"]12.281[/TD]
[/TR]
[TR]
[TD="align: right"]6-Mar-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]7-Mar-2018[/TD]
[TD="align: right"]11.505[/TD]
[/TR]
[TR]
[TD="align: right"]8-Mar-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]9-Mar-2018[/TD]
[TD="align: right"]12.152[/TD]
[/TR]
[TR]
[TD="align: right"]10-Mar-2018[/TD]
[TD="align: right"]12.67[/TD]
[/TR]
[TR]
[TD="align: right"]11-Mar-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]12-Mar-2018[/TD]
[TD="align: right"]11.505[/TD]
[/TR]
[TR]
[TD="align: right"]13-Mar-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]14-Mar-2018[/TD]
[TD="align: right"]11.116[/TD]
[/TR]
[TR]
[TD="align: right"]15-Mar-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]16-Mar-2018[/TD]
[TD="align: right"]12.67[/TD]
[/TR]
[TR]
[TD="align: right"]17-Mar-2018[/TD]
[TD="align: right"]11.116[/TD]
[/TR]
[TR]
[TD="align: right"]18-Mar-2018[/TD]
[TD="align: right"]12.799[/TD]
[/TR]
[TR]
[TD="align: right"]19-Mar-2018[/TD]
[TD="align: right"]11.505[/TD]
[/TR]
[TR]
[TD="align: right"]20-Mar-2018[/TD]
[TD="align: right"]11.505[/TD]
[/TR]
[TR]
[TD="align: right"]21-Mar-2018[/TD]
[TD="align: right"]11.505[/TD]
[/TR]
[TR]
[TD="align: right"]22-Mar-2018[/TD]
[TD="align: right"]12.929[/TD]
[/TR]
[TR]
[TD="align: right"]23-Mar-2018[/TD]
[TD="align: right"]12.67[/TD]
[/TR]
[TR]
[TD="align: right"]24-Mar-2018[/TD]
[TD="align: right"]12.022[/TD]
[/TR]
[TR]
[TD="align: right"]25-Mar-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]26-Mar-2018[/TD]
[TD="align: right"]11.763[/TD]
[/TR]
[TR]
[TD="align: right"]27-Mar-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]28-Mar-2018[/TD]
[TD="align: right"]12.152[/TD]
[/TR]
[TR]
[TD="align: right"]29-Mar-2018[/TD]
[TD="align: right"]12.67[/TD]
[/TR]
[TR]
[TD="align: right"]30-Mar-2018[/TD]
[TD="align: right"]11.116[/TD]
[/TR]
[TR]
[TD="align: right"]31-Mar-2018[/TD]
[TD="align: right"]12.152[/TD]
[/TR]
[TR]
[TD="align: right"]1-Apr-2018[/TD]
[TD="align: right"]11.262[/TD]
[/TR]
[TR]
[TD="align: right"]2-Apr-2018[/TD]
[TD="align: right"]11.31[/TD]
[/TR]
[TR]
[TD="align: right"]3-Apr-2018[/TD]
[TD="align: right"]11.893[/TD]
[/TR]
[TR]
[TD="align: right"]4-Apr-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]5-Apr-2018[/TD]
[TD="align: right"]11.116[/TD]
[/TR]
[TR]
[TD="align: right"]6-Apr-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]7-Apr-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]8-Apr-2018[/TD]
[TD="align: right"]12.799[/TD]
[/TR]
[TR]
[TD="align: right"]9-Apr-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]10-Apr-2018[/TD]
[TD="align: right"]11.246[/TD]
[/TR]
[TR]
[TD="align: right"]10-Apr-2018[/TD]
[TD="align: right"]11.246[/TD]
[/TR]
[TR]
[TD="align: right"]10-Apr-2018[/TD]
[TD="align: right"]12.767[/TD]
[/TR]
[TR]
[TD="align: right"]11-Apr-2018[/TD]
[TD="align: right"]12.799[/TD]
[/TR]
[TR]
[TD="align: right"]11-Apr-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]12-Apr-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]12-Apr-2018[/TD]
[TD="align: right"]12.67[/TD]
[/TR]
[TR]
[TD="align: right"]13-Apr-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]14-Apr-2018[/TD]
[TD="align: right"]11.246[/TD]
[/TR]
[TR]
[TD="align: right"]15-Apr-2018[/TD]
[TD="align: right"]11.116[/TD]
[/TR]
[TR]
[TD="align: right"]16-Apr-2018[/TD]
[TD="align: right"]11.165[/TD]
[/TR]
[TR]
[TD="align: right"]17-Apr-2018[/TD]
[TD="align: right"]11.246[/TD]
[/TR]
[TR]
[TD="align: right"]18-Apr-2018[/TD]
[TD="align: right"]11.634[/TD]
[/TR]
[TR]
[TD="align: right"]19-Apr-2018[/TD]
[TD="align: right"]11.505[/TD]
[/TR]
[TR]
[TD="align: right"]20-Apr-2018[/TD]
[TD="align: right"]12.67[/TD]
[/TR]
[TR]
[TD="align: right"]21-Apr-2018[/TD]
[TD="align: right"]12.411[/TD]
[/TR]
[TR]
[TD="align: right"]22-Apr-2018[/TD]
[TD="align: right"]11.116[/TD]
[/TR]
[TR]
[TD="align: right"]23-Apr-2018[/TD]
[TD="align: right"]11.375[/TD]
[/TR]
[TR]
[TD="align: right"]24-Apr-2018[/TD]
[TD="align: right"]11.116[/TD]
[/TR]
[TR]
[TD="align: right"]25-Apr-2018[/TD]
[TD="align: right"]11.116[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
The slope is going to be in units of X. Since your X is dates (i.e., Excel Dates), the number might look strange.

When I applied the formulas you show to your data, I got an intercept of 43423.233 and a slope of -21.5666, which are wrong. When I reverse the Xs and Ys, and applied =INTERCEPT(B2:B113,A2:A113) it reported 497.262, and =SLOPE(B2:B113,A2:A113) reported -0.01124

I graphed the data and included a linear trend line with the equation shown on the chart and that is exactly what it reports: Y=-.0112x+497.26
 
Last edited:
Upvote 0

Similar threads

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top