Functions that accept conditions and wildcards as arguments

Some functions, such as SUM, operate on entire collections. Other functions, such as SUMIF, operate only on the cells in the collection that meet a condition. For example, to add up all the numbers in column B that are less than 5, you could use:

=SUMIF(B,“<5”)

The second argument of SUMIF is called a condition because it causes the function to ignore cells that do not meet the requirements.

There are two types of functions that take conditions:

The table below lists all the functions that can accept conditions—either numeric comparisons, wildcards, or both.

Function

Allows numeric comparisons

Accepts wildcards

AVERAGEIF

Yes

Yes

AVERAGEIFS

Yes

Yes

COUNTIF

Yes

Yes

COUNTIFS

Yes

Yes

HLOOKUP

No

If exact match specified

MATCH

No

If exact match specified

SEARCH

No

Yes

SUMIF

Yes

Yes

SUMIFS

Yes

Yes

VLOOKUP

No

If exact match specified