Table of Contents
The TEXTJOIN function in Excel allows users to combine multiple text strings from separate cells into one cell. This function eliminates the need for manual copying and pasting, making it more efficient and accurate. By specifying the delimiter, users can control the format of the combined text string. This feature is particularly useful for creating lists, reports, and other documents that require consolidated data from various sources. Overall, the TEXTJOIN function streamlines the process of combining text in Excel and saves users time and effort.
The TEXTJOIN function combines the text from multiple ranges and/or strings, and includes a delimiter you specify between each text value that will be combined. If the delimiter is an empty text string, this function will effectively concatenate the ranges.
Note: This feature is available on Windows or Mac if you have Office 2019, or if you have a Microsoft 365 subscription. If you are a Microsoft 365 subscriber, make sure you have the latest version of Office.
Syntax
TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)
argument | Description |
|---|---|
delimiter | 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 | If TRUE, ignores empty cells. |
text1 | Text item to be joined. A text string, or array of strings, such as a range of cells. |
[text2, …] | 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. |
For example, =TEXTJOIN(” “,TRUE, “The”, “sun”, “will”, “come”, “up”, “tomorrow.”) will return The sun will come up tomorrow.
Remarks
If the resulting string exceeds 32767 characters (cell limit), TEXTJOIN returns the #VALUE! error.
Examples
Copy the example data in each of the following tables, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.
Example 1
Currency | |
|---|---|
US Dollar | |
Australian Dollar | |
Chinese Yuan | |
Hong Kong Dollar | |
Israeli Shekel | |
South Korean Won | |
Russian Ruble | |
Formula: | =TEXTJOIN(“, “, TRUE, A2:A8) |
Result: | US Dollar, Australian Dollar, Chinese Yuan, Hong Kong Dollar, Israeli Shekel, South Korean Won, Russian Ruble |
Example 2
A’s | B’s |
|---|---|
a1 | b1 |
a2 | b2 |
a4 | b4 |
a5 | b5 |
a6 | b6 |
a7 | b7 |
Formula: | =TEXTJOIN(“, “, TRUE, A2:B8) |
Result: | a1, b1, a2, b2, a4, b4, a5, b5, a6, b6, a7, b7 If ignore_empty=FALSE, the result would be: a1, b1, a2, b2, , , a4, b4, a5, b5, a6, b6, a7, b7 |
Example 3
City | State | Postcode | Country |
|---|---|---|---|
Tulsa | OK | 74133 | US |
Seattle | WA | 98109 | US |
Iselin | NJ | 08830 | US |
Fort Lauderdale | FL | 33309 | US |
Tempe | AZ | 85285 | US |
end | |||
, | , | , | ; |
Formula: | =TEXTJOIN(A8:D8, TRUE, A2:D7) | ||
Result: | Tulsa,OK,74133,US;Seattle,WA,98109,US;Iselin,NJ,08830,US;Fort Lauderdale,FL,33309,US;Tempe,AZ,85285,US;end |
See Also
Find and correct errors in formulas
Excel keyboard shortcuts and function keys
Cite this article
stats writer (2024). How can I use the TEXTJOIN function in Excel to combine multiple text strings into one cell?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-the-textjoin-function-in-excel-to-combine-multiple-text-strings-into-one-cell/
stats writer. "How can I use the TEXTJOIN function in Excel to combine multiple text strings into one cell?." PSYCHOLOGICAL SCALES, 1 Jul. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-the-textjoin-function-in-excel-to-combine-multiple-text-strings-into-one-cell/.
stats writer. "How can I use the TEXTJOIN function in Excel to combine multiple text strings into one cell?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-the-textjoin-function-in-excel-to-combine-multiple-text-strings-into-one-cell/.
stats writer (2024) 'How can I use the TEXTJOIN function in Excel to combine multiple text strings into one cell?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-the-textjoin-function-in-excel-to-combine-multiple-text-strings-into-one-cell/.
[1] stats writer, "How can I use the TEXTJOIN function in Excel to combine multiple text strings into one cell?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, July, 2024.
stats writer. How can I use the TEXTJOIN function in Excel to combine multiple text strings into one cell?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
