Slope formula for only last two rows when adding row

dbcooper88

New Member
Joined
Dec 3, 2016
Messages
36
Going to add rows daily. I just want the slope for last two days. Looking for slope formula for only last two rows after I add a row/line at the bottom. For example my x is A1:A2 and my y is B1:B2. Adding row with coordinates are A3 and B3. Whats the slope formula for just the last two rows/lines ? TIA
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If you don't have anything else in columns A or B, the following should do it

=(OFFSET(B1,COUNTA(B:B)-1,0)-OFFSET(B1,COUNTA(B:B)-2,0))/(OFFSET(A1,COUNTA(A:A)-1,0)-OFFSET(A1,COUNTA(A:A)-2,0))

This can be anywhere outside of columns A or B.

I hope this helps.

Ken
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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