TEXTJOIN in Excel: The Delimiter-Aware Text Joiner | 5 Examples | Sheets & Cells
Function · Text

TEXTJOIN — The Delimiter-Aware Text Joiner

The upgrade over CONCAT that everyone needed. Adds an automatic delimiter between values AND lets you skip empty cells cleanly. Perfect for CSV construction, mailing lists, comma-separated tags, multi-line output, and every "combine this range with a separator" job you've ever done manually with the & operator.

⚠️
Requires Excel 2019, Excel 365, or Excel for the web
TEXTJOIN shipped in Excel 2019. Older versions (Excel 2016, 2013, 2010, 2007, 2003) show a NAME error. For universal compatibility, chain the & operator manually — verbose but works everywhere. See the compatibility section for full fallback patterns.
Quick answer
TEXTJOIN combines multiple text values with a delimiter automatically inserted between them. Three arguments: the delimiter string, a flag to skip empty cells, then the values (or ranges) to join. Everything CONCAT does, plus the two features CONCAT is missing.
Syntax
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Working example
=TEXTJOIN(", ", TRUE, A2:E2) → Joins every cell in A2:E2 with ", " between them. TRUE skips empty cells (no double commas). "Emma, Thompson, Sales, Austin, TX"

The two killer features

TEXTJOIN exists because CONCAT is missing these two things. Every other "how do I join text?" question in Excel comes down to whether you need one or both:

FEATURE 1

Automatic delimiter

First argument. Whatever string you pass gets inserted BETWEEN each value automatically. No more & ", " & repeated everywhere.

=TEXTJOIN(", ", ...)
FEATURE 2

Skip empty cells

Second argument. Set TRUE and empty cells are ignored — no double delimiters where blanks used to be. Set FALSE to include them.

=TEXTJOIN(", ", TRUE, ...)
📗 Free CONCAT & TEXTJOIN example workbook
9 sheets · 10-row contact table · basic CONCAT · CONCAT vs & · TEXTJOIN with delimiter · TEXTJOIN ignore empty · full family comparison · 10-pattern cheat sheet · compatibility matrix
Download .xlsx (free) Open in Sheets
Category
Text
Difficulty
Beginner
Excel version
2019+
Max arguments
252
252
Max text arguments
32,767
Max output characters
2019
Introduced in Excel
8/10
Templates using it

Syntax breakdown

TEXTJOIN takes three or more arguments. The first two set behavior; the rest are the values you want joined.

ArgumentTypeWhat it does
delimiter REQUIRED The string inserted BETWEEN each pair of values. Text in quotes (", ", " | ", ""), CHAR() for special chars (CHAR(10) for line break), or a cell reference.
ignore_empty REQUIRED TRUE to skip empty cells (no double delimiters). FALSE to include them (creates "A,,C" where B was empty). Almost always TRUE.
text1 REQUIRED The first value or range to include. Cell, literal string, number, or range.
text2, text3, ... OPTIONAL Additional values or ranges. Up to 252 more arguments. Each gets a delimiter placed before it (except the first).
Mental model: TEXTJOIN visits each non-empty value (if ignore_empty=TRUE) and inserts your delimiter BEFORE it — except the very first value. Result: N values → N-1 delimiters. Never a leading or trailing delimiter.

Five working examples

Every example uses the 10-row contact table from the workbook — first names, last names, departments, cities, states, phone numbers, and email parts.

01 The basic delimiter — comma-separated list

Join a range of cells with commas between them. The single most common TEXTJOIN use.

=TEXTJOIN(", ", TRUE, B2:F2)
→ Returns "Emma, Thompson, Sales, Austin, TX"
FirstLastDeptCityStateComma-joined
EmmaThompsonSalesAustinTXEmma, Thompson, Sales, Austin, TX
DavidKimEngineeringSeattleWADavid, Kim, Engineering, Seattle, WA
SofiaRodriguezMarketingMiamiFLSofia, Rodriguez, Marketing, Miami, FL

The old way needed =B2&", "&C2&", "&D2&", "&E2&", "&F2 — five ampersands and four repeated delimiters. TEXTJOIN needs the delimiter exactly once.

02 Different delimiters, same data

Any string can be your delimiter. Five common choices, all applied to the same 5-cell row.

