Thank you very much for your reply.
The final problem I'm trying to solve is the following: I have stress-strain data for multiple test strips for multiple formulations (please see the attached JMP data file). The attached table contains 4 different formulation+strip "groups" i.e) FormA/strip1, FormA/strip2, FormB/strip1, FormB/strip2... For each group, I need to identify 1) the maximum stress (tensile strength) and 2) the strain associated with the maximum stress. To identify the maximum stress, I created a column "Tensile Strength" and used simply used "Col Max()" in the Formula Editor (see image below)
Now, I'm looking to populate the "%elongation" column with the strain values associated with the maximum stress (tensile strength) for each group, and this is where my issue lies. Rather than going through the table to manually identify these strain values and populate the "%elongation" column, I'm wondering if there's a way to accomplish this with a column formula (or JSL script).
I was thinking this may involve a combination of loops and/or conditional functions.
Initially, I experimented with iterating through the "Stress" column with a for loop, to check if Stress=Tensile Strength in a given row (if yes, then populate the "%elongation" column with the associated strain value). Please see the attached JPG file "stress-strain data_jmp community help_iteration attempt" for the initial column formula/attempt. The column remained unchanged/blank.
I then tried to simply populate the first 5 rows in the "%elongation" column with the strain values in the given rows (please see the attached JPG file "stress-strain data_jmp community help_for loop"). The column remained blank, and this is what prompted my initial post. I'm assuming there are key errors in how I'm using the functions.
**Moreover, I recognize that my initial formula is far too simplistic for my final goal.
Apologies for the lengthy post and if I was unclear with anything. I'd be happy to provide any clarification. I'm quite new to JMP, thus any advice/help with this would be greatly appreciated. Thank you in advance.