---
title: "split_part function in Strata | Oplema"
description: "Split text at a separator and retrieve one part by its position. For example, split_part('a;b;c', ';', 2) returns 'b'. Works in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/split-part"
updated: "2026-11-04"
---

# split\_part

Split text at a separator and retrieve one part by its position.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **VARCHAR**.

### Expression

```
split_part('a;b;c', ';', 2)
```

### Result

```
'b'
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | b |

## Arguments and types

```
split_part(string, delimiter, position)
```

**string**

Any value

**delimiter**

Any value

**position**

Any value

Supported signatures (1)

```
split_part(string: ANY, delimiter: ANY, position: ANY)
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

Positions start at 1. An out-of-range position returns an empty string.

If the first argument is missing, the result is NULL.

### A position outside the text

```
split_part('a;b;c', ';', 9)
```

''

## Related functions

[concat\_ws

Join text values with a separator between them. Missing values are skipped.

](https://oplema.com/docs/strata/functions/concat-ws)[nfc\_normalize

Converts string to Unicode NFC normalized string. Useful for comparisons and ordering if text data is mixed between NFC normalized and not.

](https://oplema.com/docs/strata/functions/nfc-normalize)[parse\_dirname

Return the top-level directory name from a path. The optional separator can be system, both\_slash (default), forward\_slash or backslash.

](https://oplema.com/docs/strata/functions/parse-dirname)[parse\_dirpath

Return a path up to its last slash, such as a/b for a/b/c.txt. The optional separator can be system, both\_slash (default), forward\_slash or backslash.

](https://oplema.com/docs/strata/functions/parse-dirpath)

[Browse text](https://oplema.com/docs/strata/functions#text) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/text.html#split_partstring-separator-index)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
