Merging text from two cells in Excel is achieved by combining the content of separate cells into a single cell using formulas or built-in tools. The most common method uses the ampersand (&) operator or the CONCAT function, allowing you to join strings with spaces, commas, or other delimiters between them.
What You'll Need
- A spreadsheet with data in at least two adjacent or non-adjacent cells (e.g., A1 and B1).
- Microsoft Excel installed on your computer (desktop version recommended for full feature access).
- Basic understanding of cell references (e.g., knowing that A1 refers to column A, row 1).
Step-by-Step
- Select the destination cell: Click on the empty cell where you want the merged text to appear. For example, if you are merging data from A1 and B1, click on C1.
- Start the formula: Type an equals sign (=) to begin a formula. This tells Excel that the following input is a calculation rather than plain text.
- Reference the first cell: Click on the first cell containing text you wish to merge (e.g., A1). Alternatively, type "A1" manually.
- Add the concatenation operator: Type the ampersand symbol (&). This acts as the glue that joins the text from the previous reference to the next part of the formula.
- Insert a separator (optional but recommended): If you need a space, comma, or dash between the words, type it inside double quotes immediately after the ampersand. For example, type " & \" \" & " to add a space between the two values.
- Reference the second cell: Click on the second cell containing text (e.g., B1) or type its reference.
- Complete the formula: Press Enter. The combined text will now appear in the destination cell.
- Copy the result (if needed): If you want to remove the original source cells without losing the merged data, select the new cell, copy it (Ctrl+C), then right-click the same cell and choose "Paste Values" (the icon with the numbers 123). This converts the formula into static text.
Note: Menu labels and specific function availability can vary slightly depending on your version of Excel (e.g., Excel 2016 vs. Microsoft 365). However, the basic concatenation operators work across all modern versions.
Common Mistakes
- Forgetting quotation marks: When adding spaces or punctuation between merged texts, users often forget to enclose these characters in double quotes. Without quotes, Excel interprets the space or symbol as a missing cell reference, resulting in an error.
- Overwriting source data: Attempting to merge text directly into one of the original cells (e.g., typing the formula in A1 while referencing A1) creates a circular reference error. Always use a new, empty cell for the output.
- Ignoring hidden spaces: Sometimes source cells contain trailing or leading spaces that are not visible. These can cause awkward gaps in the merged text. Use the TRIM function within your formula to clean this up.
- Using incorrect separators: Using a semicolon instead of a comma in some regional settings may cause syntax errors. Ensure you are using the correct list separator for your system's locale settings.
Tips
- Use Flash Fill for quick merges: If you have a consistent pattern (like First Name + Last Name), type the desired result in the first cell manually, then press Ctrl+E. Excel will detect the pattern and fill down the rest of the column automatically.
- Leverage TEXTJOIN for multiple cells: If you need to merge more than two cells, especially with many empty ones, use the TEXTJOIN function. It allows you to specify a delimiter once and ignores empty cells, keeping the output clean.
- Combine with TRIM and CLEAN: To ensure professional results, wrap your cell references in TRIM() to remove extra spaces and CLEAN() to remove non-printable characters before merging.
Troubleshooting
If the merged text does not appear as expected, check the following:
- #VALUE! Error: This usually means there is a typo in the formula, such as a missing quote mark or an invalid character. Review the syntax carefully.
- Text appears as a formula: If you see "=A1&B1" instead of the result, the cell might be formatted as Text. Change the format to General, then re-enter the formula.
- Missing spaces: Verify that you included a quoted space " " between the ampersands. If the names run together like "JohnDoe", you forgot the separator.
- Blank results: Check if the source cells actually contain data. If they are truly empty, the result will be empty unless you added static text in the formula.
Frequently Asked Questions
Can I merge text from non-adjacent cells?
Yes, you can reference any cell in the worksheet regardless of its position. For example, =A1&" "&C1 works just as well as merging adjacent cells.
What is the difference between CONCAT and CONCATENATE?
CONCATENATE is the older function, while CONCAT is the newer replacement introduced in recent Excel versions. Both perform similar tasks, but CONCAT supports range arguments (e.g., =CONCAT(A1:A5)), making it more flexible for large datasets.
How do I merge cells visually without combining their data?
To merge cells visually (combining them into one larger box while keeping only the top-left value), select the cells and go to Home > Alignment > Merge & Center. Note that this deletes data in all but the top-left cell, so use it cautiously.
Can I merge text and numbers?
Yes, Excel automatically converts numbers to text when concatenated. For example, ="Total: "&A1 will display "Total: 100" if A1 contains the number 100. You can also format numbers within the text string using the TEXT function.
Is there a way to reverse a merge?
No direct "unmerge" function exists for text combined via formulas. To reverse it, you must delete the formula and restore the original data from backup, or use functions like LEFT, RIGHT, and MID to extract parts if the delimiter was consistent.