TEXTJOIN function

Contents
Index 🔎︎

## TEXTJOIN

Concatenates one or more strings, and inserts delimiters between them.

This function is available since LibreOffice 5.2.

#### Syntax

TEXTJOIN( delimiter, skip_empty, String 1[; String 2][; … ;[String 253]] )

delimiter is a text string and can be a range.

skip_empty is a logical (TRUE or FALSE, 1 or 0) argument. When TRUE, empty strings will be ignored.

String 1[; String 2][; … ;[String 253]] are strings, references to cells or to cell ranges of strings.

Ranges are traversed row by row (from top to bottom).

If delimiter is a range, the range need not be of the same size as the number of strings to be joined.

If there are more delimiters than strings to be joined, not all delimiters will be used.

If there are fewer delimiters than strings to be joined, the delimiters will be used again from the start.

#### Examples

=TEXTJOIN(" ",TRUE, "Here", "comes", "the", "sun") returns "Here comes the sun" with space character as delimiter and empty strings are ignored.

if A1:B2 contains "Here", "comes", "the", "sun" respectively, =TEXTJOIN("-",TRUE,A1:B2) returns "Here-comes-the-sun" with dash character as delimiter and empty strings are ignored.

Related Topics

CONCAT

CONCATENATE