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 INT Function
google sheets int function1

This post will guide you how to use Google Sheets INT function with syntax and examples. Description The Google Sheets INT function returns the integer portion of a given number. And it will round a given number down to the ...

Google Sheets FLOOR Function
google sheets floor function1

This post will guide you how to use Google Sheets FLOOR function with syntax and examples. Description The Google Sheets FLOOR function returns a number rounded down to the nearest multiple of significance. So it will return a rounded number. ...

Google Sheets EXP Function
google sheets exp function1

This post will guide you how to use Google Sheets EXP function with syntax and examples. Description The Google Sheets EXP function returns e raised to the power of a number.  The constant e is equal to 2.71828182845904, and it ...

Google Sheets FACT Function
google sheets FACT function1

This post will guide you how to use Google Sheets FACT function with syntax and examples. Description The Google Sheets FACT function returns the factorial of a given number.  The factorial of a given number is equal to 1*2*3…* number. ...

Google Sheets EVEN Function
google sheets even function1

This post will guide you how to use Google Sheets EVEN function with syntax and examples. Description The Google Sheets EVEN function rounds a given number up to the nearest even integer. You can use the EVEN function to return ...

Google Sheets COUNTBLANK Function
google sheets countblank function1

This post will guide you how to use Google Sheets COUNTBLANK function with syntax and examples. Description The Google Sheets COUNTBLANK function use to count the number of empty cells in a range of cells. You can use the COUNTBLANK ...

Google Sheets DEGREES Function
google sheets degrees function1

This post will guide you how to use Google Sheets DEGREES function with syntax and examples. Description The Google Sheets DEGREES function converts radians into degrees. And it will return a numeric value. For examples, if you pass the PI() function into ...

Google Sheets COSH Function
google sheets cosh function1

This post will guide you how to use Google Sheets COSH function with syntax and examples. Description The Google Sheets COSH function returns the hyperbolic cosine of a given angle. The purpose of this function is used to get hyperbolic ...

Google Sheets COS Function
google sheets cos function1

This post will guide you how to use Google Sheets COS function with syntax and examples. Description The Google Sheets COS function returns the cosine of a given angle. If you want to supply an angle to COS function in ...

Google Sheets COMBINA Function
google sheets combina function1

This post will guide you how to use Google Sheets COMBINA function with syntax and examples. Description The Google Sheets COMBINA function returns the number of combinations for a given number of items and it includes repetitions. You can use ...

Sidebar