TX Sheet Control

DGET Function

Function

Return the single value in a column of the record that matches the criteria. database is the range of records with the field names in its first row, field the column to use, by its name in quotes or its position number, and criteria a range with field names in its first row and the conditions below them. A field name that is not in the database returns #VALUE!. When no record matches, DGET returns #VALUE!, and when more than one record matches, #NUM!.

Syntax

DGET(database, field, criteria)

Category: Database. Minimum arguments: 3. Maximum arguments: 3.

Available for supported offline calculation.

Examples

=DGET(D1:E4,"Value",G1:G2)

The formula returns the Value of the one record in D1:E4 that matches the criteria in G1:G2.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also