DGET Function in Google Sheets: Formula, Examples & Troubleshooting
Retrieve exactly one matching record with DGET in Google Sheets. Build header-based criteria, combine AND and OR tests, and diagnose duplicate matches.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: DGET retrieves a field from exactly one record matching a criteria table. It reports an error when there are zero matches or multiple matches, making it useful when uniqueness is part of the requirement.
Verification: NOT_TESTED_IN_GOOGLE_SHEETS. Google documentation was reviewed October 17, 2026. The examples are independently checked table selections, not results observed in the application.
Syntax and arguments
=DGET(database, field, criteria)
All three arguments are required. database includes a header row followed by records. field is the desired header text, or its one-based position within the database. criteria is a separate header-and-tests range. DGET selects one value; it does not total multiple matching records. The zero/multiple-match error contract is explicit in Google’s DGET help.
Worked example: retrieve an approved order amount
Enter this synthetic order register in A1:E6:
| Row | A · Order | B · Region | C · Status | D · Amount | E · Owner |
|---|---|---|---|---|---|
| 1 | Order | Region | Status | Amount | Owner |
| 2 | O-101 | East | Approved | 120 | Ana |
| 3 | O-102 | West | Pending | 80 | Bo |
| 4 | O-103 | East | Approved | 250 | Cy |
| 5 | O-104 | West | Approved | 175 | Ana |
| 6 | O-105 | East | Pending | 90 | Bo |
- Put
Orderin G1 andO-103in G2. These cells form the criteria table. - In I2 enter
=DGET(A1:E6,"Amount",G1:G2). - Expected result: 250, taken from D4.
- In I3 enter
=DGET(A1:E6,5,G1:G2). Expected result: Cy, the fifth field of the matching record.
The field number is relative to the database, not the worksheet. If the table started in column C, field 1 would still mean the first table column. Header text is often easier to audit than an unexplained column number.
Criteria logic: one row means AND
Google’s database-functions guide defines the criteria table: restrictions on one row must all match; different criteria rows are alternatives. Empty criteria cells impose no restriction. Repeated field headings allow two tests on the same field.
Create a second criteria area:
| Cell row | G · Region | H · Status | I · Amount |
|---|---|---|---|
| 5 | Region | Status | Amount |
| 6 | East | Approved | >200 |
Enter =DGET(A1:E6,"Order",G5:I6) in K6. Expected result: O-103. Row 4 meets all three tests; O-101 fails the amount test, while O-105 fails the status and amount tests.
Type the comparison >200 directly in I6 as criteria text. Do not replace it with a formula such as =D4>200: that would put a Boolean result in the criteria area instead of expressing the intended numeric threshold.
Advanced application: test a bounded amount
Place these criteria in G9:I10:
| Row | G · Region | H · Amount | I · Amount |
|---|---|---|---|
| 9 | Region | Amount | Amount |
| 10 | East | >=100 | <=200 |
=DGET(A1:E6,"Order",G9:I10) has expected result O-101. The duplicate Amount headers apply both limits to the same record. A two-row version with >=100 on one row and <=200 on another would mean alternatives and would admit many more records.
This pattern is useful for a one-record exception report, provided uniqueness is genuinely expected. It should not be used to select an arbitrary order from a band containing several orders.
OR criteria can deliberately expose duplicates
Set G13 to Order, G14 to O-101, and G15 to O-103. Then =DGET(A1:E6,"Amount",G13:G15) matches two records and is expected to return an error, even though both amounts are valid numbers. The reference establishes the error condition but does not specify a complete error-token mapping, so this guide does not invent a native error observation.
Likewise, changing G2 to O-999 creates no match and produces an error. Copying the O-103 record to a new row and expanding the database range creates two matching records; identical values do not make those records unique.
Troubleshooting in order
First check whether the criteria header actually exists in the database. Next read the selected records manually and decide whether zero, one, or several should match. Then check the returned field name or position. Keep database and criteria headers in their respective ranges; starting at row 2 accidentally makes the first record act as headings.
Avoid including unused blank criteria rows: an unrestricted alternative can broaden the selection. Use the smallest intended criteria range. Do not immediately wrap a failing DGET in a blanket error replacement such as “not found,” because that message would hide the difference between no match and duplicated data.
If multiple records are legitimate, use the published FILTER guide to inspect the set. For ordinary key lookup, see VLOOKUP. The right choice depends on whether duplicate matches are acceptable.
Availability and compatibility
The current Google Sheets documentation includes DGET. Its first introduction and last functioning release are unknown from the reviewed evidence, and no retirement is established. This is a rolling-service documentation review. Criteria are a header-based range, not an SQL string pasted into the third argument. No claim is made that another engine’s wildcard, blank, or error details are identical. The examples use exact text and numeric comparisons to keep the contract explicit.
First-party references
Reviewed October 17, 2026: Google DGET and Google database criteria. The sample records are original synthetic data; outputs are independently traced selections.