How to calculate the maximum slope of a curve in Excel

zacuk

Board Regular
Joined
Dec 22, 2016
Messages
60
Hi,

Please help. How can we calculate the maximum slope in the following data please? An Excel formula would be great. (I prefer to avoid macro, unless it is absolute requirement
:)). The max slope lies somewhere between rows 10 and 20 in the following example data, but the max range will change from batch to batch. Thanks

[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: center"][/TD]
[TD="class: xl65, width: 64, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"][TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Time (h)[/TD]
[TD="class: xl65, width: 64"]Data[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]1[/TD]
[/TR]
[TR]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]4[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]7[/TD]
[/TR]
[TR]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]9[/TD]
[/TR]
[TR]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]15[/TD]
[/TR]
[TR]
[TD="class: xl65"]6[/TD]
[TD="class: xl65"]25[/TD]
[/TR]
[TR]
[TD="class: xl65"]7[/TD]
[TD="class: xl65"]60[/TD]
[/TR]
[TR]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]100[/TD]
[/TR]
[TR]
[TD="class: xl65"]9[/TD]
[TD="class: xl66"]150[/TD]
[/TR]
[TR]
[TD="class: xl65"]10[/TD]
[TD="class: xl66"]220[/TD]
[/TR]
[TR]
[TD="class: xl65"]11[/TD]
[TD="class: xl66"]300[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl66"]373[/TD]
[/TR]
[TR]
[TD="class: xl65"]13[/TD]
[TD="class: xl66"]448[/TD]
[/TR]
[TR]
[TD="class: xl65"]14[/TD]
[TD="class: xl66"]523[/TD]
[/TR]
[TR]
[TD="class: xl65"]15[/TD]
[TD="class: xl66"]598[/TD]
[/TR]
[TR]
[TD="class: xl65"]16[/TD]
[TD="class: xl66"]673[/TD]
[/TR]
[TR]
[TD="class: xl65"]17[/TD]
[TD="class: xl66"]748[/TD]
[/TR]
[TR]
[TD="class: xl65"]18[/TD]
[TD="class: xl66"]800[/TD]
[/TR]
[TR]
[TD="class: xl65"]19[/TD]
[TD="class: xl66"]850[/TD]
[/TR]
[TR]
[TD="class: xl65"]20[/TD]
[TD="class: xl65"]900[/TD]
[/TR]
[TR]
[TD="class: xl65"]21[/TD]
[TD="class: xl65"]920[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="class: xl65, align: center"][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Hi,

Please test my solution.


Excel 2016 (Windows) 64 bit
ABCDEFG
1Time (h)DataMax slope80location11
211
324
437
549
6515
7625
8760
98100
109150
1110220
1211300
1312373
1413448
1514523
1615598
1716673
1817748
1918800
2019850
2120900
2221920
Sheet2
Cell Formulas
RangeFormula
E1{=MAX($B$3:$B$22-$B$2:$B$21)}
G1{=MATCH(E1,$B$3:$B$22-$B$2:$B$21,0)+1}
Press CTRL+SHIFT+ENTER to enter array formulas.


Asia
 
Upvote 0

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