Text & String
1.6K monthly searches
Intermediate
5 min read

TEXTJOIN Function in Excel - Join Text with Delimiter

Join text from multiple cells with a specified delimiter using TEXTJOIN in Excel....

Quick Start

Syntax

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

Parameters

delimiter - Required. Text string to insert between values (e.g., ", " for comma-space, " - " for dash, or "" for no separator).

ignore_empty - Required. TRUE to skip empty cells, FALSE to include them in the result. Use TRUE for clean lists without extra delimiters.

text1 - Required. First text value, cell reference, or range to join. Can be individual cells or entire ranges.

text2 - Optional. Optional. Additional text values or ranges. Up to 252 additional arguments allowed.

Simplest Example

ABC
1FirstMiddleLast
2JohnQSmith
3SarahJohnson
4Full Name
=TEXTJOIN(" ", TRUE, A2:C2)
John Q Smith
5Full Name
=TEXTJOIN(" ", TRUE, A3:C3)
Sarah Johnson

Quick Reference

Comma-Separated List
=TEXTJOIN(", ", TRUE, A1:A5)

Join cells with comma and space, skip blanks

=TEXTJOIN → "Apple, Banana, Orange"

Email List with Semicolons
=TEXTJOIN("; ", TRUE, B2:B100)

Create semicolon-separated list for email Cc field

=TEXTJOIN → "user1@email.com; user2@email.com"

Date Format from Parts
=TEXTJOIN("-", FALSE, A1, B1, C1)

Combine year, month, day with dashes

=TEXTJOIN(2025, 01, 15) → "2025-01-15"

Line Break Separator
=TEXTJOIN(CHAR(10), TRUE, A1:A10)

Each item on new line (enable wrap text)

Item1 Item2 Item3 (vertical list)

Real-World Examples

Create Full Address from Components

Combine address parts into properly formatted single-line addresses using this text joining function in Excel. Essential for mailing lists, shipping labels, customer databases, and CRM exports where addresses need to be consolidated from separate street, city, state, and zip columns. This function handles missing apartment numbers or suite information gracefully by skipping empty fields with ignore_empty=TRUE, ensuring you never get double commas or extra spaces in your formatted addresses. Perfect for marketing teams preparing direct mail campaigns, operations teams managing logistics, and data teams cleaning address data for import into external systems.

ABCDE
1StreetCityStateZIPFull Address
2123 Main StBostonMA02101
3Result:
=TEXTJOIN(", ", TRUE, A2:D2)
123 Main St, Boston, MA 02101
Pro Tip: Use TRUE for ignore_empty to handle missing apartment numbers or suite fields automatically.
Pattern: =TEXTJOIN(", ", TRUE, address_parts) for flexible address formatting
Product Tags and Category Lists

Generate pipe-separated or comma-separated tag lists for e-commerce product catalogs, inventory systems, and content management platforms using this text joining function in Excel. Combine product attributes, categories, features, and keywords into standardized formats required by Shopify, WooCommerce, Amazon, and other platforms. This function excels at consolidating multiple attribute columns into single importable fields, handling cases where products have varying numbers of tags without manual formatting. Critical for e-commerce managers uploading bulk product data, content teams managing taxonomies, and marketing teams organizing campaign tags across platforms.

ABCDE
1Cat1Cat2Cat3Cat4Tag List
2ElectronicsLaptopGamingRGB
3Result:
=TEXTJOIN(" | ", TRUE, A2:D2)
Electronics | Laptop | Gaming | RGB
Pattern: Use pipe (|), comma (,), or semicolon (;) delimiters based on platform requirements

Common Mistakes to Avoid

=CONCATENATE(A1, ", ", A2, ", ", A3)Using CONCATENATE instead of TEXTJOIN for lists

❌ The Problem:

  • Must manually add delimiters between every cell reference
  • Cannot handle ranges - requires individual cell references
  • Formula becomes extremely long for many cells
  • Difficult to maintain and error-prone for updates

✅ Solution:

=TEXTJOIN(", ", TRUE, A1:A3)

This text joining function in Excel is specifically designed for joining ranges with delimiters. It accepts entire ranges (A1:A3) instead of individual cells, automatically inserts the delimiter between values, and with ignore_empty=TRUE, skips blank cells to prevent double delimiters. Much more efficient and maintainable than nested CONCATENATE formulas.

=TEXTJOIN(", ", FALSE, A1:A10)Using FALSE for ignore_empty with sparse data

❌ The Problem:

  • Empty cells create extra delimiters in output (e.g., "Item1, , Item4")
  • Results in ugly double commas or spaces
  • Requires manual cleanup of the output
  • Confusing for users reading the joined text

✅ Solution:

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

Use TRUE for ignore_empty parameter when your data contains blank cells. This function will skip empty cells and produce clean output without extra delimiters. Only use FALSE when you specifically need to preserve empty positions, such as maintaining exact column alignment in CSV exports.

=TEXTJOIN(" ", TRUE, A1:A5, A3)Including same cell twice in arguments

❌ The Problem:

  • Cell A3 appears twice: once in range A1:A5 and again individually
  • Results in duplicate text in the output
  • Hard to spot when ranges overlap
  • Creates confusing results for end users

✅ Solution:

=TEXTJOIN(" ", TRUE, A1:A5)

Avoid overlapping references in this text joining function. It joins everything you specify - if a cell appears in multiple arguments (both in a range and individually), its text will appear twice in the result. Use non-overlapping ranges and references for accurate text joining.

Frequently Asked Questions

Other Text & String Functions

Related Formulas

Master these TEXTJOIN variants:

Master Excel TEXTJOIN

From basics to advanced - AI generates perfect formulas instantly.