The article below explains two approaches.

One approach is based on theAVERAGEIFS function, which is designed to calculate averages using multiple criteria.

The second approach is based on theFILTER functionand theAVERAGE function.

Custom number format to display month only

See below for more information.

Notice we need toconcatenatethe dates tological operators, as required by the AVERAGEIFS function.

Using EDATE is a simpler and more robust solution.

Custom number format to display month only

As you’ve got the option to see, only the first date occurs in January 2022.

The FILTER function uses this array to select only values indatathat meet criteria.

The result is delivered directly to the AVERAGE function like this:

AVERAGE then returns a result of 100.

Custom number format to display month only

This is because the logic created with the TEXT function only compares month and year values.

For a side-by-side comparison of formulas vs. pivot tables, see this video:Why pivot tables.

The output from FILTER is dynamic.

Custom number format to display month only

If source data or criteria change, FILTER will return a new set of results.

How to use the AVERAGEIFS function

FILTER function basic example

Custom number format to display month only

Excel formula: Sum by year

Excel formula: Sum by month

Excel formula: Average call time per month

Excel AVERAGEIFS function

Excel EDATE function

Excel FILTER function

Excel AVERAGE function

Article image

Article image