Each condition is provided with a separaterangeandcriteria.

However, the syntax used to apply conditions is a bit tricky because it is unusual in Excel.

See below for details.

Excel formula: Average if not blank

The syntax for the AVERAGEIFS function depends on the criteria being evaluated.

Each separate condition will require arangeandcriteria.

The second argument,range1, is the range to which the first condition should be applied.

Excel formula: Average call time per month

The third argument,criteria1, contains the condition that should be applied torange1, along with anylogical operators.

Additional conditions are applied by providing additionalrange/criteriaarguments.

Each condition requires a separaterangeandcriteria, and operators need to be enclosed in double quotes ("").

Excel formula: Basic average example

Note the difference in the two examples below.

Double quotes are also used for text values.

Notice the less thanoperator(which is text) is enclosed in quotes.

Excel formula: Average by group

Wildcards

Thewildcardcharacters question mark (?

), asterisk(*), or tilde (~) can be used in criteria.

A question mark (?)

Excel formula: Average salary by department

matches any one character and an asterisk (*) matches zero or more characters of any kind.

For example, to match a literal question mark (?

~?, ~*, ~~).

Excel formula: Average with multiple criteria

Note: the order of arguments is different between AVERAGEIFS andAVERAGEIF.

The range to average is always thefirstargument in AVERAGEIFS.

MODE Function

The Excel MODE function returns the most frequently occurring number in a numeric data set.

Excel formula: Average by month

For example, =MODE(1,2,4,4,5,5,5,6) returns 5.

Excel formula: Dynamic two-way average

Excel formula: Dynamic two-way sum

Excel formula: Average if with filter

Excel formula: Average numbers ignore zero

Excel AVERAGE function

Excel AVERAGEIF function

Excel MODE function