Note: The other languages of the website are Google-translated. Back to English

Excel AVERAGEIFS Function

The AVERAGEIFS function calculates the average (arithmetic mean) of the numbers in a range that meet one or more supplied criteria.

averageifs function 1


Syntax

=AVERAGEIFS (average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)


Arguments

  • Average_range (required): The range to average, including numbers or names, arrays, or references that contain numbers.
  • Criteria_range1 (required): The first range to evaluate.
  • Criteria1 (required): The first criteria that defines which cells to average. It could be a number, expression, cell reference, or text.
  • Criteria_range2, … (optional): The subsequent ranges to evaluate.
  • Criteria2, … (optional): The subsequent criteria that define which cells to average.

Return value

The AVERAGEIFS function returns a numeric value.


Function notes

  1. Criteria_range and criteria should be supplied in pairs.
  2. When criteria is an empty cell, it will be treated as zero (0) value.
  3. Empty cells in average_range and criteria_range are ignored.
  4. Logical operators (>,<,<>,=) and wildcards (*,?) for partial matching can be included in the criteria argument.
  5. The #DIV/0! error will occur if:
    • no cells in the criteria_range meet the criteria
    • the values to be averaged are all non-numeric
  6. Unlike the AVERAGEIF function, each criteria_range must have the same size and shape as the average_range in the AVERAGEIFS function, otherwise, the #VALUE! error value will occur.

Examples

As shown in the table below, we need to calculate the average sales of items which starts with “A” and are not Apple. Please copy the formulas below into cell E8 and press the Enter key to get the result.

=AVERAGEIFS (C5:C14, B5:B14, E5, B5:B14, F5)

averageifs function 2

Notes:

  1. The two criteria arguments of the above formula are supplied as cell references E5 and F5.
  2. We can directly input values in criteria arguments. The formula above can be changed to:

    =AVERAGEIFS (C5:C14, B5:B14, "A*", B5:B14, "<>Apple")

Relative Functions:

  • Excel AVERAGEIF Function
    The AVERAGEIF function calculates the average (arithmetic mean) of the numbers in a range that meet the given criteria.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL