Google Sheets TEXTJOIN Function

This post will guide you how to use Google Sheets TEXTJOIN function with syntax and examples.

Description


The Google Sheets TEXTJOIN function joins two or more text strings together and separated by a delimiter. you can select an entire range of cell references to be combined in google sheets. and you can also specify an empty string as delimiter to include between each text in different cells.

The TEXTJOIN function can be used to combine the text from multiple text strings or arrays with a specifiable delimiter in google sheets. The purpose of this function is to join text values with a given delimiter and its returned values is a concatenated text.

The TEXTJOIN function is a build-in function in Google Sheets and it is categorized as a Text Function.

Syntax


The syntax of the TEXTJOIN function is as below:

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

Where the TEXTJOIN function arguments are:

  • delimiter -This is a required argument. It can be a text string or empty string to join text values with a given delimiter, it can be a space, comma, hash or other text string.
  • Ignore_empty – This is a required argument.  If TRUE, empty cells or string value should be ignored.
  • Text1/Text2 – This is a required argument.  One or more strings that you want to join together.

Note:

  • the text arguments should not exceed 252 and the length of resulting string should not exceed the cell limit of 32767.
  • If you want to concatenate text strings manually, and you can use the concatenation operator(&)
  • The CONCATENATE function only provides basic concatenation
  • If a number is provided to TEXTJOIN function, and it will convert it as a text values during concatenation.

Google Sheets TEXTJOIN Function Examples


The below examples will show you how to use google sheets TEXTJOIN function to concatenate the items of one or more text strings using a specified delimiter.

#1 To join strings in B1,C1,D1 cells, just using formula:

= TEXTJOIN (",",TRUE,B1,C1,D1)  //it returns “google,sheets,learning”

google sheets textjoin function1

#2 while you want to concatenate the strings by specifying multiple delimiter and order, you can use the following formula:

=TEXTJOIN({"@","."},TRUE,B1:D1) //it returns “[email protected]@com”

google sheets textjoin function1

#3 To join values from the multiple cell ranges with a double dash character as delimiter. using the following formula:

=TEXTJOIN("–",TRUE,B1:B6,C1:C6) //it returns “g-o-o-g-l-e-s-h-e-e-t-s”

google sheets textjoin function1

#4 to join string in range cell A1:C1 by a comma character as delimiter and empty cells should not be ignored. using the following formula:

=TEXTJOIN(",",FALSE,A1:C1) //it returns “google,,sheets”

google sheets textjoin function1

 

Related Posts

Google Sheets TIMEVALUE Function
google sheets timevalue function1

This post will guide you how to use Google Sheets TIMEVALUE function with syntax and examples. Description The Google Sheets TIMEVALUE returns the decimal number of the time represented by a text string. It will convert a time represented by ...

Google Sheets TODAY Function
google sheets today function

This post will guide you how to use Google Sheets TODAY function with syntax and examples. Description The Google Sheets TODAY function get the current date as a date value. And it will be updated each time when your worksheet ...

Google Sheets TIME Function
google sheets time function1

This post will guide you how to use Google Sheets TIME function with syntax and examples. Description The Google Sheets TIME function converts an hour, minute and second into a time. The TIME function can be used to create a ...

Google Sheets SECOND Function
google sheets second function1

This post will guide you how to use Google Sheets SECOND function with syntax and examples. Description The Google Sheets SECOND function returns the seconds of a time value. Or returns an integer value that represent the second component of ...

Google Sheets NOW Function
google sheets now function1

This post will guide you how to use Google Sheets NOW function with syntax and examples. Description The Google Sheets NOW function returns the serial number of the current date and time. And it will be updated each time when ...

Google Sheets NETWORKDAYS.INTL Function
google sheets networkdays.intl function1

This post will guide you how to use Google Sheets NETWORKDAYS.INTL function with syntax and examples. Description The Google Sheets NETWORKDAYS.INTL function returns the number of net working days between tow given days excluding specified weekend days and holidays. The ...

Google Sheets NETWORKDAYS Function
google sheets networkdays function1

This post will guide you how to use Google Sheets NETWORKDAYS function with syntax and examples. Description The Google Sheets NETWORKDAYS function returns the number of net working days between tow given days. The NETWORKDAYS function can be used to ...

Google Sheets MONTH Function
google sheets month function1

This post will guide you how to use Google Sheets MONTH function with syntax and examples. Description The Google Sheets MONTH function returns the month of a date represented by a serial number. And the month is an integer number ...

Google Sheets MINUTE Function
google sheets minute function1

This post will guide you how to use Google Sheets MINUTE function with syntax and examples. Description The Google Sheets MINUTE returns the minutes of a time value. And the minutes is an integer number from 0 to 59. So ...

Google Sheets ISOWEEKNUM Function
google sheets isoweeknum function1

This post will guide you how to use Google Sheets ISOWEEKNUM function with syntax and examples. Description The Google Sheets ISOWEEKNUM returns the number of the ISO week of the year for a given date. ISO weeks begin on Monday ...

Sidebar