Merging columns in Excel combines data from multiple cells into a single cell, typically to create full names, complete addresses, or unified product codes. You can achieve this using the Flash Fill feature for quick pattern recognition, the CONCAT or TEXTJOIN functions for dynamic formulas, or the Ampersand (&) operator for simple concatenation. Before starting, ensure your source data is clean and that you have an empty column ready to receive the merged results.
What You'll Need
- A Microsoft Excel workbook with data arranged in adjacent columns.
- An empty column next to your data where the merged result will appear.
- Basic knowledge of which method suits your data type (text, numbers, or mixed).
- Excel 2013 or later if you plan to use Flash Fill; older versions require formulas.
Step-by-Step
- Select the first cell: Click on the first empty cell in the column where you want the merged data to appear. For example, if merging First Name (Column A) and Last Name (Column B), click cell C2.
- Enter the formula: Type one of the following formulas based on your needs:
- Simple Concatenation:
=A2&" "&B2(This adds a space between the two values.) - Using CONCAT:
=CONCAT(A2," ",B2) - Using TEXTJOIN (for multiple columns):
=TEXTJOIN(" ", TRUE, A2:B5)(This joins all non-empty cells in the range with a space separator.)
- Simple Concatenation:
- Press Enter: Hit the Enter key to execute the formula. The combined text should now appear in the selected cell.
- Fill down the formula: Hover over the bottom-right corner of the cell containing the formula until the cursor changes to a small black cross (the fill handle). Double-click the handle to automatically fill the formula down to the last row of your data, or drag it down manually.
- Convert formulas to values (Optional but Recommended): If you no longer need the original separate columns, copy the new merged column (Ctrl+C), then right-click the same location and select "Paste Values" (the icon with '123'). This removes the formulas and keeps only the static text, preventing errors if you delete the source columns.
- Delete original columns: Right-click the headers of the original columns (e.g., A and B) and choose "Delete." Ensure you have saved a backup or verified the merged data looks correct before doing this.
Common Mistakes
One frequent error is forgetting to include a delimiter, such as a space or comma, between the merged items. Without a delimiter, "John" and "Doe" become "JohnDoe," which is difficult to read. Another common issue is trying to merge numeric data without formatting. If you combine a date and a time using standard concatenation, Excel may display raw serial numbers instead of formatted dates. Always check the output format when dealing with dates or currency. Additionally, users often forget to convert formulas to values before deleting source columns, resulting in #REF! errors once the original data is removed.
Tips
Use Flash Fill for rapid merging without formulas. If you have a consistent pattern, type the desired result in the first cell, press Enter, and then press Ctrl+E. Excel will detect the pattern and fill the rest of the column automatically. This works best for text-based data like names and addresses. When using TEXTJOIN, take advantage of the "ignore empty" argument by setting the second parameter to TRUE. This prevents extra delimiters from appearing if some cells in the range are blank. Finally, always keep a backup copy of your original sheet before performing bulk merges or deletions, as undoing actions after saving and closing the file is not possible.
Troubleshooting
If your merged cells show #VALUE! errors, check that the referenced cells actually contain data and are not part of a table structure that interferes with the formula syntax. If numbers appear as scientific notation or long decimals after merging, format the source cells as Text before combining them, or wrap the number references in the TEXT function within your formula (e.g., =A2&TEXT(B2,"0.00")). If Flash Fill does not work correctly, ensure there are no hidden characters or inconsistent spacing in your source data. Sometimes, Excel fails to recognize patterns if the sample data provided in the first few rows is too short or irregular; try filling in more examples manually before triggering Flash Fill again.
Frequently Asked Questions
Can I merge columns with different data types?
Yes, you can merge text, numbers, and dates into a single cell. However, dates and times will lose their formatting unless you explicitly format them within the formula using the TEXT function. Numbers may also change appearance depending on cell formatting.Does merging columns delete the original data?
No, merging via formulas or Flash Fill creates a new column with the combined data. The original columns remain intact until you manually delete them. It is safe to experiment without losing your source information.How do I add a specific separator like a hyphen?
Include the separator character inside quotation marks within your formula. For example, to join parts of a phone number with hyphens, use=A2&"-"&B2&"-"&C2. The hyphen must be enclosed in double quotes to be treated as text.