Combining two cells means joining their contents into a single cell, either by merging the cells into one or by concatenating their text. The method you choose depends on whether you want to keep both values in one cell (concatenation) or simply merge the cells for layout purposes (merging). This guide covers both approaches in Excel and Google Sheets, with practical steps and fixes for common problems.
What You'll Need
- A spreadsheet program such as Microsoft Excel or Google Sheets.
- Two cells containing the text or values you want to combine.
- Basic familiarity with typing formulas and selecting cells.
Step-by-Step
Method 1: Combine text using a formula (keeps both values)
- Click an empty cell where you want the combined result to appear.
- Type an equals sign to start a formula.
- Select the first cell, type an ampersand (&), then select the second cell. For example,
=A1&B1joins the contents of A1 and B1 with no space between them. - To add a space, include a space inside quotation marks:
=A1&" "&B1. You can add any separator this way, such as a comma or hyphen. - Press Enter. The combined text appears in the cell with the formula.
- If you want to replace the original cells with the combined text, copy the result, then use Paste Special > Values to paste it as plain text, and delete the original cells.
Method 2: Use the CONCATENATE or TEXTJOIN function
- Click an empty cell.
- Type
=CONCATENATE(A1, " ", B1)(or=CONCAT(A1, " ", B1)in newer versions). This does the same as the ampersand method. - For joining many cells with a delimiter, use
TEXTJOIN:=TEXTJOIN(" ", TRUE, A1, B1). The first argument is the delimiter, the second tells the function to ignore empty cells, and the rest are the cells to join. - Press Enter to see the result.
Method 3: Merge cells (for layout only)
- Select the two cells you want to merge. They must be adjacent.
- On the Home tab, click Merge & Center (Excel) or Format > Merge cells (Google Sheets).
- Confirm the merge. Note that merging keeps only the value from the upper-left cell; any other content is discarded.
- To unmerge, select the merged cell and click the same button again.
Method 4: Use Flash Fill (Excel only)
- In the column next to your data, type the combined result you want for the first row.
- Press Enter and start typing the result for the second row. Excel may suggest the rest automatically.
- Press Enter to accept the suggestion, or go to Data > Flash Fill to fill the remaining rows.
Common Mistakes
- Merging instead of concatenating. Merging discards all but the top-left value. If you need to keep both values, use a formula.
- Forgetting quotation marks around spaces or punctuation.
=A1& &B1is invalid; write=A1&" "&B1. - Combining numbers without formatting. A date or currency value may appear as a serial number when concatenated. Use the TEXT function to format it, e.g.
=TEXT(A1,"mm/dd/yyyy")&" "&B1. - Leaving formulas in place when you need static text. If you delete the source cells, the formula returns an error. Paste as values first.
- Merging cells that contain data in both. Only the upper-left content survives; the rest is lost without warning in some versions.
Tips
- Use
TEXTJOINwhen combining more than two cells; it handles delimiters and empty cells cleanly. - To combine a whole column of names, use
=A1&" "&B1and drag the fill handle down. - If you want a line break between values, use
CHAR(10)as the delimiter and enable Wrap Text. - Keep a backup of your data before merging cells, since merging can hide or delete content.
- In Google Sheets, the ampersand and CONCATENATE methods work the same as in Excel; TEXTJOIN is also available.
Troubleshooting
- The formula shows as text instead of calculating. The cell may be formatted as Text. Change the format to General, then re-enter the formula.
- You see #VALUE! or #NAME?. Check for missing quotation marks, misspelled function names, or a delimiter that is not enclosed in quotes.
- Dates or numbers look wrong after combining. Wrap the numeric cell in TEXT with the desired format before joining.
- Merged cells won't sort or filter correctly. Unmerge them; merged cells interfere with sorting and data analysis.
- The combined result is cut off. Widen the column or enable Wrap Text; the cell may simply be too narrow to display the full text.
Frequently Asked Questions
What is the difference between merging and concatenating cells?
Merging combines two or more cells into one visual cell and keeps only the upper-left value. Concatenating joins the text from multiple cells into one cell using a formula, preserving all values.
Can I combine two cells without a formula?
Yes, you can use Flash Fill in Excel or manually type the combined text. Merging cells also combines them visually but discards all but one value.
How do I combine two cells with a space between them?
Use =A1&" "&B1 or =CONCATENATE(A1, " ", B1). The space inside quotation marks is the separator.
Why does my combined cell show a number instead of a date?
Spreadsheets store dates as serial numbers. When you concatenate, the underlying number appears. Use TEXT(A1,"mm/dd/yyyy") to keep the date format.
Does combining cells work the same in Excel and Google Sheets?
The ampersand and CONCATENATE methods work in both. TEXTJOIN is available in both, though older Excel versions may not support it. Merging is done through different menu locations but behaves similarly.
Can I undo a merge?
Yes. Select the merged cell and click Merge & Center again (Excel) or Format > Merge cells (Google Sheets) to unmerge. Note that data lost during merging is not restored.