I have an excel sheet where these are the columns:
% of contract value = c(4,3,5,6)
contract type = c("sell", "sell", "sell", "buy")
confidence = c(5, 3, 3, 3)
.
I would like to do a conditional average as follows:
take the average of % of contract value
but only for rows where contract type = "sell"
and confidence = 3
.
In other words the answer to this should be (3 + 5)/2 = 4
Is there an easy way to do this in excel????