Same data, five delimiter styles

", "
=TEXTJOIN(", ", TRUE, B2:F2)
Emma, Thompson, Sales, Austin, TX
" | "
=TEXTJOIN(" | ", TRUE, B2:F2)
Emma | Thompson | Sales | Austin | TX
" - "
=TEXTJOIN(" - ", TRUE, B2:F2)
Emma - Thompson - Sales - Austin - TX
CHAR(10)
=TEXTJOIN(CHAR(10), TRUE, B2:F2)
Multi-line (enable Wrap Text)
""
=TEXTJOIN("", TRUE, B2:F2)
EmmaThompsonSalesAustinTX
Special delimiter: CHAR(10) is the ASCII line-feed character. Use it as your delimiter, then enable Wrap Text on the cell (Home ribbon → Wrap Text), and each value appears on its own line. Perfect for address blocks, multi-line labels, or condensed reports. On Mac, use CHAR(13).

Setting the delimiter to "" (empty string) makes TEXTJOIN behave exactly like CONCAT — same output, more verbose syntax. If you're joining without a delimiter, prefer CONCAT.

03 The ignore_empty flag — the second killer feature

What happens when data has gaps. TRUE cleans them up; FALSE preserves them (with visible double delimiters).

Scenario: address blocks where suite/apartment is optional

NameStreetSuiteCityStateZIP
Emma123 Main StSuite 400AustinTX78701
David456 Oak Ave(empty)SeattleWA98101
Sofia789 Palm RdApt 12BMiamiFL33101
Michael321 Tech Blvd(empty)San JoseCA95101

Same formula, opposite behavior

ignore_empty = FALSE (bad)

=TEXTJOIN(", ", FALSE, C7:G7)

David's row where suite is empty:

456 Oak Ave, , Seattle, WA, 98101

Double comma looks broken to anyone reading it. Never do this for user-facing output.

ignore_empty = TRUE (good)

=TEXTJOIN(", ", TRUE, C7:G7)

David's row where suite is empty:

456 Oak Ave, Seattle, WA, 98101

Clean output. The empty cell is invisible. Almost always what you want.

When to use FALSE?

  • Fixed-format CSV export where downstream tools expect a specific column count and empty fields signal "no value here."
  • Data validation output where the position of empty cells matters (e.g., "the missing field is column 3").
  • Otherwise: use TRUE. If you're building output for humans, TRUE is nearly always right.

04 Build a semicolon-separated mailing list

Turn a column of email addresses into one string ready to paste into Outlook or Gmail's BCC field.

=TEXTJOIN("; ", TRUE, EmailColumn)
→ Returns "emma@co.com; david@co.com; sofia@co.com; ..."

With filtering — only Sales team

=TEXTJOIN("; ", TRUE, IF(DeptColumn="Sales", EmailColumn, ""))
→ Only rows where Dept = "Sales" get included; blank IF returns skipped by TRUE
The pattern is invaluable for admins and marketers: build the list once as a formula, then Copy → Paste Special → Values into the BCC field. No manual copy-paste of dozens of addresses. Combined with an IF filter, you can build lists by department, region, or any condition.

Comma-separated for CSV export

=TEXTJOIN(",", FALSE, A2:F2)
→ Returns "Emma,Thompson,Sales,Austin,TX,78701" — one CSV row

Note FALSE here — CSV downstream tools EXPECT empty fields to appear as empty (creating ,,) to preserve column positions. This is one of the few cases where FALSE is correct.

05 Multi-line output with CHAR(10)

Build a formatted address block or multi-item summary that displays on multiple lines inside one cell.

=TEXTJOIN(CHAR(10), TRUE, C2, D2, E2&" "&F2&" "&G2)
→ Returns each argument on its own line — but you MUST enable Wrap Text on the cell

What you see in the cell:

123 Main St Suite 400 Austin TX 78701

Two-step workflow

  1. Write the TEXTJOIN with CHAR(10) as delimiter.
  2. Enable Wrap Text on the cell — Home ribbon → Alignment → Wrap Text.
Mac users: use CHAR(13) instead of CHAR(10). Different OS, different newline character. If cross-platform matters, most modern Excel versions accept both.

Interactive playground

Try it Live TEXTJOIN demonstration

Mirrors live cells from the workbook. Edit the yellow input, watch the blue result update.

