Build a mailing list in one cell (TEXTJOIN)
The problem
Problem statement
Marketing needs the newsletter recipients as one paste-ready line for the email tool — not a column to copy cell by cell. The addresses sit in A2:A5. Combine them into a single semicolon-separated line in the Mailing list cell C2.
The second argument TRUE skips blanks — case 3 has an empty address and must not produce a doubled separator.
Problem data
Show the sheet as a table (selectable, copyable)
| A | C | |
|---|---|---|
| 1 | Mailing list | |
| 2 | [email protected] | |
| 3 | [email protected] | |
| 4 | [email protected] | |
| 5 | [email protected] |
Notes
TEXTJOIN(delimiter, ignore_empty, text…). The TRUE in the middle skips blank cells, so the list can grow or shrink without leaving stray separators. CONCAT/& chains also work but repeat the delimiter manually for every cell.
How to approach
Your answer goes in C2. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.
- Target cell is C2
- First argument: the separator "; " (semicolon plus space)
- Second argument: TRUE to skip empty cells
- Last argument: the range A2:A5
Official solutions
Show 2 solutions — try it yourself first
Approach 1: TEXTJOIN with a range
=TEXTJOIN("; ", TRUE, A2:A5)
Joins A2:A5 with "; " between addresses. TRUE tells TEXTJOIN to skip blanks, so an unsubscribed row can be cleared without breaking the list.
Approach 2: Classic & concatenation
=A2 & "; " & A3 & "; " & A4 & "; " & A5
The pre-TEXTJOIN way: glue cells and separators by hand. Works everywhere but gets unwieldy fast, and blanks leave doubled separators behind.
Function guide
FAQ
How do I combine many cells into one?
Use =TEXTJOIN("; ", TRUE, A2:A5). The first argument is the separator, TRUE skips empty cells, and the range is the text to join.
What does the TRUE argument do?
It tells TEXTJOIN to ignore blank cells. Without it, blank rows still contribute, leaving stray separators like "a; ; c" in the output.
Is TEXTJOIN available in every Excel version?
TEXTJOIN ships with Excel 2016+ and Microsoft 365 (and Google Sheets). In older versions, the & operator chain is the fallback.