Split Curves

develaavi

New Member
Joined
Feb 3, 2014
Messages
8
Hello all,
Iam student and for a lab test I need to solve about 450 excel sheets for my project.
The spreadsheet has X and Y data and curve is plotted. I need to split the curves into 3 parts based on major slope change and fit a trendline.
I can do it manually but I need an excel Macro which does this work. Iam trying for trendline with Rsquare >0.95 for all curves. How to do it with a vba, I want the idea. I can then write the code.

A sample is attached.
graph.png

X Y
00
120
270
3100
4110
5120
6135
7145
8160
9170
10180
11190
12200
13210
14220
15230
16240
17250
18260
19270
21280
22290
23300
26310
29325
30335
32345
34355
39365
44375
50385
58395
66405
73415
81425
91435

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If you use a 4th-order polynomial, R2 = 0.995
 
Upvote 0
If you use a 4th-order polynomial, R2 = 0.995

No sir,
These are different soil layers for which strengths are different. These strengths are found out using the slopes of trendlines eq.
So curves should be split based on rsquares of trendlines. I found by adding each xy point to check Rsquare value. When this values is less than 0.95, I decide this to be a single layer. I then start adding a new series ​and then follow the same.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,843
Members
449,193
Latest member
MikeVol

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