Excel TEXTJOIN function

Joins texts or whole ranges with the separator you choose. In Spanish Excel it is called UNIRCADENAS.

Syntax

English Excel

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)

Spanish Excel (Mexico)

=UNIRCADENAS(delimitador, ignorar_vacías, texto1, [texto2], …)

Spanish Excel (Spain, Latin America)

=UNIRCADENAS(delimitador; ignorar_vacías; texto1; [texto2]; …)

ArgumentWhat it is
delimiterThe separator, such as ", ".
ignore_emptyTRUE to skip blank cells.
text1The first text or range.
text2optionalMore texts or ranges.

Example

TEXTJOIN(delimiter, ignore_empty, range) joins a whole range with the delimiter you choose, such as ", ". With TRUE it skips blank cells.

=TEXTJOIN(", ",TRUE,A2:A8)

Common mistake

Available since Excel 2019. Older versions need & cell by cell.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice TEXTJOIN

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

TEXTJOIN

TEXTJOIN(delimiter, ignore_empty, range) joins a whole range with the delimiter you choose, such as ", ". With TRUE it skips blank cells.

Example=TEXTJOIN(", ",TRUE,A2:A8)UNIRCADENAS = TEXTJOIN

In C2, join the names separated by a comma and a space, without gaps for the blank cells.

C2
ABCD
1AttendeesList for the email
2Ana
3Luis
4
5Sofía
6Diego
7
8Valeria
9

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is TEXTJOIN called in Spanish?
In Spanish Excel it is UNIRCADENAS. The formula =TEXTJOIN(", ",TRUE,A2:A8) is written =UNIRCADENAS(", ";VERDADERO;A2:A8) (or with commas in Mexico).
Why does TEXTJOIN use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common TEXTJOIN mistake?
Available since Excel 2019. Older versions need & cell by cell.