Input · Range B2:F2
Emma, Thompson, Sales, Austin, TX
Output · Comma-joined
Emma, Thompson, Sales, Austin, TX
=TEXTJOIN(", ", TRUE, B2:F2)
Input · Address with empty Suite
456 Oak Ave, (empty), Seattle, WA, 98101
Output · ignore_empty=TRUE
456 Oak Ave, Seattle, WA, 98101
=TEXTJOIN(", ", TRUE, C7:G7)

Download the workbook to try the mailing-list, delimiter demos, and CHAR(10) multi-line examples live.

The TEXTJOIN cheat sheet — 10 patterns for daily use

Copy any of these, adapt the ranges to your data, and you're 80% of the way there:

10 patterns you'll use every day

From simple comma-lists to CHAR(10) multi-line, filtered mailing lists, and CSV rows.

1Comma-separated list
=TEXTJOIN(", ", TRUE, A2:A100)
All values with comma+space, skip blanks. The workhorse.
2Semicolon email list
=TEXTJOIN("; ", TRUE, D2:D50)
Outlook and Gmail BCC-ready. Copy → Paste into recipient field.
3Pipe-delimited row
=TEXTJOIN("|", FALSE, A2:F2)
CSV alternative for pasting into plain-text tools.
4Multi-line output
=TEXTJOIN(CHAR(10), TRUE, A2:A10)
Each value on its own line. Enable Wrap Text on the cell.
5Full address block
=TEXTJOIN(", ", TRUE, B2, C2, D2, E2, F2)
Skips empty suite/apartment cells. TRUE is essential.
6CSV row (keep empties)
=TEXTJOIN(",", FALSE, A2:F2)
Empty cells become empty CSV fields — preserves column positions.
7Filtered mailing list
=TEXTJOIN("; ", TRUE, IF(B:B="Sales", D:D, ""))
Only rows matching a condition. Excel 365 for array support.
8Numbered list
=TEXTJOIN(CHAR(10), TRUE, ROW(A2:A10)-1 & ". " & A2:A10)
Prefixes each item with its number. Requires array-aware Excel.
9Sentence from parts
=TEXTJOIN(" ", TRUE, B2, "works in", D2, "based in", E2)
Mix cell refs and literals for full-sentence output.
10Range across sheets
=TEXTJOIN(", ", TRUE, Sheet1!A2:A10, Sheet2!A2:A10)
Multiple ranges from different sheets in one call.

Common errors and how to fix them

TEXTJOIN is straightforward but has a few gotchas. Six common scenarios:

