Google Sheets TEXTJOIN function

Joins a range into one text with the separator you choose. In Spanish Sheets it is called UNIRCADENAS.

Syntax

English Sheets

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

Spanish Sheets (Mexico locale)

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

Spanish Sheets (Spain, Latin America)

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

ArgumentWhat it is
delimiterWhat goes between each text, like ", ".
ignore_emptyTRUE to skip blank cells.
text1The first text or range.
text2optionalMore texts or ranges.

Example

TEXTJOIN(delimiter, ignore_empty, range) joins a range into one text with the separator you choose. With TRUE it skips blank cells. Sheets also has JOIN, which cannot skip them.

=TEXTJOIN(", ",TRUE,B2:D2)

Common mistake

With FALSE it leaves doubled separators for each gap. JOIN does something similar but cannot skip blanks.

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 range into one text with the separator you choose. With TRUE it skips blank cells. Sheets also has JOIN, which cannot skip them.

Example=TEXTJOIN(", ",TRUE,B2:D2)UNIRCADENAS = TEXTJOIN

In E2, list the team’s members separated by a comma and a space, with no extra commas for the gaps.

E2
ABCDEF
1TeamMember 1Member 2Member 3Members
2SalesCarmenJorgeLucía
3SupportAnaLuis
4DesignSofía
5FinanceDiegoPaolaRaúl
6

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 Google Sheets it is UNIRCADENAS. The formula =TEXTJOIN(", ",TRUE,B2:D2) is written =UNIRCADENAS(", ";VERDADERO;B2:D2) (or with commas under a Mexico locale).
Why does TEXTJOIN use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common TEXTJOIN mistake?
With FALSE it leaves doubled separators for each gap. JOIN does something similar but cannot skip blanks.