The CONCAT function generates a text value by combining values passed to it through one or many of its textn arguments. Values passed to any textn argument can take the form of a literal or be encapsulated by either a cell range or an array constant. CONCAT moves sequentially through each textn argument and adds values to its output in the order they are encountered. Cell ranges and array constants are read from top to bottom, and from left to right.
The text1, text2, text3 and text4 arguments were passed the cell range A1:B2, the literal value “d” and an array constant containing the values “e”, “f” and “g” and the date Jan 1, 2023 respectively. Because CONCAT works sequentially through each textn argument, it first reads the values in the cell range A1:B2 and the values “a”, “b” and “c” are added to its output. Cell B2 is ignored since it is empty. Then, “d”, “e”, “f”, and “g” are added. Finally, 44927 is added, which is the value used by Excel to represent the date Jan 1, 2023. The process is illustrated below:
A value or a set of values added to CONCAT’s output. The text1 argument can be passed either a literal value, a cell range or an array constant. The latter two facilitate the provision of more than one value via the text1 argument.
text2 … text253
Optional
252 arguments each capable of receiving one or many values that will be included in the output produced by CONCAT. Each argument can be passed either a literal value, a cell range or an array constant. The latter two facilitate the provision of more than one value to CONCAT via a single argument.
Its purpose is identical to that of the CONCAT function: the TEXTJOIN function joins values together and produces one text value as output. TEXTJOIN differs from CONCAT in that:
It is capable of placing delimiters between the values it joins together.
Its ability to handle missing values is more sophisticated than CONCAT’s.