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]; …)
| Argument | What it is |
|---|---|
| delimiter | What goes between each text, like ", ". |
| ignore_empty | TRUE to skip blank cells. |
| text1 | The first text or range. |
| text2optional | More 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.
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.
In E2, list the team’s members separated by a comma and a space, with no extra commas for the gaps.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Team | Member 1 | Member 2 | Member 3 | Members | |
| 2 | Sales | Carmen | Jorge | Lucía | ||
| 3 | Support | Ana | Luis | |||
| 4 | Design | Sofía | ||||
| 5 | Finance | Diego | Paola | Raú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.