FormulaCraft

How to combine text with a delimiter in Excel and Google Sheets

Topic:Text manipulation
Excel & Google Sheets
=TEXTJOIN(", ",TRUE,A2:C2)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter =TEXTJOIN(", ",TRUE,A2:C2) to join cells A2 through C2 with a comma-and-space separator.
  2. 2The second argument TRUE tells TEXTJOIN to skip empty cells; change to FALSE to include empty cells as blank entries.
  3. 3Change the delimiter to any string, e.g. " - " or "|".
  4. 4To join an entire column up to a variable row, replace the range with a named range or dynamic reference.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What is the maximum number of values TEXTJOIN can combine?

TEXTJOIN can handle up to 252 text arguments (or an equivalent range), which is sufficient for virtually all practical use cases.

Does TEXTJOIN preserve the order of the values?

Yes — values are joined left-to-right (or top-to-bottom for vertical ranges) in the order they appear in the range.

More on Text manipulation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: