TEXTJOIN Function
The Excel TEXTJOIN function combines text values or ranges with one delimiter and controls whether empty cells are skipped.
| Excel TEXTJOIN Function | ||||||||
| TEXTJOIN combines a range with one delimiter and optional blank suppression. | ||||||||
| Source cases, editable | TEXTJOIN examples | |||||||
| Scenario | Delimiter | Ignore empty | Text 1 | Text 2 | Text 3 | Example | Formula syntax | Result |
| Comma list | , | TRUE | North | Retail | Active | Comma list | =TEXTJOIN(B12,C12,D12:F12) | North, Retail, Active |
| Ignore blank | | | TRUE | Q3 | 2026 | Ignore blank | =TEXTJOIN(B13,C13,D13:F13) | Q3 | 2026 | |
| Keep blank | | | FALSE | Q3 | 2026 | Keep blank | =TEXTJOIN(B14,C14,D14:F14) | Q3 | | 2026 | |
| Hyphen join | - | TRUE | Maya | Chen | Hyphen join | =TEXTJOIN(B15,C15,D15:F15) | Maya-Chen | |
| No delimiter | TRUE | INV | 2026 | A041 | No delimiter | =TEXTJOIN(B16,C16,D16:F16) | INV2026A041 | |
| How TEXTJOIN behaves | ||||||||
| The delimiter is inserted between each included text value. | ||||||||
| When ignore_empty is TRUE, blank cells are skipped without producing adjacent delimiters. | ||||||||
| When ignore_empty is FALSE, blank cells retain their position and can create consecutive delimiters. | ||||||||
| Reliability checks | ||||||||
| Comma-separated values return the expected three-part label | OK | |||||||
| Ignoring the blank middle cell avoids a double delimiter | OK | |||||||
Overview
The Excel TEXTJOIN function combines individual values or entire ranges into one text string. A single delimiter is inserted between included values, and ignore_empty controls whether blank positions are skipped.
Quick reference
Syntax: =TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Returns: One concatenated text string. (text)
Arguments:
delimiter(required) — The text inserted between included values; use an empty string for no separator.ignore_empty(required) — TRUE skips empty cells; FALSE preserves their positions and delimiters.text1(required) — The first text value, reference, or range to join.text2(optional) — An additional value, reference, or range; more optional arguments may follow.
The bracketed arguments after text1 are optional. delimiter controls the inserted separator, while ignore_empty determines whether empty referenced cells contribute delimiter positions.
Common uses
- Build comma-separated lists from a range.
- Combine optional address, name, or category components.
- Create readable labels from several cells.
- Produce delimited export fields or identifiers.
Calculations
TEXTJOIN reads values in argument and range order, converts them to text, and inserts delimiter between them. The delimiter can be a comma and space, hyphen, line break, or empty string.
With ignore_empty set to TRUE, genuinely empty cells are skipped and do not create repeated delimiters. With FALSE, their positions remain visible as adjacent separators.
Cell number formatting does not travel into the result. Dates, percentages, and currencies can revert to their underlying numeric representation unless they are first formatted with TEXT.
Function behavior
Situation | Behavior |
|---|---|
| Skips empty cells and their separators. |
| Preserves empty positions as adjacent delimiters. |
Empty delimiter | Joins values directly with no separator. |
Range input | Concatenates cells in range order. |
Multiple arguments | Concatenates them in the order supplied. |
Formatted number or date | Underlying value is used unless wrapped with |
Formula returning | Blank handling can differ from a truly empty cell; validate when separator placement matters. |
Oversized result | Excel returns |
Common errors
Repeatedly concatenating separators with ampersands
What happens:
The formula becomes long and produces extra delimiters around blank values.
Better approach:
Use one TEXTJOIN formula with a central delimiter and explicit blank behavior.
Losing date or number formatting
What happens:
Dates appear as serial numbers and percentages as decimals.
Better approach:
Wrap numeric components in TEXT with the required display code.
Choosing the wrong ignore_empty setting
What happens:
Blank positions disappear when they matter, or create doubled separators when they do not.
Better approach:
Decide whether blanks represent missing content or meaningful positions.
Example
Example 1 — Join a Row with Commas
=TEXTJOIN(B12,C12,D12:F12)
Joining North, Retail, and Active with comma-space returns North, Retail, Active.
Example 2 — Ignore a Blank
=TEXTJOIN(B13,C13,D13:F13)
With ignore_empty set to TRUE, the blank value is skipped and no double delimiter appears.
Example 3 — Preserve a Blank Position
=TEXTJOIN(", ",FALSE,A1:C1)
If B1 is empty, the result contains adjacent delimiters that represent its position.
Example workbook
The workbook contains a TEXTJOIN Example sheet with five editable delimiters, ignore-empty settings, and text-part ranges. Live formulas demonstrate comma-separated labels, blank suppression, blank preservation, and empty delimiters, while two checks confirm the main joined label and ignored-blank behavior. A Notes sheet explains numeric formatting and range order.
Key takeaway
Set one delimiter and decide whether blanks should disappear or preserve their positions; format numeric components with TEXT before joining.