In the attached sheet i need a formula for the sample variance on the first row that correspond to all the "A" in a row and the same for all the "B" in the row. The challenge is all the A's and B's change in every row but the numbers at the top stay the same. I need this formula to be able to drag down. I have tried If statements inside of var.s but this doesnt work because the value if false is 0 and we dont want that in the same variance. to clear up any confusion what i want to do is find some way to say if the first cell in a row is A include the number at the top of the column in the variance calculation, if its not A then do not include it in the calculation.
Bookmarks