Originally Posted by
Paula M
Hi,
I need your help again. Now, I need to know the avarage age of the people belonging to the Sales deparment that are either category "C" or "H".
Column A has the different departments (S, F, D, E, etc), column B, the different categories (C, H, B, etc), and column F has the employee ages.
I thought of this:
=((AVERAGE(IF((ARGENTINA!$A$1:$A$999="S")*(ARGENTINA!$B$1:$B$999="C"),ARGENTINA!$F$1:$F$999)))+(AVERAGE(IF((ARGENTINA!$A$1:$A$999="S")*(ARGENTINA!$B$1:$B$999="H"),ARGENTINA!$F$1:$F$999))))/2
Entering it with Ctrl+shift+enter as an array formula.
It works fine when both averages are greater than 0, but it is no good when one of them is 0. Any ideas to solve my problem? All suggestions are welcomed!
Thanks for your help!
Bookmarks