How do I combine text from several cells into one cell?
CONCATENATE (or the & operator) joins cells together with nothing in between unless you add it yourself: =A2&" "&B2. TEXTJOIN adds a shared separator automatically and can skip blanks: =TEXTJOIN(", ",TRUE,A2:C2).
Formula (Excel and Google Sheets)
=TEXTJOIN(", ", TRUE, A2:C2)CONCATENATE (or the shorter & operator, which does the same thing and is easier to read) joins values with no separator unless you insert one manually between each pair, like =A2&", "&B2&", "&C2. That gets repetitive past a few cells.
TEXTJOIN solves that: give it a separator once, tell it whether to skip empty cells (TRUE is usually what you want), then list a whole range. =TEXTJOIN(", ",TRUE,A2:C2) joins every non-blank cell in A2:C2 with a comma and space between each, without repeating the separator manually for every cell.
Step by step
- 1
For two or three cells, & is simplest
e.g. =A2&" "&B2 joins two cells with a space between them.
- 2
For a range of cells, use TEXTJOIN
=TEXTJOIN(separator, ignore_empty, range) joins every cell in the range with the separator repeated between each.
- 3
Set ignore_empty to TRUE to skip blanks
This avoids doubled separators when some cells in the range are empty.
Common questions
Is CONCATENATE the same as &?
Functionally yes for joining text. & is shorter to type and widely preferred; CONCATENATE is kept for compatibility with older sheets.
Does TEXTJOIN work across multiple rows, not just one?
Yes, it can join a whole 2D range in row-then-column order, not just a single row.
Related formulas
How to Format Text and Dates with the TEXT Formula
RelatedHow to Use VLOOKUP in Excel and Google Sheets
RelatedHow to Remove Duplicate Rows in Excel and Google Sheets
From the blogHow to Make Sense of Your Spreadsheet Data Without Being an Analyst
Want a formula written for your exact spreadsheet, not a generic example?
Try the free formula generator