Reference guide · Last updated October 17, 2026
Function guide

TEXTJOIN: combine values without messy separators

Joining names, addresses or codes is not difficult until empty cells start leaving doubled-up punctuation. TEXTJOIN lets you decide whether blanks should disappear.

EnglishTEXTJOIN
FrenchJOINDRE.TEXTE
GermanTEXTVERKETTEN
SpanishUNIRCADENAS

Formula syntax

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)

What goes into it

delimiter

Text inserted between combined values.

ignore_empty

TRUE to skip empty cells.

text1

First text item or range.

text2

Optional additional text items/ranges.

A quick example first

=TEXTJOIN(", ",TRUE,"East","West")

Returns “East, West”.

=TEXTJOIN(" | ",TRUE,A2:A10)

Joins nonblank values in A2:A10 with a vertical bar separator.

Build a readable address without empty separators

Enter these address components in A2:D2, leaving C2 truly empty.

Cell Value
A2 14 Market Road
B2 Bhadohi
C2 (empty)
D2 221401
Formula Expected result / interpretation
=TEXTJOIN(“, “,TRUE,A2:D2) 14 Market Road, Bhadohi, 221401
=TEXTJOIN(“, “,FALSE,A2:D2) 14 Market Road, Bhadohi, , 221401

TRUE skips empty cells; it does not clean a cell containing spaces. If a component contains only an ordinary space, clean it before joining. The separator is presentation text, so the comma inside quotation marks must survive any locale conversion.

Before you copy this into a real sheet

For dates or amounts, use TEXT with an explicit display format before joining; cell formatting alone is not carried into the result. Keep postal codes and IDs as text where leading zeros matter. A joined address is useful for labels, but it is a poor replacement for separate fields in a database because the separator can occur inside a street name. TEXTJOIN is available in Excel 2019 and newer supported versions; older workbooks may need concatenation with explicit blank handling.

Useful habits

  • Set ignore_empty deliberately so blanks do not create repeated delimiters.
  • Use TEXT with numbers/dates first when display formatting matters.
  • For dynamic lists, TEXTJOIN can combine FILTER results.

Where people get caught out

  • Expecting cell number formatting to carry into the joined text automatically.
  • Using a delimiter that can also appear inside source values without considering ambiguity.

Other functions worth a look

A detail worth remembering

Decide what a blank means. Ignoring it can be useful in a label, but an export that expects a fixed number of fields may need placeholders instead.

Reference and examples

The examples above use small, invented datasets and English-language formula names. Check your Excel version and argument separator against the official Excel function reference if a formula behaves differently on your computer.