Hi All-
I am trying to use an array formula to average certain numbers in one column based on criteria from another column. However, I am generating incorrect results. I cannot see why it's not working. From what I can tell, the formula is adding up the correct cells but the dividing by the total number of cells to get the average (does that make sense).
This is the formula I wrote: {=AVERAGE(IF($F$4:$F$67="MM",$N$4:$N$67,0))}, and it's in the attached spreadsheet in cell N70. I want Excel to look at the numbers in column N and then give me an average of the numbers where the corresponding cell in column F has "MM" in it. Is that possible?
I was able to create a rather convoluted method using a COUNTIF formula and a conditional sum to generate the average, but I want to try to figure out why the array formula is not working. Thanks for whatever help you can provide, and please let me know what additional questions you might have.
Bookmarks