Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Create columns with values based on conditions, and display cells in the corresponding rows based on conditions

$
0
0

I want to know how to use google sheets to find the following info, each in a separate column, based on other data:

  1. Column called "PR?", which represents whether certain values represents personal record for a given grouping variable (e.g., "Exercise Type").
  2. 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").
  3. 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").
  4. 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 typeWeightUnitRepsSuccess?
OHP40kg4yes
Deadlift240kg2no
OHP50kg10yes
Squat110kg12yes
OHP60kg5yes
Squat100kg6no
Squat90kg20yes
Deadlift200kg10yes
Deadlift220kg14no

Is this possible? If so, how can it be done?

Thanks.


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>