---
url: /cube-functions/mid.md
description: >-
  Returns a portion of the input string from an input position, for an input
  number of characters starting from the left.
---

# MID

Returns a portion of the input string from an input position, for an input number of characters starting from the left.

```js
MID(input_string, start, length)
```

#### Parameters

* `input_string` - The string input.
* `start` - The position to begin selecting characters (zero based).
* `length` - The number of characters to keep.

#### Examples

```js
MID("Hello Business Users", 6, 8)
```

**Result:** `Business`
