Google Sheets Concatenate: Combine Text and Cells Easily
In this article
To concatenate text in Google Sheets, use the ampersand symbol (&), the CONCATENATE function, or the TEXTJOIN function. The fastest method is using the ampersand operator; for example, entering =A1 & " " & B1 will combine the contents of cell A1 and B1 with a space in between. These tools allow you to merge data from multiple columns into one, such as combining a first name and a last name or creating full mailing addresses from separate street, city, and zip code cells.
What You'll Need
- A Google account with access to Google Sheets.
- An active spreadsheet containing the text or data you wish to combine.
- Basic familiarity with selecting cells and entering formulas.
Step-by-Step
Depending on the complexity of your data, there are four primary ways to combine text. Labels and menu options may differ slightly depending on your browser version or regional settings.
Method 1: Using the Ampersand (&) Operator
The ampersand is the most flexible and widely used method because it does not require a formal function name and allows for quick insertions of custom text.
- Click on the empty cell where you want the combined text to appear.
- Type the equals sign (
=) to start the formula. - Click the first cell you want to include (e.g., cell A2) or type its reference.
- Type the ampersand symbol (
&). - If you need a space or punctuation between the values, type a quotation mark, the space or character, and another quotation mark (e.g.,
" "). - Type another ampersand (
&). - Click the second cell you want to include (e.g., cell B2).
- Press Enter. To apply this to the rest of your column, click the small blue square in the bottom-right corner of the cell and drag it down.
Method 2: Using the CONCATENATE Function
The CONCATENATE function is a formal way to join strings of text. It is particularly useful when you have a long list of cells to merge.
- Select the cell where the result should go.
- Type
=CONCATENATE(. - Select the first cell or type a string of text inside quotation marks (e.g.,
"Hello "). - Type a comma to separate the first item from the next.
- Select the next cell or type another string of text. Repeat this process for all items you wish to join.
- Close the parenthesis
)and press Enter.
Method 3: Using the CONCAT Function
The CONCAT function is a simplified version of CONCATENATE, but it has a strict limitation: it can only join two values. It is best used for very simple, two-part merges.
- Select your destination cell.
- Type
=CONCAT(. - Select the first cell, type a comma, and select the second cell.
- Close the parenthesis and press Enter.
Method 4: Using the TEXTJOIN Function
TEXTJOIN is the most powerful concatenation tool because it allows you to set a delimiter (like a comma or space) once and apply it to an entire range of cells, while also giving you the option to ignore empty cells.
- Select the cell for the output.
- Type
=TEXTJOIN(. - Enter the delimiter inside quotation marks. For example, for a comma and a space, type
", ". - Type a comma, then type
TRUEif you want the formula to skip empty cells, orFALSEif you want it to include them. - Type another comma and then select the range of cells you want to combine (e.g.,
A2:E2). - Close the parenthesis and press Enter.
Common Mistakes
Many users encounter errors when concatenating because of small syntax omissions. The most common mistakes include:
- Forgetting Quotation Marks: Any text that is not a cell reference must be enclosed in double quotes. If you type
=A1 & space & B1, Google Sheets will look for a named range called "space" and return a#NAME?error. You must use" ". - Missing Commas: In the CONCATENATE and TEXTJOIN functions, every argument must be separated by a comma. Missing a comma will result in a formula parse error.
- Incorrect Range Selection: When using TEXTJOIN, users sometimes select a range that includes the cell where the formula itself is located. This creates a circular reference error.
- Overlooking Data Types: Concatenating a date cell often results in a strange five-digit number (the date's serial value) rather than the formatted date. To fix this, you must wrap the date cell in a TEXT function, such as
TEXT(A1, "mm/dd/yyyy").
Tips
To maximize efficiency when combining text, consider these advanced techniques:
- Using ARRAYFORMULA: Instead of dragging a formula down hundreds of rows, wrap your concatenation in an ARRAYFORMULA. For example,
=ARRAYFORMULA(A2:A100 & " " & B2:B100)will process the entire range instantly. - Adding Line Breaks: If you want the combined text to appear on separate lines within a single cell, use the CHAR function. The code for a line break is 10. Use
=A1 & CHAR(10) & B1. Note that you must enable "Wrap Text" in the toolbar for the line break to be visible. - Combining Currency: Similar to dates, currency loses its formatting when concatenated. Use
= "Total: " & TEXT(C1, "$#,##0.00")to maintain the dollar sign and decimal places. - Cleaning Data First: Use the TRIM function inside your concatenation to remove accidental leading or trailing spaces from your source cells. For example:
=TRIM(A1) & " " & TRIM(B1).
Troubleshooting
If your formula is not working as expected, follow these steps in order:
- Check for #ERROR!: This usually means there is a syntax error, such as a missing quote or an extra parenthesis. Double-check that every opening parenthesis has a closing one and every quote is paired.
- Check for #VALUE!: This often happens if the formula is trying to process a data type it cannot handle. Ensure you aren't accidentally trying to perform a mathematical operation inside a text function.
- Fixing Spacing Issues: If your text is smashed together (e.g., "JohnDoe" instead of "John Doe"), you likely forgot to add the space string
" "between your cell references. - Updating Results: If the concatenated text doesn't change when you update the source cells, ensure that your spreadsheet calculation settings are set to automatic.
- Removing Extra Commas: If you are using TEXTJOIN and see double commas, check if you have empty cells in your range and ensure the second argument of the function is set to
TRUE.
Frequently Asked Questions
What is the difference between CONCAT and CONCATENATE?
CONCAT is designed to join only two values. CONCATENATE can join an unlimited number of strings, cell references, or ranges.
Can I combine cells from different sheets?
Yes. Instead of clicking a cell on the current sheet, click the tab of the other sheet and select the cell. The formula will look like ='Sheet2'!A1 & B1.
How do I combine a whole column of text into one cell?
Use the TEXTJOIN function. Select the entire column range (e.g., A1:A100) as the final argument and choose a delimiter like a comma or a newline CHAR(10).
Does the ampersand method work on the Google Sheets mobile app?
Yes, all concatenation methods, including the ampersand and functions, work on both the Android and iOS versions of the Google Sheets app.
How do I combine text and a number?
Google Sheets automatically converts numbers to text when using concatenation. You can simply use =A1 & " is " & B1 where B1 is a number, and it will display correctly.