Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

Excel DAVERAGE Function

The Excel DAEVARAGE function returns the average of values in a field of records in a list or database that match the specific criteria.


Syntax

=DAVERAGE (database, field, criteria)


Arguments

Database: The range of cells that makes up the database. The first row of the database should be the column headers.

Field: The column you will calculate the average from. It can be set to column label or index number as below:

  • Column label: The column label (column header) need to be entered between double quotation marks, such as “quantity”.
  • Index number: The number that represents the position of the column in the database, which you will return the average from. The first column number is 1.

Criteria: The range of cells that contains the criteria. The first row of this criteria range should be the column headers.

  • You can use any range (besides the range below the list) for the criteria argument, but it must include at least one column header and at least one cell value below the column header for specifying the condition.
  • Make sure the criteria range dose not overlap the list.

Return value

The DAVERAGE function will return the average value in a given field based on some specific criteria.


Example

As the below screenshot shown, how to average the quantity of TV only in store C? Here I will show you how to achieve it with DAVERAGE function in Excel.

1. Select a blank cell to output the result, copy and paste the below formula into it and press the Enter key to return the average.
=DAVERAGE(B2:F13,"quantity",H3:I4)

Notes:
1) In the formula, B2:F13 is the database you will operate; “quantity” means that you will calculate the average from this quantity column; and H3:I4 is the conditions range including headers.
2) You can replace “quantity” with certain index number (here use number 4 to represent the fourth column in the database): =DAVERAGE(B2:F13,4,H3:I4).
3) For averaging the quantity of TV in all stores, please apply the below formula.
=DAVERAGE(B2:F13,4,H3:H4)


More examples:

How to average a range of data ignoring zero in Excel?

How to calculate average in a column based on criteria in another column in Excel?


Excel Productivity Tools

300 Advanced Features Help 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 70% time.

  • 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.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.

Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Office Tab Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.