TEXTJOIN Function in Excel: Join Text With a Separator, Skipping Blanks

TEXTJOIN Function in Excel: Join Text With a Separator, Skipping Blanks featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 5 October 2026

TextLevel: IntermediateAvailable in: Excel 2019+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Power combo
  6. TEXTJOIN in practice
  7. Where you will use it
  8. Worked example
  9. Mistakes people make
  10. Related functions
  11. Continue learning

TEXTJOIN joins a range of text with a delimiter and can ignore empty cells.

Advertisement

Syntax

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Argument What it means
delimiter Separator, e.g. “, “.
ignore_empty TRUE to skip blanks.
text1… Cells or ranges.

Examples

Example 1

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

Comma-separated list of names.

Example 2

=TEXTJOIN(" ", TRUE, B2, C2, D2)

Address lines into one cell, no double spaces for blanks.

Power combo

=TEXTJOIN(", ", TRUE, FILTER(B2:B500, A2:A500=F2, ""))

All matching values in one cell (Excel 365).

TEXTJOIN in practice

Where you will use it

  • Combine names with commas
  • Join non-blank address parts
  • Make lists for emails

Worked example

Line 1Line 2CityFormulaResult
12 MG Road(blank)Bengaluru=TEXTJOIN(", ",TRUE,A2:C2)12 MG Road, Bengaluru
Flat 4Sector 18Noida=TEXTJOIN(", ",TRUE,A3:C3)Flat 4, Sector 18, Noida
Shop 7Main Bazar(blank)=TEXTJOIN(", ",TRUE,A4:C4)Shop 7, Main Bazar

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Blank parts leave ', ,'Set ignore_empty to TRUE
Over 32,767 characters#VALUE!

CONCAT Β· FILTER Β· TEXTSPLIT

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Text & cleaning24 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 35 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *