How to Combine Two Cells in Excel: Simple Formula Guide
In this article
To combine two cells in Excel, use the ampersand (&) operator or the CONCAT function—both join text from separate cells into one. No special add-ins are required; just ensure the cells contain text (or values that Excel treats as text, like numbers formatted as text). Numbers and dates can also be combined, but Excel will convert them to text in the result.
What You'll Need
- Excel installed (Microsoft 365, Excel 2021, Excel 2019, or Excel for the web)
- A workbook with at least two cells containing data you want to merge
- Basic familiarity with entering formulas in Excel
Step-by-Step
- Open your Excel workbook and locate the two cells you want to combine (e.g., A1 contains "John" and B1 contains "Doe").
- Click the destination cell where the combined result should appear (e.g., C1).
- Enter the formula using the ampersand (&) operator: Type
=A1 & " " & B1(replace A1 and B1 with your actual cell references). The space between quotes (" ") adds a space between the two values. You can omit it, or replace it with a comma, hyphen, or any other separator. - Press Enter. The cell now displays "John Doe" (or your combined data).
- For the CONCAT function (recommended for clarity), type
=CONCAT(A1, " ", B1)instead—this avoids ambiguity with the older & operator and works in all modern Excel versions. - To combine more than two cells, extend the formula:
=A1 & ", " & B1 & ", " & C1or=CONCAT(A1, ", ", B1, ", ", C1). - To combine text with static labels, include quoted strings:
="Name: " & A1 & " " & B1yields "Name: John Doe".
Common Mistakes
- Forgetting quotes around spaces or punctuation: Typing
=A1 & & B1causes an error. Always wrap separators in double quotes:=A1 & " " & B1. - Using commas incorrectly in CONCAT: CONCAT requires each argument (text, cell reference, or string) as a separate parameter.
=CONCAT(A1 B1)is invalid; use=CONCAT(A1, B1)or include separators as quoted strings:=CONCAT(A1, " ", B1). - Not handling leading/trailing spaces: If A1 or B1 has extra spaces, they’ll appear in the result. Use
=TRIM(A1)and=TRIM(B1)within the formula:=TRIM(A1) & " " & TRIM(B1). - Confusing CONCAT with CONCATENATE: CONCATENATE is deprecated in Excel 2016 and later. Use CONCAT instead for better simplicity and compatibility. If you use CONCATENATE, the syntax is identical to CONCAT but requires commas between all arguments:
=CONCATENATE(A1, " ", B1). - Assuming numbers auto-format: If A1 contains a date (e.g., 01/15/2024), Excel stores it as a serial number (e.g., 45300). Combining it directly (e.g.,
=A1 & " - " & B1) will show the number, not the date. Wrap it in TEXT:=TEXT(A1, "mm/dd/yyyy") & " - " & B1.
Tips
- Use TEXTJOIN for flexible separators: If you have Excel 2019 or Microsoft 365,
=TEXTJOIN(" ", TRUE, A1, B1)automatically skips empty cells (the TRUE argument ignores blanks) and uses one separator for all joins. - Copy formulas down a column: After entering the formula in C1, double-click the small square at the bottom-right of C1 (the fill handle) to copy it down for all rows.
- Convert results to values: If you want to paste only the text (not the formula), copy the combined cells, right-click > Paste Special > Values.
- Preserve original data: Never overwrite source cells with the combined result unless you intentionally want to merge them permanently.
- Check for hidden characters: If results look odd (e.g., extra dots or symbols), use
=CLEAN(A1)to remove non-printing characters before combining.
Troubleshooting
If your formula doesn’t work, follow these steps:
- Check for #NAME? error: This usually means Excel doesn’t recognize the function name. Verify you spelled CONCAT (not CONCATE or CONC), and ensure you’re not using an old Excel version without CONCAT (Excel 2013 and earlier lack CONCAT—use CONCATENATE instead).
- Verify cell references: If the result shows 0 or #VALUE!, confirm the cells you referenced contain valid data. A reference to an empty cell returns blank text, which is normal.
- Ensure text mode for numbers/dates: If combining numbers yields unexpected results (e.g., 10 + 20 = 1020 instead of 30), wrap them in TEXT:
=TEXT(A1, "0") & TEXT(B1, "0")forces numeric values to text. - Restart Excel: Temporary glitches can cause formula errors. Close and reopen Excel, then re-enter the formula.
- Check for protected sheets: If the sheet is protected (Review > Protect Sheet), you can’t edit cells. Unprotect it (with the password if set) to apply the formula.
- Test with simple data: Enter "A" in A1, "B" in B1, and
=A1 & B1in C1. If this works, the issue is likely with your original data (e.g., hidden characters or formatting).
Frequently Asked Questions
Can I combine cells without using a formula?
No—Excel does not have a built-in "Merge Cells" feature for combining content into one cell. The Merge & Center button only aligns cells visually but does not join their text. Formulas are the only reliable way to merge cell contents into one value.
Does combining cells change the original data?
No. The formula references the original cells, so the source data remains untouched. Only the destination cell shows the combined result. However, if you copy-paste values, the formula is replaced by static text, and future changes to source cells won’t update it.
How do I combine cells with a line break between them?
Use CHAR(10) (for Windows) or CHAR(13) (for Mac) as the separator. For example: =A1 & CHAR(10) & B1. Then, format the result cell with Wrap Text enabled (Home tab > Alignment group > Wrap Text) so the line break appears.
Why does my combined date show as a number like 44927?
Excel stores dates as serial numbers internally. To display the formatted date, wrap it in the TEXT function: =TEXT(A1, "dddd, mmmm d, yyyy") & " - " & B1 converts 44927 to "Friday, January 12, 2023".
Can I combine cells across different worksheets?
Yes. Include the sheet name in your reference. For example: =Sheet1!A1 & " " & Sheet2!B1. Ensure the sheet names are spelled exactly as they appear in Excel’s tab bar.
What’s the difference between & and CONCAT?
Both join text, but CONCAT is a function that accepts multiple arguments separated by commas, while & is an operator requiring manual chaining. CONCAT is cleaner for many cells (e.g., =CONCAT(A1,B1,C1)), while & offers more granular control (e.g., =A1 & "-" & B1 & "-" & C1). Both work identically in Excel 2016 and later.