VBA Code to find percentiles before and after the peak

newnew125

New Member
Joined
Jul 2, 2015
Messages
1
Hello VBA Experts,



I have multiple strain data curves that I need to analyze. The curves are log normal shaped. I would like to find the 25th, 50th, and 75th percentile values for these curves before and after the peak along with the max value. This would mean 7 total data points. The associated displacement (labeled CMOD) should also be an output below the respective load. The results should be tabulated next to the data. The data are in separate worksheets. Each worksheet has 6 columns (A-F). The data starts on row 23, column C. (Column label load). The number of rows vary for each worksheet.



For example:

Excel 2010
ABCDEFGHIJKLMNO
23TCMODLoadDispADBefore PeakAfter Peak
24 mm kN mm C CPercentile25%50%75%Max25%50%75%
2551Load1234321
2672CMOD57913864
2793
28134
2983
3062
3141

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1





Thank you in advance for your help!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,334
Messages
6,124,321
Members
449,154
Latest member
pollardxlsm

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