partial trendline......

jwchu3

Board Regular
Joined
Jan 22, 2006
Messages
85
Hi,

I have a load / deflection curve for a steel section. I need to find the slope of the first portion of the chart. i know that i can do this by creating a seperate data series - limited to these data points in the range and then adding a trendline to that series.

is there another way of limiting the trendline to a certain number of data points without having to add this additional series??? I am happy to use VBA if necessary.

cheers,
Jez
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

hatman

Well-known Member
Joined
Apr 8, 2005
Messages
2,664
If all you wwant is the slope (of a straight line), why not use the Slope() function? Either way, you can use the Offset() function to define which portion of the data to use for generating your results.
 

tusharm

MrExcel MVP
Joined
May 28, 2002
Messages
11,029
No, a trendline cannot be limited to a subset of the dataset (well, unless you use a moving average line but that doesn't provide any usable coefficients).

Shouldn't be a big deal adding the limited number of data points as a 2nd series. You can always "hide" this series by making all associated elements transparent.
Hi,

I have a load / deflection curve for a steel section. I need to find the slope of the first portion of the chart. i know that i can do this by creating a seperate data series - limited to these data points in the range and then adding a trendline to that series.

is there another way of limiting the trendline to a certain number of data points without having to add this additional series??? I am happy to use VBA if necessary.

cheers,
Jez
 

Forum statistics

Threads
1,136,989
Messages
5,678,975
Members
419,796
Latest member
doctorgresham

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