Formula for Concatenate in Excel & Google Sheets

How-to basics · Updated November 23, 2026

The simplest formula to join text in Excel is =A2&B2, and in Google Sheets it is =CONCATENATE(A2,B2). For most modern work, however, the recommended function is TEXTJOIN in Excel (Microsoft 365/Excel 2021+) or CONCATENATE in Google Sheets, because they handle ranges and delimiters more cleanly.

What Does Concatenate Mean?

Concatenation is the operation of joining two or more text strings into one. In spreadsheets, you use it to combine names, addresses, or any data split across columns into a single cell. For example, with first name in A2 and last name in B2, you can produce “John Smith” in C2. The term comes from programming and database languages, and Excel has used it since early versions.

The Ampersand Operator: The Original Formula

Excel and Google Sheets both support the ampersand (&) as a concatenation operator. It is the fastest way to join values and works in every version of both programs.

  • Basic join: =A2&B2 gives “JohnSmith” (no space).
  • With a space: =A2&" "&B2 gives “John Smith”.
  • With a comma and space: =B2&", "&A2 gives “Smith, John”.
  • Including numbers: ="Order #"&A2 gives “Order #1045” if A2 contains 1045.

The ampersand works with text, numbers, dates, and even cell references. When you use a number or date, Excel converts it to text automatically, but the display may follow the cell’s formatting. For precise control, wrap the value in TEXT.

The CONCATENATE Function

Excel’s CONCATENATE function does the same thing as the ampersand but uses a function syntax. It exists in all Excel versions, but Microsoft has deprecated it in favor of CONCAT (Excel 2016+) and TEXTJOIN (Excel 2019+). Google Sheets still supports CONCATENATE and it is commonly used there.

Syntax: =CONCATENATE(text1, [text2], ...)

Example: with first name in A2 and last name in B2, =CONCATENATE(A2, " ", B2) returns “John Smith”. The function accepts up to 255 arguments in Excel, and each argument can be a cell reference, a quoted string, or a formula.

Google Sheets’ CONCATENATE works the same way, but it also allows a range reference like =CONCATENATE(A2:A5) to join all cells in that range. Excel’s CONCATENATE does not accept ranges; you must list each cell separately.

The CONCAT Function (Excel 2016+)

Excel introduced CONCAT to replace CONCATENATE. It works identically but adds the ability to reference a range of cells. For example, =CONCAT(A2:A5) joins all values in A2 through A5 with no separator. It is available in Excel 2016, 2019, 2021, and Microsoft 365. Google Sheets does not have a CONCAT function; it uses CONCATENATE instead.

One limitation: CONCAT does not accept a delimiter argument. If you need a space or comma between values, you must insert it manually, which is tedious for long ranges. That is why TEXTJOIN is often better.

TEXTJOIN: The Modern Solution

TEXTJOIN is the most powerful concatenation function in Excel (Microsoft 365, Excel 2021, and Excel 2019) and Google Sheets (all current versions). It lets you specify a delimiter and whether to ignore empty cells.

Syntax: =TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)

  • Delimiter: a quoted string like " " (space) or ", " (comma+space). Use "" for no separator.
  • Ignore_empty: TRUE skips blank cells; FALSE includes them (which usually adds extra delimiters).
  • Text arguments: can be individual cells, ranges, or arrays.

Example: with first names in A2:A5 and last names in B2:B5, to list full names separated by commas: =TEXTJOIN(", ", TRUE, A2:A5&" "&B2:B5). This returns “John Smith, Jane Doe, …”. The ampersand inside the array creates an array of full names, and TEXTJOIN joins them.

In Google Sheets, TEXTJOIN works the same way. It is often the best choice for combining a column of values into one cell, such as a list of email addresses.

How to Choose the Right Formula

Your choice depends on your data and version.

  • Two or three cells, any version: use the ampersand (&) for simplicity.
  • Many cells in a range, no separator needed: use CONCAT (Excel 2016+) or CONCATENATE with a range (Google Sheets).
  • Many cells with a separator (e.g., comma, space, line break): use TEXTJOIN (Excel 2019+ or Google Sheets).
  • Older Excel (2013 or earlier): you must use CONCATENATE or the ampersand, and you cannot reference a range directly—list each cell.

For example, to combine a list of items in A2:A10 with a comma and space, in Excel 2013 you would write =A2&", "&A3&", "&A4&... which is impractical. Upgrading or using Google Sheets makes this much easier.

Common Problems and How to Fix Them

Concatenation seems simple, but users often hit these issues:

  • No space between words: Remember to include a delimiter in quotes, like " ".
  • Numbers lose formatting: If you concatenate a date or currency, it may show as a raw number (e.g., 45213 instead of 12/15/2023). Use the TEXT function: =A2&TEXT(B2,"mm/dd/yyyy").
  • Blank cells create double delimiters: With TEXTJOIN, set ignore_empty to TRUE. With ampersand, you can use an IF formula to skip blanks: =IF(A2="","",A2&" ")&IF(B2="","",B2).
  • Line breaks: To insert a new line, use CHAR(10) in Excel (Windows) or CHAR(10) in Google Sheets, and enable Wrap Text. Example: =A2&CHAR(10)&B2.
  • Trailing spaces or extra commas: Use TRIM to clean up: =TRIM(A2&" "&B2).
  • Error #VALUE!: This often happens when you reference a range with CONCATENATE in Excel. Use CONCAT or TEXTJOIN instead.

Frequently Asked Questions

Can I concatenate a whole column without typing each cell? Yes. In Excel, use TEXTJOIN (e.g., =TEXTJOIN(", ", TRUE, A2:A100)). In Google Sheets, you can also use CONCATENATE(A2:A100) but it will not add separators; TEXTJOIN is better.

What is the difference between CONCATENATE and CONCAT? CONCAT is the newer Excel function that accepts ranges; CONCATENATE is the older one that does not. Google Sheets only has CONCATENATE, but it does accept ranges. In Excel 2016+, CONCAT is recommended over CONCATENATE.

How do I concatenate with a line break? Use CHAR(10) for a line break in both Excel and Google Sheets. For example, =A2&CHAR(10)&B2. Then format the cell with Wrap Text (Home > Alignment > Wrap Text) to see the break.

Why does my concatenated date show as a number? Because Excel stores dates as serial numbers. Wrap the date in the TEXT function: =A2&TEXT(B2,"mm/dd/yyyy"). In Google Sheets, the same works.

Can I concatenate with a formula result? Yes, you can concatenate any formula output. For example, =A2&" "&UPPER(B2) will combine A2 with an uppercased B2.

Is there a way to concatenate without a formula? In Excel, you can use Flash Fill (Data > Flash Fill, or Ctrl+E) to automatically fill a column based on a pattern you type. In Google Sheets, you can use the CONCATENATE function or the ampersand, but there is no built-in Flash Fill equivalent.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.