
The Excel AVERAGEIFS function computes the average of the numbers in a range that meet one or more supplied criteria. The criteria in AVERAGEIFS supports logical operators (>,<><>,=) and wildcards (*,?) for partial matching.
Average cells that match multiple criteria
The aveage of the cells that meet all criteria
=AVERAGEIFS (avg_rng, range1, criteria1, [range2], [criteria2], ...)
AVERAGEIFS averages cells in a range that match supplied criteria. Unlike the AVERAGEIF function, AVERAGEIFS can apply more than one set of criteria, with more than one range. The first range is the range to be averages. The criteria is supplied in pairs (range/criteria) and only the first pair is required. For each additional criteria, supply an additional range/criteria pair. Up to 127 range/criteria pairs are allowed.
Note the order of arguments is different between the AVERAGEIFS and AVERAGEIF functions. The range to average is the first argument in AVERAGEIFS, but the third argument in AVERAGEIF.
Notes:

The Excel AVERAGEIFS function computes the average of the numbers in a range that meet one or more supplied criteria. The criteria in AVERAGEIFS supports logical operators (>,<><>,=) and wildcards (*,?) for partial matching.
Average cells that match multiple criteria
The aveage of the cells that meet all criteria
=AVERAGEIFS (avg_rng, range1, criteria1, [range2], [criteria2], ...)
AVERAGEIFS averages cells in a range that match supplied criteria. Unlike the AVERAGEIF function, AVERAGEIFS can apply more than one set of criteria, with more than one range. The first range is the range to be averages. The criteria is supplied in pairs (range/criteria) and only the first pair is required. For each additional criteria, supply an additional range/criteria pair. Up to 127 range/criteria pairs are allowed.
Note the order of arguments is different between the AVERAGEIFS and AVERAGEIF functions. The range to average is the first argument in AVERAGEIFS, but the third argument in AVERAGEIF.
Notes: