国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Table of Contents
Excel's AVERAGEIF and AVERAGEIFS functions quick review
How to use the AVERAGEIF function in Excel
How to use the AVERAGEIFS function in Excel
Home Software Tutorial Office Software How to Use the AVERAGEIF and AVERAGEIFS Functions in Excel

How to Use the AVERAGEIF and AVERAGEIFS Functions in Excel

Mar 07, 2025 am 06:03 AM

Excel's AVERAGEIF and AVERAGEIFS functions quick review

Excel's AVERAGEIF and AVERAGEIFS functions can be used to calculate the average value of a dataset. However, unlike simpler AVERAGE functions, they are able to include or exclude specific values ??in the calculation.

How to use the AVERAGEIF function in Excel

Excel's AVERAGEIF function allows you to calculate the average value of a filtered dataset based on a single condition set.

AVERAGEIF function syntax

The AVERAGEIF function contains three parameters:

<code>=AVERAGEIF(x,y,z)</code>

Of:

  • x (required) is the cell area to be tested according to the conditions;
  • y (required) is a condition (testing parameter x);
  • z (optional) is the cell area to be averaged if the test in parameter y meets the criteria. If you omit z, Excel averages the values ??identified in parameter x.

AVERAGEIF Function Practical

Let's take a look at an example of the AVERAGEIF function in practical applications.

Suppose you have an Excel table with the names, ages and salaries of 12 people, you need to calculate the average salary of people over 40.

How to Use the AVERAGEIF and AVERAGEIFS Functions in Excel

In this case, recall the syntax above, column B contains the value you want to test (parameter x), greater than 40 is the condition for the value of column B (parameter y), and column C contains the value you want to average (parameter z).

Therefore, you need to enter:

in a separate cell:
<code>=AVERAGEIF(Table1[Age],">40",Table1[Salary])</code>

and press Enter.

How to Use the AVERAGEIF and AVERAGEIFS Functions in Excel

Let's take some time to break down this formula.

First, you will notice that structured references are used for parameters x and z. In other words, the formula refers to the column header, rather than using the cell reference directly (for example, use B2:B13 for parameter x and C2:C13 for parameter z). This is because the data is contained in a formatted Excel table, and the program uses the table title in the formula by default. This means that if you add extra rows to the bottom of your data, the formula will automatically include these new values.

Secondly, the parameter y is included in double quotes. When using logical operators in Excel formulas (for example, equal to, greater than, or less), they must be placed in double quotes.

Things to note when using AVERAGEIF function

Before you use AVERAGEIF in your spreadsheet, there are some important points to be paid attention to.

First of all, the parameter y (test) is very flexible. Although the above example uses ">40" (logical operator) to test the range in parameter x, you can use various other types of conditions:

條件類型 示例公式 計算結果
=AVERAGEIF(Table1[Age],44,Table1[Salary]) 44 歲個人的平均工資
文本 =AVERAGEIF(Table1[Person],"Jenny",Table1[Salary]) 姓名為 Jenny 的人的平均工資
通配符 =AVERAGEIF(Table1[Person],"Jo",Table1[Salary]) 姓名以 Jo 開頭的任何人的平均工資
單元格引用 =AVERAGEIF(Table1[Age],B15,Table1[Salary]) 與 B15 單元格中的年齡條件匹配的任何人的平均工資
上述條件的組合 =AVERAGEIF(Table1[Person],"Ja",Table1[Salary]) 姓名不以 Ja 開頭的任何人的平均工資

Secondly, the AVERAGEIF function does not take into account empty cells. For example, if someone's salary value is blank, it is ignored in the average calculation. However, if someone’s salary is $0, will include in the average calculation.

Lastly, if no specified cell meets the test conditions, Excel returns a #DIV/0! error to tell you that it cannot calculate the average.

How to use the AVERAGEIFS function in Excel

AVERAGEIF Tests a condition before calculating the average value that satisfies all values ??tested, while AVERAGEIFS allows you to further narrow the results by using multiple conditions.

AVERAGEIFS function syntax

It should be noted that the order and number of parameters in the AVERAGEIFS function are very different from those in the AVERAGEIF function:

<code>=AVERAGEIF(x,y,z)</code>

Of:

  • x (required) is the area of ??cells containing the values ??to be averaged;
  • y1 (required) is the cell area containing the first value to be tested;
  • y2 (required) is a test of y1;
  • z1 (optional) is the cell area containing the second value to be tested;
  • z2 (required if z1 is included) is a test of z1.

In other words, the above syntax means using the AVERAGEIFS function to create two tests (y and z), but you can include up to 127 tests in total.

AVERAGEIFS Function Practical

