# SEARCHB Function

> Find the byte position of text within text with SEARCHB in TX Sheet Control, which counts one byte per character and returns the same result as SEARCH.

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

---

Return the position of a text within another text in bytes, without regard to case. The arguments are those of [SEARCH](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/search/llms-full.txt): the text to find, the text to search and the position to start at (1 when omitted). TX Sheet Control counts every character as one byte, including double-byte characters such as Japanese, so SEARCHB returns the same as SEARCH. Text that isn't found returns `#VALUE!`.

### Syntax

```text
SEARCHB(text, argument1, argument2)
```

Category: Text. Minimum arguments: 2. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=SEARCHB("b","abc")
```

The formula returns 2.

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:** [SEARCH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/search/llms-full.txt)
- **Next:** [SEC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sec/llms-full.txt)
