# MID

MID(`string`, `start_index`, `length`)

Returns a string beginning at specified starting index.

### Arguments

| Input         | Description                                 |
| ------------- | ------------------------------------------- |
| `string`      | String to return substring of               |
| `start_index` | Index within `string` to start substring at |
| `length`      | Desired length of substring (optional)      |

### Output

A substring of input `string`

### Example

{% embed url="<https://datawrapper.dwcdn.net/NrYMK/1>" %}
