I want to know how to use google sheets to find the following info, each in a separate column, based on other data:
- Column called "PR?", which represents whether certain values represents personal record for a given grouping variable (e.g., "Exercise Type").
- Column called "PR Max Weight", which represents the max value of the column "Weight" associated with a given grouping variable value (e.g., when column "Exercise Type" is "OHP").
- Column called "PR Max Unit", which represents the "Unit" column value that corresponds to the the max value associated with a given grouping variable (e.g., "Exercise Type").
- Column called "PR Max Rep", which represents the "Reps" column value that corresponds to the the max value associated with a given grouping variable (e.g., "Exercise Type").
I would also like for these columns above to exclude rows in the dataset where the column "Success?" does not equal the value "yes". Also, I would like to keep the order of the current dataset the same.
Here is some sample data:
| Exercise type | Weight | Unit | Reps | Success? |
|---|---|---|---|---|
| OHP | 40 | kg | 4 | yes |
| Deadlift | 240 | kg | 2 | no |
| OHP | 50 | kg | 10 | yes |
| Squat | 110 | kg | 12 | yes |
| OHP | 60 | kg | 5 | yes |
| Squat | 100 | kg | 6 | no |
| Squat | 90 | kg | 20 | yes |
| Deadlift | 200 | kg | 10 | yes |
| Deadlift | 220 | kg | 14 | no |
Is this possible? If so, how can it be done?
Thanks.