Daverage Function Excel

“daverage function excel” comes up constantly, so this page leads with the exact answer, gives you a tool to try it on your own numbers, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

Exact answer

In Excel: use =DSUM(database, field, criteria) — the conditions live in a separate criteria RANGE on the sheet, not inside the formula.

On this page8

Syntax

=DSUM(database, field, criteria)

Arguments

Argumentrequired / optionalDescription
databaserequiredThe table INCLUDING its header row.
fieldrequiredWhich column to aggregate — a header name in quotes or a column number.
criteriarequiredA separate range whose headers match the table and whose rows hold the conditions.

Related functions

SUMIFSFILTERGETPIVOTDATA
ƒxQuick Pivot SummarizerLive
Groups
3

Grand total: 1,250.50

RegionSum
West125.50
East1050
South75

The same thing in your own sheet

Sum · Excel & Sheets

Put your group keys in a column (here starting at E2) and fill the formula down.
Real pivot table: Excel — select your data, Insert → PivotTable, drag the group column to Rows and the value column to Values. Google Sheets — select the data, Insert → Pivot table. · Runs entirely in your browser — your data never leaves this page.
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

What this does

The D-functions — DSUM, DGET, DCOUNT, DAVERAGE, DMAX, DMIN — aggregate a table according to conditions written in a separate criteria range rather than in the formula. That is their distinguishing feature and their remaining advantage: a user can change the conditions by typing in cells, without editing a formula, which suits a controlled report handed to non-technical colleagues. Criteria on the same row combine with AND, on different rows with OR — which SUMIFS cannot express at all. The cost is a criteria range that must be maintained and whose headers must match the table exactly. For most work SUMIFS or FILTER is simpler. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “daverage function excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected formula change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

A table in A1:E500 with headers, and a criteria range in G1:H2 holding "Region" and "West": =DSUM(A1:E500, "Revenue", G1:H2) totals Western revenue and updates the moment someone edits G2. OR logic that SUMIFS cannot do: put "West" and "East" on separate criteria rows. Retrieving a single matching value: =DGET(A1:E500, "Revenue", G1:H2), which errors if more than one row matches. The database functions put the conditions in cells rather than in the formula, which is what makes a report safely editable by someone who should not touch formulas. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. If you take one thing from this page on “daverage function excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

Common mistakes

  • Omitting the header row from the database range, which is required and not optional.
  • Criteria headers that do not match the table headers exactly, which silently matches nothing.
  • Using DGET where several rows match, which returns #NUM! — it is strictly single-value.

Frequently asked questions

Why use DSUM instead of SUMIFS?

Because the conditions live in cells a user can edit without touching a formula, and because OR logic across rows is possible, which SUMIFS cannot express.

Why does DGET return #NUM!?

More than one row matches. DGET returns exactly one value or errors.

How do I write OR conditions?

Put them on separate rows of the criteria range. Same row means AND.