Syntax:
TEXTJOIN(delimiter, ignore_empty, text1, [text2], β¦)For example
= TEXTJOIN(" ",TRUE, "The", "sun", "rises", "from", "the", "east.") will return The sun rises from the east.| argument | Description |
| delimiter (required) | A text string, either empty, or one or more characters enclosed by double quotes, or a reference to a valid text string. If a number is supplied, it will be treated as text. |
| ignore_empty (required) | If TRUE, ignores empty cells. |
| text1 (required) | Text item to be joined. A text string, or array of strings, such as a range of cells. |
| [text2, ...] (optional) | Additional text items to be joined. There can be a maximum of 252 text arguments for the text items, includingΒ text1. Each can be a text string, or array of strings, such as a range of cells. |
Why do we use TEXTJOIN?
- TEXTJOIN is easy compared to concatenate and "&" operator
With TEXTJOIN, you can simply say =TEXTJOIN(,,A1:A15)
- Add delimiters
Remarks
- If the resulting string exceeds 32767 characters (cell limit), TEXTJOIN returns the #VALUE! error.