Google Sheets CONCAT Function: Step-by-Step Guide
In this article
The CONCAT function in Google Sheets joins two or more text values into one string. It is the simplest way to combine first and last names, merge address parts, or build a label from separate cells. All you need is a spreadsheet and a basic understanding of cell references. Note that CONCAT only accepts two arguments; to join more than two values, either nest CONCAT or use CONCATENATE or the ampersand (&) operator. This guide walks you through using CONCAT correctly, avoiding common pitfalls, and fixing errors when they appear.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- A spreadsheet with at least two cells containing text or numbers you want to combine.
- Basic familiarity with typing formulas and referencing cells (e.g., A1, B1).
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com and open an existing file or create a new blank spreadsheet. The steps below apply to both desktop and mobile versions of Google Sheets; the interface may differ slightly, but the formula syntax is identical.
- Click the cell where you want the combined result. This is the destination cell. For example, if you want to join the contents of A2 and B2, click C2.
- Type the CONCAT formula. Start with an equals sign, then CONCAT, an opening parenthesis, the first value, a comma, the second value, and a closing parenthesis. For example:
=CONCAT(A2, B2). You can type cell references directly or click the cells while typing. The formula bar will show the formula as you type. - Press Enter (or the checkmark on mobile). The cell now displays the concatenated result. If A2 contains “John” and B2 contains “Smith”, the result is “JohnSmith” (no space). To add a space, include a literal space in the formula:
=CONCAT(A2, " " & B2)or use=CONCAT(A2, CONCAT(" ", B2)). - Join more than two values. CONCAT only takes two arguments. To combine three or more cells, nest CONCAT calls:
=CONCAT(A2, CONCAT(" ", CONCAT(B2, C2)))or switch to CONCATENATE:=CONCATENATE(A2, " ", B2, " ", C2). Alternatively, use the ampersand:=A2 & " " & B2 & " " & C2. All three methods work; CONCATENATE and & are more flexible for many values. - Copy the formula down or across. Drag the fill handle (small square at the bottom-right of the cell) to apply the formula to other rows. Relative references adjust automatically. If you need absolute references, use dollar signs (e.g., $A$2).
- Format the result if needed. The output is text. If you concatenated numbers, they become text and may lose leading zeros or number formatting. To preserve formatting, use TEXT function:
=CONCAT(A2, TEXT(B2, "00000"))for a five-digit code.
Common Mistakes
- Forgetting the equals sign. Without =, Sheets treats the entry as text, not a formula.
- Using CONCAT with more than two arguments. CONCAT accepts exactly two arguments. Supplying three or more returns a #N/A error or “Wrong number of arguments” message. Use CONCATENATE or & instead.
- Missing quotation marks around literal text. To include a space or punctuation, enclose it in double quotes:
" ". Without quotes, Sheets may interpret it as a named range or error. - Assuming CONCAT adds spaces. It does not. You must explicitly include spaces or separators.
- Referencing empty cells. CONCAT treats empty cells as empty strings, so the result may look odd (e.g., “John ” with trailing space). Use TRIM to clean up:
=TRIM(CONCAT(A2, " " & B2)). - Expecting numbers to keep formatting. Concatenated numbers become text; currency symbols, commas, and leading zeros are lost unless you use TEXT.
Tips
- Use the ampersand (&) for quick concatenation of many values; it is often faster to type than nested CONCAT.
- Combine CONCAT with functions like UPPER, LOWER, or PROPER to format names:
=CONCAT(PROPER(A2), " " & PROPER(B2)). - To join a range of cells (e.g., A2:A10) into one string, use TEXTJOIN with a delimiter:
=TEXTJOIN(", ", TRUE, A2:A10). CONCAT cannot take a range directly; it requires individual cells. - When building formulas, use the formula bar to see the full expression and avoid typos.
- If you need to concatenate dates, wrap the date cell in TEXT to preserve the display format:
=CONCAT("Date: ", TEXT(A2, "mm/dd/yyyy")).
Troubleshooting
- #N/A error or “Wrong number of arguments”: Check that CONCAT has exactly two arguments separated by a comma. If you have more, switch to CONCATENATE or &.
- #NAME? error: Likely a misspelled function name (e.g., CONCAT vs. CONCATE) or missing quotation marks around text. Verify spelling and syntax.
- Result looks like a formula, not text: Ensure the cell is not formatted as text before entering the formula. Select the cell, go to Format > Number > Automatic, then re-enter the formula.
- Unexpected spaces or missing spaces: Review the formula for explicit space characters. Use TRIM to remove extra spaces.
- Numbers lose formatting: Use TEXT to format numbers as text with desired appearance.
- Formula not updating: Check that calculation is set to automatic (File > Settings > Calculation). If set to manual, press Ctrl+R (or Cmd+R on Mac) to recalculate.
Frequently Asked Questions
What is the difference between CONCAT and CONCATENATE?
CONCAT accepts only two arguments (cell references or text strings), while CONCATENATE can take multiple arguments. CONCATENATE is more flexible for joining three or more values. Both return a single text string.
Can CONCAT join a whole range of cells?
No. CONCAT requires individual cell references or text strings. To join a range, use TEXTJOIN or CONCATENATE with multiple references.
How do I add a space between concatenated values?
Include a space in double quotes as an argument: =CONCAT(A2, " " & B2) or nest: =CONCAT(A2, CONCAT(" ", B2)).
Why does CONCAT return #N/A?
Most commonly because you supplied more than two arguments. Check the formula and reduce to two arguments, or switch to CONCATENATE.
Can I concatenate dates without losing formatting?
Yes, use the TEXT function: =CONCAT("Date: ", TEXT(A2, "mm/dd/yyyy")). Adjust the format string as needed.
Does CONCAT work on mobile?
Yes, the Google Sheets mobile app supports CONCAT with the same syntax. Tap the cell, type the formula, and confirm.