- How do I average values based on multiple conditions?
- Use AVERAGEIFS, which accepts multiple criteria and range pairs. For example, =AVERAGEIFS(costs, warehouse, 'North', cost, '>20') averages costs where warehouse is 'North' AND cost exceeds 20. AVERAGEIF only supports a single criterion.
- Why does my AVERAGEIF return #DIV/0!?
- No cells match your criteria, so there is nothing to average. Check for spelling errors, case sensitivity (text is case-insensitive but spacing matters), and valid operators in numeric comparisons. Verify matches exist using =COUNTIF(range, criteria).
- Can AVERAGEIF work with dates?
- Yes. Use criteria like '>'&DATE(2025,1,1) to find dates after January 1, 2025, or use date functions in the criteria argument. Ensure dates are stored as date values, not text, for reliable results.
- What is the difference between AVERAGEIF and AVERAGE?
- AVERAGE calculates the mean of all values in a range unconditionally, while AVERAGEIF only averages cells matching a criterion. Use AVERAGEIF when you need conditional averaging based on values in another column.