Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Create Column Chart in Excel
  • How to calculate average last N values in a table in Excel
  • How To Create Pareto Chart in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • Get column name from index in Excel Table

References

  • To count total rows in a range in Excel
  • How to get last row in mixed data with blanks in Excel
  • How to use Excel COLUMN Function
  • How to get address of named range in Excel
  • How to get relative column numbers in a range in Excel

Data Validations

  • Excel Data validation unique values only
  • Excel Data validation exists in list
  • Excel Data validation require unique number
  • Data validation must not exist in list
  • Excel Data validation date in next 30 days

TEXTJOIN function: Description, Usage, Syntax, Examples and Explanation

by

What is TEXTJOIN function in Excel?

TEXTJOIN function is one of TEXT functions in Microsoft Office Excel that

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 an Office 365 subscription. If you are an Office 365 subscriber, make sure you have the latest version of Office.

Syntax of TEXTJOIN function

TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)

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.
Worked Example:   Join Text Strings Using Concatenate or '& Operator' in Excel

For example, =TEXTJOIN(” “,TRUE, “The”, “sun”, “will”, “come”, “up”, “tomorrow.”) will return The sun will come up tomorrow.

  • If the resulting string exceeds 32767 characters (cell limit), TEXTJOIN returns the #VALUE! error.
Worked Example:   Highlight duplicate rows in Excel

Examples of TEXTJOIN function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Example 1

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
Worked Example:   How to strip numeric characters from cell in Excel

Example 3

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

Post navigation

Previous Post:

DCOUNT function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Invoice status with nested if in Excel
  • IF with boolean logic in Excel
  • IF, AND, OR and NOT Functions Examples in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to enter Today’s Date or Static Date and Time in Excel
  • How to get number of days, weeks, months or years between two dates in Excel
  • Get first day of month in Excel
  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • Convert date to text in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • If cell contains one of many things in Excel
  • Group numbers at uneven intervals in Excel
  • Group arbitrary text values in Excel
  • Group times into unequal buckets in Excel

General

  • With vs Without Array Formula in Excel
  • How to Insert Cells, Row and Rows in Excel
  • Excel Operators
  • How to count total columns in range in Excel
  • Lock Cells in a Worksheet Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning