# DGET Function

> Return the one value of the matching database record with DGET in TX Sheet Control: database, field and criteria, and the #VALUE! and #NUM! error cases.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > DGET Function
- **247 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dget/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dget/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dget/llms-full.txt

---

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

```text
DGET(database, field, criteria)
```

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

Available for supported offline calculation.

### Examples

```text
=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

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [DEVSQ Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/devsq/llms-full.txt)
- **Next:** [DISC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/disc/llms-full.txt)
