> For the complete documentation index, see [llms.txt](https://docs.tabula.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tabula.io/data-transformation/formulas/string-functions/substring.md).

# Substring

Returns substring starting from the character specified by startIndex, with optionally limited length.

```mathematica
Substring("Central and Southern Asia", 13, 5) → "South"
Substring("555000", 3, 4) → 5000
```

#### Inputs

`Substring(string, startIndex, [length])`

* `string` - A text value
* `startIndex` - Start index to search after. The start position is 1-based, not 0-based
* `[length]` - **\[optional]** - length of the returned substring
