AVERAGEIFS

Math & Aggregationintermediate

AVERAGEIFS is the multi-condition version of AVERAGEIF. You point it at the cells you want averaged, then add each criteria range and criteria pair. It's useful when you need a benchmark for a very specific slice of your data such as one team in one region or one product line in one quarter.

Syntax

Excel:=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Google Sheets: Same syntax

Parameters

average_rangeThe cells to average.
criteria_range1The first range to evaluate.
criteria1The condition for the first range.
criteria_range2, criteria2?Additional range and condition pairs.

? = optional parameter

Worked Example

What is the average salary for remote Customer Success employees in an HR audit file?

Row numbersF
Header rowdepartmentlocationsalary
2Customer SuccessRemote$68,400
3Customer SuccessRemote$70,250
4Customer SuccessBoston$69,500
5Customer SuccessRemote$71,900
6Customer SuccessRemote$73,150
7PeopleRemote$76,500

Formula

=AVERAGEIFS(C2:C7, A2:A7, "Customer Success", B2:B7, "Remote")

Result

$70,925.00

AVERAGEIFS checks rows 2 through 7 and averages only the salaries where department is 'Customer Success' and location is 'Remote'. In this sample, rows 2, 3, 5, and 6 match, producing $70,925.00.

No exercises yet for this formula.