I would like to be able to group rows based on unique values and then output the AVERAGE
and STDEV
values for those groups.
Using the table below as an example, I would like to determine the AVERAGE
and STDEV
for each unique ID and type (1a, 1b, 2a, 2b, 3a, 3b).
One possible solution is to create a new column and use CONCATENATE
to combine the ID and Type together to create unique IDs to work from, but I'd like to try to avoid extraneous columns if possible.
I feel like this could be accomplished using some combination of the QUERY
, UNIQUE
, and FILTER
functions, but I haven't been able to figure it out.
1 a 5
1 a 7
1 a 9
1 b 2
1 b 4
1 a 6
1 a 9
1 b 8
1 a 1
2 a 5
2 a 2
2 a 4
2 b 6
2 b 7
2 a 8
3 b 1
3 b 7
3 a 5
3 a 6
3 a 8
3 a 9
3 b 4
3 b 6
3 b 3