FormulaCraft

DGET

DGET returns exactly one value from a field in a database that matches the criteria; it returns a #VALUE! error if multiple records match and #NUM! if none match. It is useful for precise lookup when you expect exactly one matching record.

Excel
=DGET(A1:C5,"Revenue",E1:E2)
Google Sheets
=DGET(A1:C5,"Revenue",E1:E2)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1Ensure your criteria uniquely identify one row in the database, otherwise DGET will error.
  2. 2Enter =DGET(database, field, criteria) where field is the column to retrieve.
  3. 3Handle errors with IFERROR in case the criteria match zero or multiple records.

Need a version for your data?

Try: “Retrieve the revenue for the unique record where Region is East and Product is Widget.

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: