Microsoft’s spread­sheet software lets you perform difficult cal­cu­la­tions and in­ter­est­ing analyses. But there are times when you may want to combine multiple elements in a single result. The Excel CON­CAT­EN­ATE function lets you do just that. We’ll explain how it works.

Excel with Microsoft 365 Business and IONOS!
The Office you know, only better
  • Up to 50 GB Exchange email account
  • Outlook Web App and col­lab­or­a­tion tools
  • Expert support & setup service

What is Excel's CON­CAT­EN­ATE function used for?

In Excel, the results of a cal­cu­la­tion are usually shown in the cor­res­pond­ing cell. You can nest multiple functions to perform complex cal­cu­la­tions and obtain a single result. But sometimes you may want to combine multiple elements in a single cell. The CON­CAT­EN­ATE function lets you do just that. For example, assume you’re given an Excel spread­sheet with months of the year in one column and the average tem­per­at­ure in another (column 1: Jan, Feb, March; column 2: 10, 12, 20). Rather than display two separate columns, you can merge these results into a single cell per row (e.g. “Jan 10”, “Feb 12”, “March 20”. Excel CON­CAT­EN­ATE lets you combine text, numbers and cell ref­er­ences with one another. You can even integrate other functions into the formula, elim­in­at­ing the need for auxiliary cells in some cases.

Syntax of the CON­CAT­EN­ATE function in Excel

In principle, CON­CAT­EN­ATE can be used in two different ways in Excel: as a function or in the form of an operator. The function has at least one argument, but can link up to 255 entries with one another.

=CONCATENATE(Text1[Text2],…)

Within the function, Excel refers to the para­met­ers as “text” because the formula is intended to combine multiple elements to form a string of text. However, as stated above, you can combine different forms:

  • Text: In Excel, you insert text between quotation marks. That tells the programme how it is to process the in­form­a­tion.
  • Numbers: Numbers can be inserted with or without quotation marks.
  • Cell ref­er­ences: If you want to pass the cell contents to the function, enter the cell reference into the formula. You can either insert the reference without marking or with a dollar sign as a marker.
  • Functions: You could also insert other functions in the CON­CAT­EN­ATE function. The output of these functions is then con­cat­en­ated with all elements.

Each element within the function brackets is output next to each other. If you want to separate the various inputs from one another using spaces (for example, to write complete sentences), you have to pass these spaces to the function as arguments. A space must be entered into the function inside quotation marks (for example, “ “).

Because CON­CAT­EN­A­TION is used regularly in Excel, Microsoft has added an operator that fulfils the same job. You are likely familiar with the concept of operators from other steps. For example, you can use the plus sign instead of the “SUM” function. Instead of CON­CAT­ENTATE, you can use ampersand ("&").

=A1&B1

You can use the operator to join a wide range of elements together. When using the cal­cu­la­tion operator, remember to insert spaces if you need them to display the result properly.

The Excel CON­CAT­EN­ATE function in practice

In your everyday use of Excel, you will probably primarily use CON­CAT­EN­ATE to add a name com­pris­ing one or more words to a specific value. In many cases, the value is stored in a separate cell.

=CONCATENATE(A1," km/h")

The value from cell A1 (in this case, the reference is absolute, so it does not change, even if the formula is shifted) is combined with a text. To prevent the word from running directly into the value, the text module begins with a space.

In this way, Excel allows you to write entire sentences. If you combine one or more cells with text, you can output complex content com­pre­hens­ibly. Let’s assume we have a list of names and multiple point scores for each par­ti­cipant. We want to sum up the point scores by name. To do this, we can use the SUMIF function.

=SUMIF(A1:A10,$D$2,B1:B10)

Excel now sums up all point scores cor­res­pond­ing to the name we entered in cell D2. You can also choose the name con­veni­ently via a drop-down menu. Now we can combine the cells in a con­cat­en­a­tion of the names and results.

=A12&" scored "&B12&" points"

Because the CON­CAT­EN­ATE function accepts ad­di­tion­al functions as arguments, we don’t need auxiliary cells and can integrate the SUMIF function directly into the formula.

=A12&" scored "&SUMIF(A1:A10,A12,B1:B10)&" points"

In Excel, CON­CAT­EN­ATE is combined fre­quently with the TEXT function. This function converts numerical values into text, in a specified format and adds cor­res­pond­ing symbols (e.g. for cur­ren­cies). That makes is a valuable function in com­bin­a­tion with con­cat­en­a­tion.

=CONCATENATE("On ",TEXT(TODAY(),"DDDD"), " the value is ",TEXT(A1,"$0"),"!")

We can generate a complete phrase with this formula. The first TEXT function inserts the current day of the week, the second extracts a number from a cell and formats the value as a sum of money.

New functions: CONCAT and TEXTJOIN

Since Excel 2019, Microsoft has in­tro­duced two new functions related to the CON­CAT­EN­ATE function. These expand on the options provided by Excel CON­CAT­EN­ATE and therefore are available sep­ar­ately. The 2019 version of Excel thus remains com­pat­ible with older Excel work­sheets.

Tip

You can also use the new functions in Microsoft 365.

Excel with Microsoft 365 Business and IONOS!
The Office you know, only better
  • Up to 50 GB Exchange email account
  • Outlook Web App and col­lab­or­a­tion tools
  • Expert support & setup service

The CONCAT function works much like CON­CAT­EN­ATE. Just like the older version, it lets you combine various elements. One advantage over the older version is that you can enter entire ranges and do not need to fill a separate argument for every cell.

=CONCAT(A1:D2)

The contents from the various cells are inserted con­sec­ut­ively into the result text. The function proceeds row by row. That means that A1 is followed by B1, not A2. CONCAT doesn’t insert spaces auto­mat­ic­ally. If you want to separate in­di­vidu­al contents from one another, you have to use the same procedure as in CON­CAT­EN­ATE.

The new TEXTJOIN function is different: While the aim is the same, the syntax is different. You can specify the separator you want to use directly in this function.

=TEXTJOIN(Delimiter,Ignore_empty,Text1,[Text2],…)

In TEXTJOIN, you first enter whether you want to use a delimiter (i.e. separator), and if so, which one. This could be either a space or a hyphen, for example. You have to enclose this entry in quotes. Then you indicate whether the function should include empty cells or not. To do so, enter TRUE or FALSE. Similar to other functions, the actual elements to be joined follow.

Just like CONCAT, you can also enter an entire cell range for TEXTJOIN. Thanks to the changed syntax, you can now insert sep­ar­at­ors between the in­di­vidu­al elements.

Go to Main Menu