I have a file of lab data in which every patient has multiple values from measurements taken on different days. It looks like this:
BP1 BP2 BP3 BP4 BP5 date1 date 2 date 3 date 4 date 5 (BP1 was measured on date1 etc)
I'm interested in the date on which the lowest BP value was measured. I have been able to use a command to find what the lowest BP value was and also what date variable it can be found in, so for example: I know that for a specific patient the lowest BP was 75 and that this value is in the BP3 variable for that patient. But I want to tell SPSS that if BP3 contains the lowest value, that it should copy the date in "date3" to a new variable so I have a list with the dates on which the values were the lowest.