Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Choose Language Hide Translation Bar
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
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.