Regression slope doesn't match the slope / linest formula! Help!!

vtanuku

New Member
Joined
Jul 8, 2008
Messages
2
I am calculating the slope for a set of sales data over a 2 year period through Linest / slope function and charted it out as well...the equation on my regression line (the "m" value) is way different than the slope i calculated using the formula. Can any one help me on this? what am I doing wrong? or is there any caveats to the formula / chart?

Thanks,
VT
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi vtanuku
Welcome to the board

You don't post any data so it's difficult to guess what's happening.

Please post the data, the formula you used and the m values you got.

If it is too much data, post a working example with a small sample where you have the same problem.
 
Upvote 0
Thanks PGC01 for the reply. I will make sure I post the data next time onwards. The data I had was something like this:

Column A column B (sales)
1/2007 2213
2/2007 1335
3/2007 2552
and so on...

I figured this out myself. seems like the slope formula doesn't work (or rather gives a different slope!!!) if I have months as it is (I had monthly sales as my x variable) as one of the variables, but has to be numerals (1,2,3..) to match the slope on the chart (linear trend line).

Instead of using the above two columns, I had to use columnB (sales) and one another variable which is just 1,2,3.....

Rgrds,
VT
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,025
Members
449,060
Latest member
LinusJE

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