Category: FUNCTION | Updated: 2026-11-22
How to Use the DAVERAGE Function in Google Sheets | Calculate the Average of Data Matching Criteria
Syntax
=DAVERAGE(database, field, criteria)
- database: Specifies the entire cell range of the data, including headers in the first row.
- field: Specifies the header name of the column to average, or its column number from the left.
- criteria: Specifies the cell range containing the filter conditions (headers + condition values).
Practical Example with a Table
Here is an example of calculating the average score from employee evaluation data (A1:C6) for employees matching the criteria range (E1:F2): “Department is Sales AND Tenure is 3 years or more.”
| Cell Range | Role | Contents |
|---|---|---|
A1:C6 |
Database | Row 1: Department, Tenure, Score / Rows 2–6: employee data |
E1:F2 |
Criteria Range | E1 = Department, E2 = Sales, F1 = Tenure, F2 = >=3 |
| Formula Cell | Average Result | =DAVERAGE(A1:C6, "Score", E1:F2) → Outputs the average score of matching employees |
Common Errors and Notes
- #DIV/0! Error: Occurs if no records match the criteria, or if none of the matching records contain a numeric value in the
fieldcolumn. - #VALUE! Error: Occurs if the column name specified in
fielddoes not exist in the first row ofdatabase. - Blank Cells vs. 0: Blank cells in the target column are excluded from the denominator when averaging, whereas cells containing
0are included as numbers.
Frequently Asked Questions
Q. What is the difference between the DAVERAGE function and the AVERAGEIFS function?
A. AVERAGEIFS writes conditions directly inside the formula, whereas DAVERAGE uses a separate criteria table on the sheet. DAVERAGE is easier to manage when conditions change frequently or involve complex OR logic.
Q. What happens if no records match the criteria?
A. If 0 records match the criteria, the denominator is 0, so a "#DIV/0!" error is returned.