DAVERAGE(database, field, criteria)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
database:
The range of cells that contains the data you want to average. This range should include the headers for each column.
field:
The column label or index number that specifies which column in the database you want to average. This can be a text string (the header name) or a number (the position of the column in the database).
criteria:
The range of cells that contains the conditions you want to apply to the database. This defines which records will be included in the average calculation based on the specified conditions.
The DAVERAGE function in Google Sheets is a statistical tool used to calculate the average of a set of values that meet specified criteria. This function is particularly useful when you want to analyze data based on certain conditions, allowing you to focus on a subset of your data while ignoring others.
In simpler terms, DAVERAGE helps you find the average of numbers in a column while applying filters to consider only the data that meets your defined criteria.
Imagine you are managing a sales database that contains information about different products sold:
| ProductID | ProductName | SalesAmount | Region |
|---|---|---|---|
| 101 | Widget A | 250 | North |
| 102 | Widget B | 300 | South |
| 103 | Widget C | 150 | North |
| 104 | Widget D | 400 | South |
| 105 | Widget E | 200 | North |
You want to find the average sales amount for products sold in the North region.
To achieve this, you would use the DAVERAGE function as follows:
=DAVERAGE(SalesTable, "SalesAmount", Criteria)In this formula:
SalesTable is the range that includes your data (e.g., A1:D6)."SalesAmount" is the column for which you want to calculate the average.Criteria is a range that specifies the condition you want to apply (e.g., a cell that contains "North").| Region |
|---|
| North |
When you apply the DAVERAGE formula to the Sales Table with the criteria for the North region, the output would be:
| Average Sales Amount |
|---|
| 333.33 |
This result is calculated by averaging the SalesAmount for Widget A, Widget C, and Widget E, which are the products sold in the North region.
DAVERAGE is beneficial because it allows for more precise data analysis by focusing on specific subsets of data. It simplifies the process of calculating averages under certain conditions, making it easier to derive insights from your data without having to manually filter or sort it.
DAVERAGE is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a sales data table with columns for product type, sales amount, and region. Use DAVERAGE to calculate the average sales for a specific product type in a selected region, enabling targeted analysis of sales performance across different markets.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.