To stitch a range of cells into one string — a comma-separated list, a full address, tags on one line — use TEXTJOIN. Unlike old-school & chains, it takes a whole range and skips blanks for you.
TRUE) skips empty cells, and the rest is the range to join.
The example
Separate tags joined into a single, readable list.
| A | B | |
|---|---|---|
| 1 | Tag | Joined |
| 2 | red | red, blue, green |
| 3 | blue | |
| 4 | ||
| 5 | green |
The formula
The joined list (note the blank in A4 is skipped):
How it works
TEXTJOIN does three jobs at once:
- The first argument,
", ", is placed between items — not after the last one. - The second argument,
TRUE, tells it to ignore empty cells, so blanks don’t create ", ," gaps. Set it to FALSE to keep them. - The third argument is the range (or several ranges/values) to join. It reads them in order.
- The result is one tidy string —
"red, blue, green".
TEXTJOIN vs CONCAT vs &. & and CONCAT just glue values with no delimiter and no blank-skipping. TEXTJOIN adds the separator and skips blanks — far better for lists.
Try it: interactive demo
Edit the items and delimiter; watch TEXTJOIN build the string (blanks skipped).
Variations
Join with line breaks (stacked list)
Use CHAR(10) as the delimiter and turn on Wrap Text:
Join only items that meet a condition
Combine with FILTER (Excel 365) — join only the red-group tags:
Build a full name or address
Mix ranges and literals:
Pitfalls & errors
TEXTJOIN needs Excel 2019+. Excel 2016 and older show #NAME?. Use a & chain or CONCATENATE there (without blank-skipping).
#VALUE! — too many cells. TEXTJOIN caps the result at 32,767 characters. Joining an enormous range can overflow; join a smaller set.
Numbers lose their formatting. TEXTJOIN uses the underlying value, so $1,200 may join as "1200". Wrap the cell in TEXT first: TEXT(B2,"$#,##0").
Practice workbook
Frequently asked questions
How do I join text from multiple cells in Excel?
What's the difference between TEXTJOIN and CONCAT?
How do I join text with a line break?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class