# VLOOKUP Function

> Find a value in the first column of a table with VLOOKUP in TX Sheet Control: exact and approximate match, wildcards, column numbers, #N/A, #VALUE! and #REF!.

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

---

Find a value in the first column of a table and return a value from the same row. `lookup_value` is the value to find, `table_array` the table and `col_index_num` the number of the column to return, counted from 1. `range_lookup` FALSE finds an exact match, with the wildcards `*` and `?` for text; the default TRUE finds the largest value less than or equal to `lookup_value` and requires the first column to be sorted in ascending order. The comparison is not case-sensitive. A value that is not found returns `#N/A`, a column number less than 1 returns `#VALUE!`, and a column number greater than the number of columns returns `#REF!`.

### Syntax

```text
VLOOKUP(lookup_value, table_array, col_index_num, range_lookup)
```

Category: Lookup. Minimum arguments: 3. Maximum arguments: 4.

Available for supported offline calculation.

### Examples

```text
=VLOOKUP("Product sales",A4:D6,2,FALSE)
```

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:** [VDB Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/vdb/llms-full.txt)
- **Next:** [VSTACK Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/vstack/llms-full.txt)
