cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
spoikayil
Level II

Column formula to select column value matching other column values.

I have a table similar to the one below:

spoikayil_0-1596144866261.png

I need to find the time since the 'START' step for each row. So, for each row I need to find the 'STARTTIME' value that match the 'BATCH' value and  the Step as 'START' and then find the difference of that row's start time from the first start step - time stamp for that batch.

Hoping to make it clearer;

spoikayil_0-1596145730681.png

 

How do I write a column formula to do this?

 

I am aware of using the Row() function to select previous row or nth row etc. but here I need to find a row number based on a condition. Is that even possible?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Column formula to select column value matching other column values.

I think this is easier than you think.  See if this formula works

:starttime - col minimum(:Starttime,:Batch);
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Column formula to select column value matching other column values.

I think this is easier than you think.  See if this formula works

:starttime - col minimum(:Starttime,:Batch);
Jim
spoikayil
Level II

Re: Column formula to select column value matching other column values.

You were right! Thanks very much! I didnt know the column minimum function had a group by option.