Reputation: 93
I have a following data set. I want to get, in column E, average of column B values , if the sample and gene are same using something like AVERAGEIF function in Excel.
For example, in E2 cell, I want to have the the average of B2 and B7 since they have same value in column C i.e "alpha", and column D i.e "S14".
Here is the screenshot of sample data:
Upvotes: 2
Views: 1098
Reputation: 152505
You would need AVERAGEIFS()
The Formula would be:
=AVERAGEIFS(B:B,C:C,C2,D:D,D2)
Put it in E2 and copy/drag down.
Upvotes: 3