DGET
Retrieve one field from the single database record meeting the search criteria.
Syntax
=DGET(database, field, criteria)Worked example
Put Team and Units in A1:B1. Fill the rows below with East and 4, West and 6, East and 3. Type Team and West in D1:D2 to select the single West record.
=DGET(A1:B4,"Units",D1:D2)Result 6
Microsoft documentation
Check the arguments, supported editions and behavior of this function in Microsoft’s reference.
Microsoft referenceExcel DGET Function Solves 2 of Your VLOOKUP Problems
Practice DGET
Use A1:B4 as the database and D1:D2 as the criteria. Apply DGET to the "Units" field for West.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 |
Show example formula
=DGET(A1:B4,"Units",D1:D2) Lesson quiz
Answer three questions to see your level in this lesson.