If the AVERAGEIFS syntax confuses you, things get clearer when you see how the function works in the example.

This Excel form contains the name, age, gender, and salary of the person, and your goal is to calculate the average salary for all men over 35 years of age.

How to Use the AVERAGEIF and AVERAGEIFS Functions in Excel

Because there are two conditions (age and gender), you need to use the AVERAGEIFS function:

<code>=AVERAGEIF(Table1[Age],">40",Table1[Salary])</code>

Of:

  • Table2[Salary] is the area of ??cells containing the value to be averaged (parameter x);
  • Table2[Age] is the cell area (parameter y1);
  • ">35" is a test of the first range (parameter y2);
  • Table2[Gender] is the cell area (parameter z1);
  • "M" is a test for the second range (parameter z2).

How to Use the AVERAGEIF and AVERAGEIFS Functions in Excel

Things to note when using AVERAGEIFS function

When using the AVERAGEIFS function, remember the following points:

  • The test can be logical parameters, values, text, cell references, or a combination of these.
  • Logical parameters and text must always be enclosed in double quotes.
  • Only cells that meet the all conditions are met will be included in the average calculation.
  • All areas specified in the AVERAGEIFS formula must be the same size.
  • The AVERAGEIFS function ignores empty cells but contains cells with a value of zero.
  • If no cell meets all conditions, a #DIV/0! error will be returned.

AVERAGEIF and AVERAGEIFS are not the only functions in Excel that calculate the average value of the dataset. For example, the AVERAGE function generates a direct arithmetic average of the dataset, while the AVERAGEA function returns the average of numbers, text, and logical parameters.

The above is the detailed content of How to Use the AVERAGEIF and AVERAGEIFS Functions in Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to Use Parentheses, Square Brackets, and Curly Braces in Microsoft Excel How to Use Parentheses, Square Brackets, and Curly Braces in Microsoft Excel Jun 19, 2025 am 03:03 AM

Quick Links Parentheses: Controlling the Order of Opera

Outlook Quick Access Toolbar: customize, move, hide and show Outlook Quick Access Toolbar: customize, move, hide and show Jun 18, 2025 am 11:01 AM

This guide will walk you through how to customize, move, hide, and show the Quick Access Toolbar, helping you shape your Outlook workspace to fit your daily routine and preferences. The Quick Access Toolbar in Microsoft Outlook is a usefu

How to insert date picker in Outlook emails and templates How to insert date picker in Outlook emails and templates Jun 13, 2025 am 11:02 AM

Want to insert dates quickly in Outlook? Whether you're composing a one-off email, meeting invite, or reusable template, this guide shows you how to add a clickable date picker that saves you time. Adding a calendar popup to Outlook email

Prove Your Real-World Microsoft Excel Skills With the How-To Geek Test (Intermediate) Prove Your Real-World Microsoft Excel Skills With the How-To Geek Test (Intermediate) Jun 14, 2025 am 03:02 AM

Whether you've secured a data-focused job promotion or recently picked up some new Microsoft Excel techniques, challenge yourself with the How-To Geek Intermediate Excel Test to evaluate your proficiency!This is the second in a three-part series. The

How to Delete Rows from a Filtered Range Without Crashing Excel How to Delete Rows from a Filtered Range Without Crashing Excel Jun 14, 2025 am 12:53 AM

Quick LinksWhy Deleting Filtered Rows Crashes ExcelSort the Data First to Prevent Excel From CrashingRemoving rows from a large filtered range in Microsoft Excel can be time-consuming, cause the program to temporarily become unresponsive, or even lea

How to Switch to Dark Mode in Microsoft Excel How to Switch to Dark Mode in Microsoft Excel Jun 13, 2025 am 03:04 AM

More and more users are enabling dark mode on their devices, particularly in apps like Excel that feature a lot of white elements. If your eyes are sensitive to bright screens, you spend long hours working in Excel, or you often work after dark, swit

Microsoft Excel Essential Skills Test Microsoft Excel Essential Skills Test Jun 12, 2025 pm 12:01 PM

Whether you've landed a job interview for a role that requires basic Microsoft Excel skills or you're looking to solve a real-world problem, take the How-To Geek Beginner Excel Test to verify that you understand the fundamentals of this popular sprea

Google Sheets IMPORTRANGE: The Complete Guide Google Sheets IMPORTRANGE: The Complete Guide Jun 18, 2025 am 09:54 AM

Ever played the "just one quick copy-paste" game with Google Sheets... and lost an hour of your life? What starts as a simple data transfer quickly snowballs into a nightmare when working with dynamic information. Those "quick fixes&qu

See all articles