Reputation: 670
I am trying to take and average the salary of all females and males in a table, and I found another stack overflow article about this and tried to use the averageif formula, however whenever I try it gives me a $DIV/0 error, even though I do not think I'm dividing by zero anywhere in the range I set it. Here is a picture of the chart and the formula at the top in the formula bar
Why would this be happening?
Upvotes: 0
Views: 259
Reputation: 836
Your formula should be:
=AVERAGEIF(TABLE5[GENDER], "F", TABLE5[SALARY])
You parameters for AVERAGEIF are (CriteriaRange, Criteria, AverageRange).
Upvotes: 3