Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets Concatenate Function: Guide and Examples

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The Google Sheets CONCATENATE function combines text from two or more cells, or a mix of cell references and manual text, into a single cell. To use it, enter =CONCATENATE(string1, string2, ...) into a cell, where each "string" is the text or cell reference you want to join. This is primarily used to merge first and last names, create full addresses from separate columns, or generate unique ID codes by joining different data points.

What You'll Need

  • A Google account with access to Google Sheets.
  • A spreadsheet containing the data you wish to combine (e.g., a column for "First Name" and a column for "Last Name").
  • An empty column where the combined results will be displayed.

Step-by-Step

  1. Prepare Your Data: Organize your data into columns. For example, place first names in Column A and last names in Column B. Ensure there are no accidental trailing spaces in your cells, as the function will include those spaces in the final result.
  2. Select the Target Cell: Click on the empty cell where you want the combined text to appear (e.g., cell C2).
  3. Enter the Equals Sign: Type = to tell Google Sheets you are starting a formula.
  4. Type the Function Name: Type CONCATENATE(. This opens the function and prepares it to receive the data points you want to merge.
  5. Select the First Cell: Click on the first cell you want to include (e.g., A2) or type the cell reference manually. The formula should now look like =CONCATENATE(A2.
  6. Add a Separator (Crucial Step): If you simply select two cells, the text will be smashed together (e.g., "JohnDoe"). To add a space, type a comma, followed by quotation marks with a space inside, and another comma. The formula should now look like =CONCATENATE(A2, " ", .
  7. Select the Second Cell: Click on the second cell you want to include (e.g., B2). The formula should now look like =CONCATENATE(A2, " ", B2).
  8. Close and Execute: Type the closing parenthesis ) and press Enter. The cell will now display the combined text (e.g., "John Doe").
  9. Apply to Other Rows: To apply this logic to the rest of your list, click the small blue square (fill handle) in the bottom-right corner of the cell you just completed and drag it down the column. Google Sheets will automatically update the cell references for each row (A3, B3; A4, B4, etc.).

Common Mistakes

One of the most frequent errors is forgetting the quotation marks when adding manual text or spaces. In Google Sheets, any text that is not a cell reference must be enclosed in double quotes. For example, =CONCATENATE(A2, , B2) will result in a formula parse error because the space is not inside quotes. Correct usage is " ".

Another common mistake is confusing CONCATENATE with CONCAT. While they sound similar, the CONCAT function is a simplified version that only allows for two arguments. If you try to add a third item (like a space or a third cell) to a CONCAT formula, Google Sheets will return an error. Always use CONCATENATE or the ampersand symbol when dealing with more than two pieces of data.

Users also often forget to account for existing spaces in their source data. If cell A2 contains "John " (with a space at the end) and cell B2 contains "Doe", using =CONCATENATE(A2, " ", B2) will result in "John Doe" with two spaces. It is important to check your data cleanliness before applying the function.

Tips

Using the Ampersand (&) Shortcut: For those who find the CONCATENATE function tedious, Google Sheets offers a shorthand method using the ampersand symbol. Instead of typing the full function, you can type =A2 & " " & B2. This achieves the exact same result as the CONCATENATE function but is often faster to type and easier to read in complex formulas.

Combining Dates and Text: If you try to concatenate a cell containing a date, Google Sheets will convert the date into its raw numeric value (e.g., "45123") rather than the formatted date. To fix this, wrap the date cell in the TEXT function. For example: =CONCATENATE("Today is ", TEXT(A2, "mm/dd/yyyy")). This ensures the date remains readable.

Handling Large Ranges with TEXTJOIN: If you need to combine a large range of cells (e.g., A2 through A20) with the same separator, CONCATENATE becomes inefficient because you have to click every cell. Instead, use the TEXTJOIN function. The syntax =TEXTJOIN(" ", TRUE, A2:A20) allows you to specify the delimiter once and select a whole range, while the "TRUE" argument tells the sheet to ignore any empty cells in that range.

Troubleshooting

Formula Parse Error: If you see a #ERROR! or "Formula Parse Error," the first thing to check is your commas and quotation marks. Ensure every argument is separated by a comma and every manual string (including spaces) is wrapped in double quotes. Check that you have a closing parenthesis at the very end of the formula.

Wrong Data Format: If the result looks like a random number instead of a date or currency, it is because CONCATENATE strips away formatting. Use the TEXT function as mentioned in the Tips section to force the data into a specific format (e.g., TEXT(B2, "$#,##0") for currency).

Unexpected Spaces: If your combined text has too many spaces, check the original cells for "invisible" trailing spaces. You can fix this by wrapping your cell references in the TRIM function, which removes leading and trailing whitespace. Example: =CONCATENATE(TRIM(A2), " ", TRIM(B2)).

The Result Doesn't Update: If you change the data in cell A2 but the concatenated result in C2 doesn't change, check if your spreadsheet is set to "Manual Calculation" (though this is rare in Google Sheets). Usually, a simple page refresh or re-entering the formula solves this glitch.

Frequently Asked Questions

Can I concatenate cells from different sheets?

Yes. Instead of clicking a cell on the current sheet, you can reference another sheet by using the sheet name followed by an exclamation point. For example: =CONCATENATE(Sheet1!A2, " ", Sheet2!B2).

Is there a limit to how many cells I can concatenate?

While there is no strictly defined small limit, very long formulas can become difficult to manage. If you are joining dozens of cells, the TEXTJOIN function is highly recommended for efficiency and stability.

How do I add a line break between concatenated values?

To start a new line within a single cell, use the CHAR function for a carriage return. The formula would be =CONCATENATE(A2, CHAR(10), B2). You must also enable "Wrap Text" for that cell to see the line break effect.

Can I use CONCATENATE to create email addresses?

Yes, this is a common use case. If you have a username in A2 and a domain in B2, you can use =CONCATENATE(A2, "@", B2) to generate a full email address.

What is the difference between CONCAT and CONCATENATE?

CONCAT is designed for exactly two values. CONCATENATE is more flexible and allows for an unlimited number of strings, cell references, and separators within a single formula.