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
 

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Ken Cowen

Board Regular
Joined
Jan 18, 2015
Messages
213
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
 

Watch MrExcel Video

Forum statistics

Threads
1,123,535
Messages
5,602,217
Members
414,513
Latest member
junbuggle

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
Top