Returns the average of numeric values in a field of records in a list or database that match conditions you specify.
Master the fundamentals of Excel DAVERAGE function
DAVERAGE calculates the average of numeric values in a specified field for database records that meet given conditions. It uses a criteria range to filter records before averaging, making it powerful for analyzing structured data with multiple conditions.
Requires proper database layout with headers
Field name or 1-based index
Separate criteria range with field names
Function-specific parameters
Function-specific return type
Average by region/product
Average by account/period
Average scores by criteria
Exact matching required
Returns numeric position
Handles missing text gracefully
=DAVERAGE(database, field, criteria)Range of cells that makes up the database. First row must contain field names.
Field name or index (1 for first field) indicating which column to average
Range containing conditions. First row must contain field names.
Average of matching numeric values
Description: Averages database records meeting criteria
Average sales for North region
Averages Sales where Region matches criteria
Simple VBA usage
Sub UseDAverage()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Sheet1")
' Average sales for matching records
ws.Range("G1").Value = Application.WorksheetFunction.DAverage(ws.Range("A1:D100"), _
"Sales", ws.Range("E1:F2"))
End SubAverage by region
Average by period
Criteria not matching
Check field names matchSolution: Verify criteria range format matches database headers