EXCEL DGET FUNCTION

The Excel Dget function retrieves a single value from a database column. A collection of one or more user-specified criteria is used to choose the record.

Syntax :

=DGET(database, field, criteria)

Parameters :

  •  The following parameters are as follows:

Database :

  • A set of cells that contains the database. The field names should be specified in the database’s top row.

Field :

  • The database field (column) from which the record is to be picked. This can be a field number or the field name (i.e. the header in the top row of the database) surrounded by quotations (e.g. “Gender”, “Subject”, etc).

Criterion :

  • A range of fields containing the criteria that will be used to determine which record should be returned. The range can comprise one or more criteria, which are displayed in one cell as a field name and the condition for that field in the cell below.

Step By Step Guide of DGET Function

Example :

The Dget function is used in the following example to return the sales number for Sales Rep. “Tina” in quarter 4. Cells F1 – G2 specify the conditions, while cell F3 displays the Dget formula: The Dget function in the above code locates the record in row 17 and returns the value from the “Sales” column. As a result, the method returns $188,000. It’s worth noting that, in the above example, instead of entering “Sales,” we might have just used the number 4.

  • #NUM! – Generated if more than one entry in the provided database meets the specified criteria.
  • #VALUE! – Generated if no records in the given database meet the specified criteria.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now