Excel 365 + Google Sheets · TEXTJOIN
Merge a whole list into one cell
Joins many cells into one, with the separator you choose.
The formula
=TEXTJOIN(", ", TRUE, A2:A5)What each part means
", "SeparatorTRUESkip empty cellsA2:A5What to join
Example
| A | B | |
|---|---|---|
| 1 | Team | Everyone |
| 2 | Ana | |
| 3 | Luis | |
| 4 | Marta | |
| 5 | Tom |
| A | B | |
|---|---|---|
| 1 | Team | Everyone |
| 2 | Ana | Ana, Luis, Marta, Tom |
| 3 | Luis | |
| 4 | Marta | |
| 5 | Tom |
Step by step
- Click cell B2.
- Type the formula:
=TEXTJOIN(", ", TRUE, A2:A5) - Press Enter.
Where it works
- Excel 365 and Excel 2021 or newer
- Google Sheets
- Excel for the web (free)
The same formula in other languages
- English TEXTJOIN
- Español UNIRCADENAS
- Português UNIRTEXTO