Filtering based on multiple columns
In numbers, I want to calculate the standard deviation from Column F (rows 2-201), but ONLY when the matching rows from Column C AND Column E are 1. I can't figure out how to filter for both C and E. I can successfully filter for one of the columns and get the STDEV (the formula looks like this: STDEV($F$2:$F$201;IF(E;1;)) but any attempt to use multiple IF statements seem to fail.
For context, C and E essentially contains binary values (one is for gender, and one is for treatment group/control group), so I want to be able to calculate the standard deviation for both the treatment and control group, for both males and females.