Database
All versions
◉ 27 views
=DAVERAGE()
Averages the values in a field (column) of records in a list or database that match conditions you specify.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=DAVERAGE(database, field, criteria)
Hover argument names in the table for details.
Output typeNumber
Popularity25 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =DAVERAGE() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
database |
Range | Optional | is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column. |
field |
Any type | Optional | indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on. |
criteria |
Range | Optional | is the range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column. |
▣ Examples
▦ Data
| Cell | Value |
|---|---|
A2 |
Tree |
B2 |
Height |
C2 |
Age |
D2 |
Yield |
E2 |
Profit |
F2 |
Height |
A3 |
=Apple |
B3 |
>10 |
F3 |
<16 |
A4 |
=Pear |
A5 |
Tree |
B5 |
Height |
C5 |
Age |
D5 |
Yield |
E5 |
Profit |
A6 |
Apple |
B6 |
18 |
C6 |
20 |
D6 |
14 |
E6 |
105 |
A7 |
Pear |
B7 |
12 |
C7 |
12 |
D7 |
10 |
E7 |
96 |
A8 |
Cherry |
B8 |
13 |
C8 |
14 |
D8 |
9 |
E8 |
105 |
A9 |
Apple |
B9 |
14 |
C9 |
15 |
D9 |
10 |
E9 |
75 |
A10 |
Pear |
B10 |
9 |
C10 |
8 |
D10 |
8 |
E10 |
76.8 |
A11 |
Apple |
B11 |
8 |
C11 |
9 |
D11 |
6 |
E11 |
45 |
A12 |
What you type in the cell |
B12 |
What Excel evaluates and displays |
A13 |
="=Davolio" |
B13 |
=Davolio |
A14 |
="=3000" |
B14 |
=3000 |
B15 |
A |
C15 |
B |
D15 |
C |
A16 |
1 |
B16 |
Type |
C16 |
Salesperson |
D16 |
Sales |
A17 |
2 |
A18 |
3 |
A19 |
4 |
A20 |
5 |
A21 |
6 |
B21 |
Type |
C21 |
Salesperson |
D21 |
Sales |
A22 |
7 |
B22 |
Beverages |
C22 |
Suyama |
D22 |
$5122 |
A23 |
8 |
B23 |
Meat |
C23 |
Davolio |
D23 |
$450 |
A24 |
9 |
B24 |
produce |
C24 |
Buchanan |
D24 |
$6328 |
A25 |
10 |
B25 |
Produce |
C25 |
Davolio |
D25 |
$6544 |
B26 |
A |
C26 |
B |
D26 |
C |
A27 |
1 |
B27 |
Type |
C27 |
Salesperson |
D27 |
Sales |
A28 |
2 |
B28 |
=Produce |
D28 |
>1000 |
A29 |
3 |
A30 |
4 |
A31 |
5 |
A32 |
6 |
B32 |
Type |
C32 |
Salesperson |
D32 |
Sales |
A33 |
7 |
B33 |
Beverages |
C33 |
Suyama |
D33 |
$5122 |
A34 |
8 |
B34 |
Meat |
C34 |
Davolio |
D34 |
$450 |
A35 |
9 |
B35 |
produce |
C35 |
Buchanan |
D35 |
$6328 |
A36 |
10 |
B36 |
Produce |
C36 |
Davolio |
D36 |
$6544 |
B37 |
A |
C37 |
B |
D37 |
C |
A38 |
1 |
B38 |
Type |
C38 |
Salesperson |
D38 |
Sales |
A39 |
2 |
B39 |
=Produce |
A40 |
3 |
A41 |
4 |
A42 |
5 |
A43 |
6 |
B43 |
Type |
C43 |
Salesperson |
D43 |
Sales |
A44 |
7 |
B44 |
Beverages |
C44 |
Suyama |
D44 |
$5122 |
A45 |
8 |
B45 |
Meat |
C45 |
Davolio |
D45 |
$450 |
A46 |
9 |
B46 |
produce |
C46 |
Buchanan |
D46 |
$6328 |
A47 |
10 |
B47 |
Produce |
C47 |
Davolio |
D47 |
$6544 |
B48 |
A |
C48 |
B |
D48 |
C |
A49 |
1 |
B49 |
Type |
C49 |
Salesperson |
D49 |
Sales |
A50 |
2 |
A51 |
3 |
A52 |
4 |
A53 |
5 |
A54 |
6 |
B54 |
Type |
C54 |
Salesperson |
D54 |
Sales |
A55 |
7 |
B55 |
Beverages |
C55 |
Suyama |
D55 |
$5122 |
A56 |
8 |
B56 |
Meat |
C56 |
Davolio |
D56 |
$450 |
A57 |
9 |
B57 |
produce |
C57 |
Buchanan |
D57 |
$6328 |
A58 |
10 |
B58 |
Produce |
C58 |
Davolio |
D58 |
$6544 |
B59 |
A |
C59 |
B |
D59 |
C |
E59 |
D |
A60 |
1 |
B60 |
Type |
C60 |
Salesperson |
D60 |
Sales |
E60 |
Sales |
A61 |
2 |
A62 |
3 |
A63 |
4 |
A64 |
5 |
A65 |
6 |
B65 |
Type |
C65 |
Salesperson |
D65 |
Sales |
A66 |
7 |
B66 |
Beverages |
C66 |
Suyama |
D66 |
$5122 |
A67 |
8 |
B67 |
Meat |
C67 |
Davolio |
D67 |
$450 |
A68 |
9 |
B68 |
produce |
C68 |
Buchanan |
D68 |
$6328 |
A69 |
10 |
B69 |
Produce |
C69 |
Davolio |
D69 |
$6544 |
A70 |
Use |
B70 |
To find |
A71 |
? (question mark) |
B71 |
Any single characterFor example, sm?th finds "smith" and "smyth" |
A72 |
* (asterisk) |
B72 |
Any number of charactersFor example, *east finds "Northeast" and "Southeast" |
A73 |
~ (tilde) followed by ?, *, or ~ |
B73 |
A question mark, asterisk, or tildeFor example, fy91~? finds "fy91?" |
B74 |
A |
C74 |
B |
D74 |
C |
A75 |
1 |
B75 |
Type |
C75 |
Salesperson |
D75 |
Sales |
A76 |
2 |
B76 |
Me |
A77 |
3 |
A78 |
4 |
A79 |
5 |
A80 |
6 |
B80 |
Type |
C80 |
Salesperson |
D80 |
Sales |
A81 |
7 |
B81 |
Beverages |
C81 |
Suyama |
D81 |
$5122 |
A82 |
8 |
B82 |
Meat |
C82 |
Davolio |
D82 |
$450 |
A83 |
9 |
B83 |
produce |
C83 |
Buchanan |
D83 |
$6328 |
A84 |
10 |
B84 |
Produce |
C84 |
Davolio |
D84 |
$6544 |
B85 |
A |
C85 |
B |
D85 |
C |
E85 |
D |
A86 |
1 |
B86 |
Type |
C86 |
Salesperson |
D86 |
Sales |
E86 |
Calculated Average |
A87 |
2 |
A88 |
3 |
A89 |
4 |
A90 |
5 |
A91 |
6 |
B91 |
Type |
C91 |
Salesperson |
D91 |
Sales |
A92 |
7 |
B92 |
Beverages |
C92 |
Suyama |
D92 |
$5122 |
A93 |
8 |
B93 |
Meat |
C93 |
Davolio |
D93 |
$450 |
A94 |
9 |
B94 |
produce |
C94 |
Buchanan |
D94 |
$6328 |
A95 |
10 |
B95 |
Produce |
C95 |
Davolio |
D95 |
$6544 |
B96 |
A |
C96 |
B |
D96 |
C |
E96 |
D |
A97 |
1 |
B97 |
Type |
C97 |
Salesperson |
D97 |
Sales |
E97 |
Exact Match |
A98 |
2 |
A99 |
3 |
A100 |
4 |
A101 |
5 |
A102 |
6 |
B102 |
Type |
C102 |
Salesperson |
D102 |
Sales |
A103 |
7 |
B103 |
Beverages |
C103 |
Suyama |
D103 |
$5122 |
A104 |
8 |
B104 |
Meat |
C104 |
Davolio |
D104 |
$450 |
A105 |
9 |
B105 |
produce |
C105 |
Buchanan |
D105 |
$6328 |
A106 |
10 |
B106 |
Produce |
C106 |
Davolio |
D106 |
$6544 |
A107 |
Tree |
B107 |
Height |
C107 |
Age |
D107 |
Yield |
E107 |
Profit |
F107 |
Height |
A108 |
=Apple |
B108 |
>10 |
F108 |
<16 |
A109 |
=Pear |
A110 |
Tree |
B110 |
Height |
C110 |
Age |
D110 |
Yield |
E110 |
Profit |
A111 |
Apple |
B111 |
18 |
C111 |
20 |
D111 |
14 |
E111 |
105 |
A112 |
Pear |
B112 |
12 |
C112 |
12 |
D112 |
10 |
E112 |
96 |
A113 |
Cherry |
B113 |
13 |
C113 |
14 |
D113 |
9 |
E113 |
105 |
A114 |
Apple |
B114 |
14 |
C114 |
15 |
D114 |
10 |
E114 |
75 |
A115 |
Pear |
B115 |
9 |
C115 |
8 |
D115 |
8 |
E115 |
76.8 |
A116 |
Apple |
B116 |
8 |
C116 |
9 |
D116 |
6 |
E116 |
45 |
A117 |
What you type in the cell |
B117 |
What Excel evaluates and displays |
A118 |
="=Davolio" |
B118 |
=Davolio |
A119 |
="=3000" |
B119 |
=3000 |
B120 |
A |
C120 |
B |
D120 |
C |
A121 |
1 |
B121 |
Type |
C121 |
Salesperson |
D121 |
Sales |
A122 |
2 |
A123 |
3 |
A124 |
4 |
A125 |
5 |
A126 |
6 |
B126 |
Type |
C126 |
Salesperson |
D126 |
Sales |
A127 |
7 |
B127 |
Beverages |
C127 |
Suyama |
D127 |
$5122 |
A128 |
8 |
B128 |
Meat |
C128 |
Davolio |
D128 |
$450 |
A129 |
9 |
B129 |
produce |
C129 |
Buchanan |
D129 |
$6328 |
A130 |
10 |
B130 |
Produce |
C130 |
Davolio |
D130 |
$6544 |
B131 |
A |
C131 |
B |
D131 |
C |
A132 |
1 |
B132 |
Type |
C132 |
Salesperson |
D132 |
Sales |
A133 |
2 |
B133 |
=Produce |
D133 |
>1000 |
A134 |
3 |
A135 |
4 |
A136 |
5 |
A137 |
6 |
B137 |
Type |
C137 |
Salesperson |
D137 |
Sales |
A138 |
7 |
B138 |
Beverages |
C138 |
Suyama |
D138 |
$5122 |
A139 |
8 |
B139 |
Meat |
C139 |
Davolio |
D139 |
$450 |
A140 |
9 |
B140 |
produce |
C140 |
Buchanan |
D140 |
$6328 |
A141 |
10 |
B141 |
Produce |
C141 |
Davolio |
D141 |
$6544 |
B142 |
A |
C142 |
B |
D142 |
C |
A143 |
1 |
B143 |
Type |
C143 |
Salesperson |
D143 |
Sales |
A144 |
2 |
B144 |
=Produce |
A145 |
3 |
A146 |
4 |
A147 |
5 |
A148 |
6 |
B148 |
Type |
C148 |
Salesperson |
D148 |
Sales |
A149 |
7 |
B149 |
Beverages |
C149 |
Suyama |
D149 |
$5122 |
A150 |
8 |
B150 |
Meat |
C150 |
Davolio |
D150 |
$450 |
A151 |
9 |
B151 |
produce |
C151 |
Buchanan |
D151 |
$6328 |
A152 |
10 |
B152 |
Produce |
C152 |
Davolio |
D152 |
$6544 |
B153 |
A |
C153 |
B |
D153 |
C |
A154 |
1 |
B154 |
Type |
C154 |
Salesperson |
D154 |
Sales |
A155 |
2 |
A156 |
3 |
A157 |
4 |
A158 |
5 |
A159 |
6 |
B159 |
Type |
C159 |
Salesperson |
D159 |
Sales |
A160 |
7 |
B160 |
Beverages |
C160 |
Suyama |
D160 |
$5122 |
A161 |
8 |
B161 |
Meat |
C161 |
Davolio |
D161 |
$450 |
A162 |
9 |
B162 |
produce |
C162 |
Buchanan |
D162 |
$6328 |
A163 |
10 |
B163 |
Produce |
C163 |
Davolio |
D163 |
$6544 |
B164 |
A |
C164 |
B |
D164 |
C |
E164 |
D |
A165 |
1 |
B165 |
Type |
C165 |
Salesperson |
D165 |
Sales |
E165 |
Sales |
A166 |
2 |
A167 |
3 |
A168 |
4 |
A169 |
5 |
A170 |
6 |
B170 |
Type |
C170 |
Salesperson |
D170 |
Sales |
A171 |
7 |
B171 |
Beverages |
C171 |
Suyama |
D171 |
$5122 |
A172 |
8 |
B172 |
Meat |
C172 |
Davolio |
D172 |
$450 |
A173 |
9 |
B173 |
produce |
C173 |
Buchanan |
D173 |
$6328 |
A174 |
10 |
B174 |
Produce |
C174 |
Davolio |
D174 |
$6544 |
A175 |
Use |
B175 |
To find |
A176 |
? (question mark) |
B176 |
Any single characterFor example, sm?th finds "smith" and "smyth" |
A177 |
* (asterisk) |
B177 |
Any number of charactersFor example, *east finds "Northeast" and "Southeast" |
A178 |
~ (tilde) followed by ?, *, or ~ |
B178 |
A question mark, asterisk, or tildeFor example, fy91~? finds "fy91?" |
B179 |
A |
C179 |
B |
D179 |
C |
A180 |
1 |
B180 |
Type |
C180 |
Salesperson |
D180 |
Sales |
A181 |
2 |
B181 |
Me |
A182 |
3 |
A183 |
4 |
A184 |
5 |
A185 |
6 |
B185 |
Type |
C185 |
Salesperson |
D185 |
Sales |
A186 |
7 |
B186 |
Beverages |
C186 |
Suyama |
D186 |
$5122 |
A187 |
8 |
B187 |
Meat |
C187 |
Davolio |
D187 |
$450 |
A188 |
9 |
B188 |
produce |
C188 |
Buchanan |
D188 |
$6328 |
A189 |
10 |
B189 |
Produce |
C189 |
Davolio |
D189 |
$6544 |
B190 |
A |
C190 |
B |
D190 |
C |
E190 |
D |
A191 |
1 |
B191 |
Type |
C191 |
Salesperson |
D191 |
Sales |
E191 |
Calculated Average |
A192 |
2 |
A193 |
3 |
A194 |
4 |
A195 |
5 |
A196 |
6 |
B196 |
Type |
C196 |
Salesperson |
D196 |
Sales |
A197 |
7 |
B197 |
Beverages |
C197 |
Suyama |
D197 |
$5122 |
A198 |
8 |
B198 |
Meat |
C198 |
Davolio |
D198 |
$450 |
A199 |
9 |
B199 |
produce |
C199 |
Buchanan |
D199 |
$6328 |
A200 |
10 |
B200 |
Produce |
C200 |
Davolio |
D200 |
$6544 |
B201 |
A |
C201 |
B |
D201 |
C |
E201 |
D |
A202 |
1 |
B202 |
Type |
C202 |
Salesperson |
D202 |
Sales |
E202 |
Exact Match |
A203 |
2 |
A204 |
3 |
A205 |
4 |
A206 |
5 |
A207 |
6 |
B207 |
Type |
C207 |
Salesperson |
D207 |
Sales |
A208 |
7 |
B208 |
Beverages |
C208 |
Suyama |
D208 |
$5122 |
A209 |
8 |
B209 |
Meat |
C209 |
Davolio |
D209 |
$450 |
A210 |
9 |
B210 |
produce |
C210 |
Buchanan |
D210 |
$6328 |
A211 |
10 |
B211 |
Produce |
C211 |
Davolio |
D211 |
$6544 |
The average yield of apple trees over 10 feet in height.
=DAVERAGE(A4:E10, "Yield", A1:B2)
Result:
12
The average age of all trees in the database.
=DAVERAGE(A4:E10, 3, A4:E10)
Result:
13
§ Remarks
- You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition. For example, if the range G1:G2 contains the column label Income in G1 and the amount 10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
- Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Excel cannot add the new information.
- Make sure the criteria range does not overlap the list.
- To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.
✦ Tips
- You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition. For example, if the range G1:G2 contains the column label Income in G1 and the amount 10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
- Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Excel cannot add the new information.
- Make sure the criteria range does not overlap the list.
- To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!