Excel - AVERAGEIFS and IFERROR Tutorial

In this video training on Microsoft 365, you will learn about the intelligent search feature in the Microsoft 365 environment.
The video covers the subtleties of searching for documents, emails, notes, and more within the Microsoft 365 suite.
It demonstrates how to use the search function in SharePoint, find content and people, search for emails, back up and save notes, and run searches in the Office365 Portal and on your mobile phone.
This will help you save time and improve efficiency in finding the information you need.

  • 4:45
  • 5450 views

Objectifs :

Understand how to calculate average sales by region using the AVERAGEIFS function in Excel, handle errors with the IFERROR function, and apply these concepts to real-world scenarios.


Chapitres :

  1. Introduction to AVERAGEIFS Function
    In this section, we will explore how to determine the average sales by region for salespeople who have 50 or more orders. The AVERAGEIFS function allows us to calculate averages based on multiple criteria, making it a powerful tool for data analysis in Excel.
  2. Selecting the Data Range
    To begin, we select the range of cells we want to average. In this case, we will average the sales data located in cells D2 through D7. By pressing F4, we can make this an absolute cell reference, ensuring that our range remains constant when we copy the formula.
  3. Setting Criteria for Evaluation
    Next, we will select the first range of cells to evaluate, which corresponds to the Region column. We then specify the criteria for this range, focusing on the North region. Additionally, we will select the range of cells that represent the number of orders, ensuring we only include salespeople with 50 or more orders.
  4. Understanding the AVERAGEIFS Function
    The AVERAGEIFS function works similarly to the SUMIFS function, allowing us to evaluate specific conditions. In our example, we have two salespeople, Mo and Dave, in the North region. Both have orders greater than or equal to 50, so the function averages their sales, resulting in an average of 63,370.
  5. Handling Errors in AVERAGEIFS
    It's important to note that the average for the South region results in a divide by zero error. This occurs because Wei, the only salesperson in the South region, has fewer than 50 orders. When no cells meet the criteria, AVERAGEIFS returns this error. We will learn how to handle this situation using the IFERROR function.
  6. Using the IFERROR Function
    To enhance our formula, we can wrap the AVERAGEIFS function inside an IFERROR function. This function checks for errors and allows us to specify a value to return if an error occurs. In this case, we will return 'NA' if AVERAGEIFS evaluates to an error. As a result, the South region will no longer display an error.
  7. Syntax of AVERAGEIFS and IFERROR
    The syntax for the AVERAGEIFS function includes: - Average_range: The range of cells to average. - Criteria_range1: The first range evaluated. - Criteria1: The criteria for the first range. - Criteria_range2, Criteria2, etc.: Optional additional criteria. The IFERROR function syntax includes: - Value: The argument checked for an error. - Value_if_error: The value returned if an error is found.
  8. Conclusion
    In summary, we have learned how to use the AVERAGEIFS function to calculate average sales by region while considering specific criteria. We also explored how to handle errors using the IFERROR function, ensuring our calculations remain robust and informative. Mastering these functions enhances our ability to analyze data effectively in Excel.

FAQ :

What is the AVERAGEIFS function used for in Excel?

The AVERAGEIFS function is used to calculate the average of a range of cells that meet multiple criteria, allowing for more complex data analysis.

How do I handle a divide by zero error in Excel?

You can handle a divide by zero error in Excel by using the IFERROR function, which allows you to specify a value to return if an error occurs.

What is the difference between AVERAGEIFS and SUMIFS?

AVERAGEIFS calculates the average of cells that meet specified criteria, while SUMIFS sums the values of cells that meet those criteria.

Can I use wildcard characters in the AVERAGEIFS function?

Yes, you can use wildcard characters such as the question mark (?) and asterisk (*) in the criteria for the AVERAGEIFS function to match specific patterns.

What should I do if my AVERAGEIFS function returns an error?

If your AVERAGEIFS function returns an error, you can wrap it in the IFERROR function to return a more user-friendly value instead of the error.


Quelques cas d'usages :

Sales Performance Analysis

A sales manager can use the AVERAGEIFS function to analyze the average sales of salespeople in different regions who have met a minimum order threshold, helping to identify top performers.

Error Handling in Financial Reports

An accountant can implement the IFERROR function in financial reports to ensure that any errors in calculations, such as divide by zero errors, are handled gracefully, improving the report's readability.

Market Research

A market analyst can use the AVERAGEIFS function to calculate the average sales of products in specific regions, allowing for targeted marketing strategies based on performance data.

Inventory Management