ResultWhy it happensBroken → Fix
NAME error You're on Excel 2016 or earlier. TEXTJOIN didn't exist until Excel 2019. =TEXTJOIN(", ", TRUE, A2:C2) // NAME error =A2&", "&B2&", "&C2 // manual ampersand chain
Missing FALSE/TRUE Forgot the ignore_empty argument. Both parameters are required. =TEXTJOIN(", ", A2:F2) // Too few arguments =TEXTJOIN(", ", TRUE, A2:F2)
Double delimiters Used FALSE when data has empty cells. Adjacent delimiters look broken. =TEXTJOIN(", ", FALSE, ...) // "A, , C" =TEXTJOIN(", ", TRUE, ...) // "A, C"
Line break invisible Used CHAR(10) but Wrap Text is disabled on the cell. Cell shows: "abcdef" all on one line Home → Wrap Text (or Ctrl+1 → Alignment tab → Wrap text)
VALUE error Output exceeded 32,767 characters (Excel's cell text limit). =TEXTJOIN(", ", TRUE, A:A) // 100K rows overflows Filter first, or split across multiple cells
Wrong format Numbers concatenated as raw digits, losing formatting. =TEXTJOIN(" | ", TRUE, TEXT(A2, "$#,##0.00"), B2) Wrap each number in TEXT() explicitly
📗 Every example above, in one workbook
Basic delimiters · CONCAT vs & · TEXTJOIN Delim · TEXTJOIN Ignore Empty · Full family · Cheat Sheet · Compatibility matrix.
Download text-join-examples-2026.xlsx

The Text-Join family — four ways to combine

Meet the family

Excel has four ways to join text. Each solves a slightly different problem. This page is TEXTJOIN — the delimiter-aware modern default.

TEXTJOIN is the strict superset of CONCAT — anything CONCAT does, TEXTJOIN can do with the empty delimiter "". But TEXTJOIN also handles delimiters and empty cells. Reach for CONCAT when the direct-join syntax reads better; otherwise TEXTJOIN is the go-to.

Related functions

Excel version compatibility

TEXTJOIN shipped in Excel 2019. For older versions, chain the & operator manually:

PlatformSupports TEXTJOIN?Notes
Excel 365 (Windows & Mac)✓ YesFull support
Excel 2021✓ YesFull support
Excel 2019✓ YesIntroduced here
Excel 2016 / 2013 / 2010 / 2007 / 2003✗ NoChain & manually
Excel for the web✓ YesFull support
Excel on iPad & iPhone✓ YesFull support
Google Sheets✓ YesSame syntax
LibreOffice Calc✓ YesFull support
Apple Numbers✓ YesFull support

Fallback for older Excel

If you must support Excel 2016 or earlier, chain the & operator with your delimiter as a literal:

=A2&", "&B2&", "&C2&", "&D2&", "&E2

Verbose and repetitive, but works in every Excel version since 1985. No ignore_empty equivalent — you'd need nested IFs: =A2&IF(B2="","",", "&B2)&IF(C2="","",", "&C2). This is exactly the pain TEXTJOIN was designed to eliminate.

When to use TEXTJOIN vs. alternatives

Use TEXTJOIN when…

  • You need a delimiter between values. The core reason TEXTJOIN exists. Comma, space, pipe, CHAR(10) — whatever.
  • Your data has empty cells to skip. ignore_empty=TRUE is the only clean way.
  • You're building CSV, mailing lists, or multi-line output. The three biggest wins.
  • You're joining a range with a separator. Beats writing =A&","&B&","&C.

Use CONCAT instead when…

  • You don't need a delimiter — glue values directly.
  • The direct-join syntax reads more naturally for your case.
  • Building SKUs, prefixed IDs, or file paths with no separator.

Use the & operator instead when…

  • You have 2-3 values and want compact syntax.
  • Cross-version support (works in Excel 2003 and every version since).

Use CONCATENATE instead when…

  • You're editing legacy files where changing everything isn't worth it.
  • Otherwise, don't — it's strictly worse than modern alternatives.

How TEXTJOIN actually works

The algorithm

TEXTJOIN walks each argument in order. For each non-empty value (if ignore_empty=TRUE), it appends the value to the output. Before appending, if this isn't the first value included, it prepends the delimiter. Result: N included values yield N-1 delimiters between them, never at the start or end.

Empty vs blank vs whitespace

ignore_empty=TRUE skips cells that are TRULY empty (never had a value or explicit blank). It does NOT skip:

  • Cells containing the empty string "" (which count as content, though zero-length)
  • Cells containing spaces or tabs (whitespace is real content)
  • Cells containing zero or FALSE (both count as real values)

If your "empty" cells actually contain "" from a formula, wrap the argument in IF(A2="", NA(), A2) and… actually, that gets messy. Cleanest fix: use TEXTJOIN with a filter pattern.

Character limit

Output cannot exceed 32,767 characters — Excel's cell text limit. TEXTJOIN over a huge range returns VALUE if the result overflows. In practice this only affects joins over 10,000+ small cells or 500+ long ones.

Number and date handling

Numbers become their default text representation (raw digits). Dates become serial numbers. Wrap in TEXT() to preserve formatting: =TEXTJOIN(", ", TRUE, TEXT(A2:A10, "$#,##0")).

Performance notes

TEXTJOIN is fast for most cases. Three considerations for edge cases:

  • Range size. Joining a 100K-row range is slow. TEXTJOIN visits every cell. Filter first when possible.
  • ignore_empty check. When TRUE, TEXTJOIN checks each cell for emptiness — small per-cell overhead. Rarely noticeable.
  • Long output. Output approaching 32K characters slows rendering. Split into multiple cells if you can.

How to write a TEXTJOIN from scratch

  1. Check your Excel version

    TEXTJOIN needs Excel 2019 or later. On 2016 or earlier, chain & manually.

  2. Choose your delimiter

    Comma-space for readability, pipe for CSV-alternative, CHAR(10) for multi-line, empty string to behave like CONCAT.

  3. Decide about empty cells

    TRUE (almost always) skips blanks cleanly. FALSE keeps them and creates double delimiters.

  4. Pass the values or range

    Individual cells, literals in quotes, or a range. Multiple arguments allowed (up to 252 total).

  5. For multi-line output, enable Wrap Text

    CHAR(10) as delimiter alone won't show line breaks. Home → Wrap Text on the cell reveals them.

Functions used with TEXTJOIN

🎁 Grab the free CONCAT + TEXTJOIN workbook
9 sheets covering everything on this page — delimiter variations, ignore_empty demos, mailing lists, CHAR(10) multi-line, cheat sheet.
Download text-join-examples-2026.xlsx

Frequently asked questions

What's the difference between TEXTJOIN and CONCAT?

TEXTJOIN adds two features CONCAT doesn't have: (1) an automatic delimiter between values, (2) an ignore_empty flag to skip blank cells. If you need "A, B, C" formatting or want to skip blanks, use TEXTJOIN. If you just want to glue values end-to-end, use CONCAT — its syntax reads more naturally for that.

Why does TEXTJOIN give a NAME error?

You're on Excel 2016 or earlier. TEXTJOIN was introduced in Excel 2019. Upgrade to Excel 2019/365, or chain the & operator manually with your delimiter as literal text.

How do I add a line break with TEXTJOIN?

Use CHAR(10) as the delimiter: =TEXTJOIN(CHAR(10), TRUE, A2:A5). Then enable Wrap Text on the cell (Home ribbon → Wrap Text) to see the breaks. On Mac, use CHAR(13).

What does ignore_empty actually do?

When TRUE, TEXTJOIN skips truly-empty cells so you don't get double delimiters like "A, , C". When FALSE, empty cells are included as empty strings, creating those double delimiters. TRUE for humans, FALSE for fixed-format CSV where column positions matter.

Can TEXTJOIN skip cells containing empty string?

No — "" from a formula counts as content. ignore_empty only skips truly-empty cells. Workaround: filter with IF and use array formulas, or clean the source data first.

How many arguments can TEXTJOIN take?

Up to 252 individual arguments (plus delimiter and ignore_empty flag = 254 total). Use range arguments for large lists.

Does TEXTJOIN work in Google Sheets?

Yes, with identical syntax. Google Sheets, LibreOffice, and Apple Numbers all implement TEXTJOIN.

Can I use TEXTJOIN with a condition (like SUMIFS)?

Yes — combine with IF for filtered lists: =TEXTJOIN(", ", TRUE, IF(B:B="Sales", A:A, "")). This returns only names where Dept = "Sales". Requires Excel 365's dynamic arrays for this exact pattern; on older versions, wrap in {...} as an array formula.

What's the maximum length of a TEXTJOIN result?

32,767 characters — Excel's cell text limit. Trying to exceed this returns a VALUE error. Rarely matters unless you're concatenating tens of thousands of cells.

How do I preserve currency formatting in TEXTJOIN?

Wrap each numeric value in TEXT(): =TEXTJOIN(", ", TRUE, TEXT(A2:A10, "$#,##0.00")). Without TEXT, numbers become raw digits and lose their formatted display.

Should I use TEXTJOIN with delimiter="" instead of CONCAT?

They produce identical output. Use CONCAT for direct joins — the syntax reads more naturally. TEXTJOIN with empty delimiter works but is more verbose for no gain.

Which templates use TEXTJOIN?

Most templates that build multi-part display strings. Prominently: Invoice (line-item lists), Sales Dashboard (top-performer summaries), KPI Dashboard (status message construction), Employee Attendance (present-today lists), Timesheet (task-list concatenation), Inventory Tracker (low-stock warnings), Project Timeline (task-owner concatenations), and Expense Report (category-list summaries).

Templates that use TEXTJOIN

8 of our 10 templates use TEXTJOIN for building multi-part display strings and lists:

Skip the syntax. Ask in plain English.

The Sheets & Cells AI Add-in writes TEXTJOIN, CONCAT, and every text-join pattern in between — right inside Excel. Type "combine these emails with semicolons and skip blanks" and get the working formula, ready to paste.

Try the AI Add-in →