# HLOOKUP Function

> Look up a value in the first row of a table with HLOOKUP in TX Sheet Control: exact or approximate match, row index, #N/A, #REF! errors and no wildcards.

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

---

Look up a value in the first row of a table and return the value from another row of the same column. `lookup_value` is the value to find, `table_or_lookup_vector` the table, and `row_or_result_vector` the number of the row to return, counted from 1. `range_lookup` FALSE finds an exact match, ignoring case; TRUE or omitted finds the largest value less than or equal to `lookup_value` and requires the first row to be sorted in ascending order. A value that isn't found returns `#N/A`, a row number below 1 returns `#VALUE!` and one beyond the table returns `#REF!`. Unlike in Excel, the wildcards `*` and `?` are not supported in an exact match.

### Syntax

```text
HLOOKUP(lookup_value, table_or_lookup_vector, row_or_result_vector, range_lookup)
```

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

Available for supported offline calculation.

### Examples

```text
=HLOOKUP(2,{1,2,3;4,5,6},2,FALSE)
```

The formula returns 5, the value below 2 in the second row.

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:** [HEX2OCT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/hex2oct/llms-full.txt)
- **Next:** [HOUR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/hour/llms-full.txt)