A supply chain manager can apply the AVERAGEIFS function to assess the average sales of items that meet certain criteria, aiding in inventory forecasting and management.

Performance Reviews

HR professionals can utilize the AVERAGEIFS function to evaluate the average performance metrics of employees who have completed a certain number of projects, facilitating fair performance reviews.


Glossaire :

AVERAGEIFS

A function in Excel that calculates the average of a range of cells that meet multiple specified criteria.

absolute cell reference

A reference in Excel that remains constant even when the formula is copied to another cell, typically denoted by a dollar sign (e.g., $D$2).

SUMIFS

A function in Excel that sums the values in a range that meet multiple specified criteria.

divide by zero error

An error in Excel that occurs when a formula attempts to divide a number by zero, resulting in an undefined value.

IFERROR

A function in Excel that returns a specified value if a formula results in an error; otherwise, it returns the result of the formula.

wildcard characters

Special characters used in Excel criteria to represent one or more characters; the question mark (?) represents a single character, and the asterisk (*) represents any number of characters.

00:00:06
where the sales person has 50 or more orders.
00:00:10
We can do this with the AVERAGEIFS function.
00:00:16
First we select the range of cells we want to average.
00:00:19
In this case cells D2 through D7 in the sales column.
00:00:25
I'm pressing F4 to make this an absolute cell reference.
00:00:30
Next we'll select the first range of cells we want to evaluate;
00:00:33
the range of cells in the Region column.
00:00:38
Then we select the criteria by which the range is evaluated,
00:00:42
in this case, East, cell F2;
00:00:47
then we select the range of cells for the number of orders,
00:00:52
and the criteria it needs to meet.
00:00:59
In the North region, for sales people having 50 or more orders,
00:01:04
their average sales are $63,370.
00:01:11
Let's walk through this; it's similar to the SUMIFS function:
00:01:17
first the function evaluates how many cells in the region column
00:01:21
contain a specific region.
00:01:23
In this example: North.
00:01:28
There are two: Mo and Dave are the salespeople for the North region.
00:01:34
Of these two, SUMIFS then evaluates how many have orders
00:01:39
greater than or equal to 50.
00:01:43
For North, this is both Mo and Dave.
00:01:49
Lastly, the function averages the cells from the range of
00:01:52
cells in the sales column, where all the corresponding criteria are met.
00:01:59
The average of Mo and Dave's sales is $63,370.
00:02:07
You'll notice that the average for the South region is a divide by zero error.
00:02:12
I'll show you why, and how to handle this in a minute.
00:02:17
AVERAGEIFS returns the average of cells that meet multiple criteria.
00:02:23
This is the syntax of the AVERAGEIFS function:
00:02:27
average range is required, it's one or more cells to average;
00:02:31
blank and text values are ignored.
00:02:36
Criteria range 1 is required, it's the first range that's evaluated.
00:02:42
Criteria 1 is required; it's the criteria by which
00:02:46
Criteria range 1 is evaluated.
00:02:50
Criteria range 2; criteria 2, and so on, are optional.
00:02:57
Each of the cells in the average range is used in
00:03:00
the average calculation only if all the corresponding
00:03:03
criteria specified are true for that cell.
00:03:08
All criteria range must be the same size and shape as average range.
00:03:15
You can use the question mark, an asterisk wildcard characters in criteria.
00:03:21
As we saw before, the average for the South region
00:03:24
returns a divide by zero error.
00:03:28
Wei is the only salesperson in the south region, and she has fewer than 50 orders.
00:03:35
If there are no cells that meet all the criteria,
00:03:38
AVERAGEIFS returns the divide by zero error.
00:03:42
We can enhance the formula with the IFERROR function to
00:03:45
handle this and other error conditions.
00:03:49
I'm putting the AVERAGEIFS function inside an IFERROR function.
00:03:56
IFERROR returns the values specified, in this case NA,
00:04:01
if AVERAGEIFS evaluates to an error.
00:04:04
Otherwise it returns the result of the formula.
00:04:12
And we see that the South region no longer returns an error.
00:04:18
This is the syntax of the IFERROR function.
00:04:21
Value is required.
00:04:24
It's the argument that is checked for an error.
00:04:27
Value if error is also required.
00:04:30
It's what IFERROR returns if the value argument returns an error.
00:04:37
Now you've got a pretty good idea about how to use IF functions in Excel.
00:04:41
Of course there's always more to learn.

No elements match your search in this video....
Do another search or back to content !

 

Mandarine AI: WHAT YOU SHOULD KNOW

Reminder

Show