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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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