How to Concatenate in Excel: Step-by-Step Guide
In this article
To concatenate in Excel, type =CONCATENATE(A2," ",B2) or the newer =TEXTJOIN(" ",TRUE,A2,B2) into an empty cell and press Enter. The ampersand operator (=A2&" "&B2) does the same job and is often faster to type. All three combine text from separate cells into one string; the differences are in how they handle ranges, delimiters and empty cells. This guide walks through each method, the mistakes that cause #NAME? or #VALUE! errors, and how to make the result permanent.
What You'll Need
- Excel 2016 or later, Microsoft 365, Excel for Mac, or Excel for the web (CONCATENATE is available in all; TEXTJOIN requires Excel 2019/365 or Excel for the web).
- A worksheet with the text you want to combine, ideally in separate columns (for example first name in column A, last name in column B).
- An empty column or cell to hold the result.
- Basic familiarity with typing formulas and pressing Enter.
Step-by-Step
- Open your workbook and identify the source cells. Suppose first names are in A2:A10 and last names are in B2:B10. You want full names in column C. Click cell C2.
- Start the formula with an equals sign. Type
=in C2. Every Excel formula begins this way; without it, Excel treats your entry as text. - Choose your method. For two or three cells, the ampersand is shortest:
=A2&" "&B2. For a named function, type=CONCATENATE(A2," ",B2). For many cells or a whole range, use=TEXTJOIN(" ",TRUE,A2:B2). All three produce the same result here. - Add the delimiter as a quoted string. The space between first and last name is written as
" "— a quotation mark, a space, a quotation mark. Commas, hyphens and other separators work the same way, for example", "for a comma and space. Without a delimiter, you getJaneDoeinstead ofJane Doe. - Close the parentheses and press Enter. Excel evaluates the formula and shows the combined text in C2. The formula bar still shows the formula, so you can edit it later.
- Copy the formula down the column. Click C2, grab the small square at the bottom-right corner (the fill handle), and drag down to C10, or double-click the fill handle to fill to the last adjacent row. Relative references adjust automatically, so C3 becomes
=A3&" "&B3, and so on. - Convert formulas to values if you need to delete the source columns. Select the results, press Ctrl+C (Cmd+C on Mac), then right-click and choose Paste Special > Values. The text stays; the formulas are replaced by plain text. This step is optional but important if you plan to remove columns A and B.
- Check a few results visually. Look for doubled spaces, missing delimiters or
0appearing where a source cell was empty. Fix the formula and re-fill if needed.
Menu labels and function availability can differ slightly by Excel version, device and region. CONCATENATE is considered a legacy function in Microsoft 365; Microsoft recommends TEXTJOIN or the ampersand operator for new work, but CONCATENATE still works and remains widely used.
Common Mistakes
- Forgetting quotes around the delimiter.
=A2& &B2is invalid. The space must be inside quotation marks:" ". - Using commas instead of the correct argument separator. In some regional settings Excel uses semicolons (
;) between arguments, so=CONCATENATE(A2;" ";B2)is correct there. If Excel rejects commas, try semicolons. - Leaving out the equals sign. Without
=, Excel stores the formula as text and shows it literally in the cell. - Concatenating numbers and losing leading zeros. If a ZIP code like
01234is stored as a number, Excel drops the leading zero. Format the source cell as Text before entering the value, or useTEXT(A2,"00000")inside the formula. - Expecting CONCATENATE to accept a range.
=CONCATENATE(A2:B2)does not work in older versions; list each cell separately or use TEXTJOIN, which accepts ranges. - Pasting results over the source columns. If you paste the concatenated column onto A or B, the formulas reference cells that no longer contain the original data, producing wrong results or errors. Paste as values into a new column first.
Tips
- Use
TEXTJOINwhen combining many cells:=TEXTJOIN(", ",TRUE,A2:A20)joins a whole range with a comma and space, and theTRUEignores empty cells so you don't get stray commas. - Add a line break inside a formula with
CHAR(10)and turn on Wrap Text on the Home tab to display it. - Use
TRIMaround the result —=TRIM(A2&" "&B2)— to remove extra spaces from source cells. - Use
UPPER,LOWERorPROPERon the result if the source cells have inconsistent capitalization. - Name your source columns clearly and keep them adjacent; it makes the fill handle and TEXTJOIN ranges easier to manage.
- If you need the combined text in another app, copy the results and paste as values into Notepad or a text editor first to strip formatting.
Troubleshooting
- #NAME? error: Excel doesn't recognize the function name. Check spelling — it is
CONCATENATE, notCONCATENAT— and confirm your version supports the function you typed. TEXTJOIN is not available in Excel 2016 or earlier. - #VALUE! error: Usually a stray character or an unquoted delimiter. Re-type the formula carefully, ensuring every text literal is in quotes and every parenthesis is closed.
- Formula shows as text: The cell is formatted as Text, or the entry is missing the leading
=. Change the cell format to General, then re-enter the formula. - Result is a date serial number: Concatenating a date cell returns its underlying number. Wrap it:
=TEXT(A2,"mm/dd/yyyy")&" "&B2. - Extra spaces appear: Source cells may contain trailing spaces. Apply
TRIMto each source or to the final result. - Fill handle doesn't adjust references: The formula may use absolute references (
$A$2). Remove the dollar signs if you want the references to move down the column. - Nothing happens when you press Enter: Check that you are not in Edit mode with a cell selected, and that the workbook is not protected. Unprotect the sheet via Review > Unprotect Sheet if needed.
Frequently Asked Questions
What is the difference between CONCATENATE and CONCAT?
CONCAT is the newer function that replaces CONCATENATE and, unlike it, accepts ranges. CONCATENATE remains available for backward compatibility. Both join text; CONCAT is the better choice in Excel 2019 and Microsoft 365.
Can I concatenate a whole column at once?
Yes, with TEXTJOIN: =TEXTJOIN(", ",TRUE,A2:A100). CONCATENATE cannot take a range directly, so you would have to list each cell.
Why does my concatenated number lose its leading zeros?
Excel stores numbers without leading zeros. Format the source cell as Text before typing the value, or convert it inside the formula with TEXT(A2,"00000").
Does concatenation work in Excel for the web and on Mac?
Yes. CONCATENATE, CONCAT, TEXTJOIN and the ampersand operator all work in Excel for the web and Excel for Mac. Keyboard shortcuts for copy and paste differ slightly on Mac (Cmd instead of Ctrl).
How do I add a comma and space between combined values?
Include ", " as a quoted argument: =A2&", "&B2 or =CONCATENATE(A2,", ",B2). For ranges, use TEXTJOIN with ", " as the first argument.
Can I undo a concatenation?
Not automatically. Concatenation only combines text; it does not preserve the original split. Keep the source columns until you have confirmed the results, or use Text to Columns (Data tab) to split a combined string back apart if a delimiter separates the parts.