Changes in slope

jpen

Active Member
Joined
Jun 19, 2002
Messages
402
Hello,

I have data in row 4 of a Excel sheet. Data starts at column F. Every month a datapoint is added to the dataset. I'am calculating the slope of the dataset. But what I want is to see what the change of slope.

Example
1, 3, 3, 2, 4, 5 gives a slope of 0.63
by adding a new data point the data set looks
1, 3, 3, 2, 4, 5, 1 gives a slope of 0.18

Now I want to now the change in slope so 0.63-0.18 = 0.45

Problem is how to get the column position as a variable.

I prefer a solution as a function on a worksheet if that is to hard then VBA code will be great.

Any ideas ?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How are you calculating the slope? Aren't you getting the column position of the end of the data for that?
 
Upvote 0
I calculate the slope using the standard slope function of Excel.

I have found the solution us dynamic range.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,629
Members
452,933
Latest member
patv

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