Back to product guides

Excel Formulas

In this article, you will learn how to use the AVERAGEIFS formula in Excel.

The AVERAGEIFS function in Excel is typically used to calculate the average of cells that meet multiple criteria.

The AVERAGEIFS formula in Excel is typically used to calculate the average of cells that meet multiple criteria. This can be useful in various situations where you want to find the mean of a specific subset of data in a larger dataset. For example, you could use the AVERAGEIFS formula to calculate the average sales of a specific product in a particular region or to find the average score of students who received a specific grade on a test. You could also use it to find the average salary of employees who have a particular job title and have been working for a specific number of years.

The general syntax for the function is as follows:

**"average_range"** is the range of cells that you want to average.

**"criteria_range1"** is the range of cells that you want to evaluate using the **"criteria1"** condition.

**"criteria1"** is the condition that the cells in **"criteria_range1"** must meet to be included in the average.

**"criteria_range2", "criteria2", etc.** are optional arguments, where you can include other ranges and conditions that cells must meet to be included in the average.

**Note 1**: The formula returns the average of cells that meet **all **specified requirements.

**Note 2**: The size and shape of the **“aravera_range” **argument and those of the **“criteria_range” **arguments must be the same.

**Note 3**: When you enter non-numeric criteria manually in the formula, remember that you enclose each text with double quotes.

**Note 4**: The AVERAGEIFS formula is not case-sensitive.

**Note 5**: If the selected **“average_range”** contains any “TRUE” or “FALSE”, the calculated result may be incorrect because the AVERAGEIFS treats “TRUE” as 1 and “FALSE” as 0.

**Note 6**:** **The AVERAGEIFS function returns #DIV! error value if (i) the “average_range” argument is blank or text (or is not considered numbers), or (ii) no cell meets all the provided standards.

**Note 7**: If you don’t enter any **“criteria range”** argument, the formula interprets it as a zero value.

The following section shows examples of the AVERAGEIFS function with multiple conditions, such as numeric value and text.

Before looking at some examples, learn basic operators and wildcards quickly.

If you can add a condition to a specific number of N, you can use the following logic operators.

**>N**: Greater than N

**>=N**: Greater than or equal to N

**<N**: Less than N

**<=N**: Less than or equal to N

**=N**: Equal to N

**<>N**: Not equal to N

Wildcards include three signs: an asterisk, a question mark, and a tilde, each of which has a different function.

**”*” (Asterisk)**: Any character (e.g., A*: Any characters starting with A / *B*: Any characters containing B)

**”?” (Question mark)**: The number of character(s) corresponds to the number of question mark(s). (e.g., ”????”: Any four characters)

**”~” (Tilde)**: This negates the effect of the other wildcards next to the right and makes them work as literal marks without any function as wildcards. (e.g., ”*~?~?*”: Any characters containing two question marks)

**Number and Text**

Assume you have the dataset in the picture below and want to calculate the average sales from clients who recorded sales over 5000 and bought Pear. You can use the following formula:

**average_range**: $E$3:$E$12 (Sales column)

**criteria_range1**: $E$3:$E$12 (Sales column)

**criteria1**: $C$15

**criteria_range2**: $C$3:$C$12 (Product Type column)

**criteria2**: $C$16

Although we recommend that you use cell references to input conditions as they give you more visibility and clarity of the criteria applied, if you can insert the criteria manually, you can create the formula below for this case.

**Text and Date**

Next, imagine you have the same dataset and want to calculate the average sales from clients who purchased products whose names do not start with P on or before 6/30/2022. The formula should be as follows:

**average_range**: $E$23:$E$32 (Sales column)

**criteria_range1**: $C$23:$C$32 (Product Type column)

**criteria1**: $C$35

**criteria_range2**: $D$23:$D$32 (Contract Date column)

**criteria2**: $C$36

The following formula includes input criteria manually.

**Date and Number**

Lastly, assume that you have the same dataset and want to calculate the average sales from clients who recorded more than 7000 sales on or after 4/30/2022. You can use the formula below.

**average_range**: $E$43:$E$52 (Sales column)

**criteria_range1**: $D$43:$D$52 (Contract Date column)

**criteria1**: $C$55

**criteria_range2**: $E$43:$E$52 (Sales column)

**criteria2**: $C$56

If you want to generate the AVERAGEIFS with manually input conditions, use the formula below.

As you have seen, you can input the **“criteria”** argument(s) manually. However, we recommend the cell reference approach (instead of manual inputs) because it gives you more visibility and clarity about the condition as the requirement can be seen in a cell and allows you to change the criterion more quickly. You don’t need to put your cursor on the cell containing the formula or open the cell by hitting the F2 button to see in detail or revise the function. Note that you don’t need to enclose it with quotation marks when you put a criterion in a cell.

The AVERAGEIFS and AVERAGEIF functions in Excel are used to calculate the average of cells. However, there is a key difference between the two. You can use the AVERAGEIFS function to calculate the average of cells that meet multiple criteria. On the other hand, the AVERAGEIF function allows you to calculate the average of cells that meet a single standard.

Are you learning this formula to visualize financial data, build a financial model, or conduct financial analysis? In that case, LiveFlow may help you automate manual workflows, update numbers in real-time, and save time. You can access various financial templates on our website, from the simple Income Statement to Multi-Currency Consolidated Financial Statement. Are you interested in this product but are an Excel user? That’s not a problem at all. You can connect Google Sheets to Excel quickly.

To learn more about LiveFlow, book a demo.

Learn how to do this step-by-step in the video below 👇

Our team of real people are here to help you any time between 9am and 10pm EST.

Email us at: help@liveflow.io

Call us at +1 (415) 650-1711