How to Combine Two Columns in Excel: A Practical Guide

Learn how to combine two columns in Excel using TEXTJOIN, CONCAT, the & operator, and Power Query. This comprehensive how-to from XLS Library covers methods, data prep, tips, and troubleshooting for reliable results.

XLS Library
XLS Library Team
·5 min read
Merge Columns in Excel - XLS Library
Quick AnswerSteps

If you’re wondering how do i combine two columns in excel, the fastest options are formulas or built-in features. Use TEXTJOIN or CONCAT to merge values with a separator, or the & operator for simple joins. For dynamic data, Power Query can perform merges as your source data changes, and always check blanks first.

Understanding the need to merge columns in Excel

In many everyday Excel tasks, you’ll want to combine two columns into a single column for reporting, exporting, or data cleansing. This is common when first and last names are split across columns, or when you need to create a full address string from separate street, city, and state fields. The question often surfaces as how to implement this efficiently without losing data integrity or formatting. According to XLS Library, identifying the exact goal of the merge—whether you want a static snapshot or a dynamic link to source data—determines the best method. For many analysts, mastering column merging is a foundational skill that enables cleaner datasets and smoother downstream processes. The key is choosing a strategy that preserves data types and handles blanks gracefully. In this guide we’ll cover practical options, trade-offs, and real-world examples for how to combine two columns in Excel.

Quick methods overview

There isn’t a single one-size-fits-all solution for how to combine two columns in Excel. The simplest approach is a formula-based merge using CONCAT or the & operator, which is great for static data. If you need a delimiter (like a space or comma) or want to ignore blanks, TEXTJOIN offers a cleaner, delimiter-aware merge. For more advanced, repeatable merges that adapt to data changes, Power Query is the gold standard. This section lays out when to use each method, what to watch for (blanks, numbers, formats), and how to choose the right approach for your workflow.

Method A: Using TEXTJOIN for delimiters

TEXTJOIN is a powerful function that merges ranges or individual cells with a specified delimiter, and it can ignore empty cells to keep your results tidy. A typical formula looks like =TEXTJOIN(" ", TRUE, A2, B2). The first argument is the delimiter (a space in this case), the second tells Excel to skip blanks, and the remaining arguments are the cells to merge. You can extend this to entire columns (or use an array of values) and adapt for multiple columns if needed. When data updates, TEXTJOIN remains a static result unless you recalculate; consider converting to values if you need a fixed snapshot. For the novice, testing on a subset of rows helps prevent surprises. It’s a popular choice for clean, readable results and works well across many Excel versions that support TEXTJOIN.

Method B: Using CONCAT or the & operator

CONCAT (or the older CONCATENATE) and the & operator offer straightforward ways to combine two columns without introducing a delimiter. A simple example is =A2 & " " & B2 to put a space between values. These methods are universally supported in Excel; however, they don’t ignore blanks automatically, so you may end up with double spaces if one cell is blank. A quick fix is to wrap the parts in an IF statement (e.g., IF(B2="","",B2)) or to use TRIM to clean up extra spaces after the merge. For users who want performance and simplicity in small datasets, CONCAT/ & can be faster to implement than TEXTJOIN.

Method C: Power Query for dynamic merging

Power Query allows you to merge columns during data import or refresh, so results update automatically when the source data changes. In Power Query, you’d add a custom column with a merge operation, choose a delimiter, and then load the results back into Excel. This approach is especially valuable for large datasets, ongoing data pipelines, or when you need to standardize formatting across many merged fields. While more involved initially, Power Query yields reusable steps and robust error handling, making it ideal for repeatable data transformations.

Handling blanks and data types during merge

Blanks can distort the appearance of a merged result, or introduce unwanted delimiters. If you want to skip blanks, TEXTJOIN with ignore_empty = TRUE is the simplest path. If you’re using CONCAT or & and you want to avoid extra spaces, wrap the components with TRIM and conditional checks. Also consider whether you’re merging numbers or text—Excel may convert numbers to text after a merge, which can affect downstream calculations. A prudent practice is to perform a quick data type audit before merging and to convert results back to their original types if necessary.

Practical examples: common scenarios and formulas

Scenario 1: Merging First and Last Names with a space Formula: =TEXTJOIN(" ", TRUE, A2, B2)

Scenario 2: Full Address from Street, City, State with commas Formula: =TEXTJOIN(", ", TRUE, A2, B2, C2)

Scenario 3: Email-like merge without delimiter, avoiding blanks Formula: =IF(OR(A2="", B2=""), CLT, A2 & B2) // adjust as needed

Scenario 4: Dynamic merge using Power Query for a large dataset Power Query steps outline included in the dedicated method section.

Performance considerations and version compatibility

TEXTJOIN requires Excel 2019 or later; Power Query is built into modern Office suites but available differently depending on edition. If you’re sharing workbooks with users on older Excel versions, favor CONCAT or & operator with manual handling of blanks. For very large datasets, Power Query generally performs better and allows easier automation. Consider your audience and environment when choosing a method, and test the approach with representative samples.

Troubleshooting common issues during merges

Common issues include extra spaces from empty cells, numbers turning into text after a merge, and misaligned row counts when columns have different lengths. Start by trimming values and using TRUE in TEXTJOIN to skip blanks. If numbers turn into text, reapply a VALUE or NUMBERVALUE conversion after merging. For Power Query, verify the data types in the query editor and ensure the merge logic is correctly applied. Always save a backup before significant data transformations.

Best practices and a quick implementation checklist

  • Define the desired outcome (static snapshot vs. dynamic merge).
  • Back up your workbook before starting.
  • Test in a small sample before applying to the entire dataset.
  • Prefer TEXTJOIN for clean, delimiter-aware joins; use Power Query for dynamic, scalable merges.
  • Convert merged results to values if you plan to edit the source data later.
  • Document which method you used so colleagues can reproduce the result.

Choosing the right method for your workflow

If your data is static and you want a quick, readable result, TEXTJOIN or CONCAT with a delimiter is ideal. For large, changing datasets or automated pipelines, Power Query offers stability and scalability. Consider your Excel version, team familiarity, and future maintenance needs. With these criteria in mind, you’ll confidently select a method and apply it consistently across projects.

Tools & Materials

  • Microsoft Excel (any recent version)(TEXTJOIN/CONCAT supported; 2019+ recommended)
  • Two adjacent columns to merge (e.g., A and B)(Sample data used for demonstration)
  • Backup copy of the workbook(Prevent data loss during experiments)
  • Delimiter idea (e.g., space, comma)(Used with TEXTJOIN to format results)
  • Power Query / Get & Transform (optional)(Useful for dynamic, repeatable merges)

Steps

Estimated time: 25-40 minutes

  1. 1

    Prepare your data

    Open your workbook and identify the two columns to merge (for example A and B). Ensure headers are present and consider creating a destination column (C) for the merged result. Create a backup copy of the workbook to safeguard against accidental data loss.

    Tip: Always save a backup before editing large data sets.
  2. 2

    Choose a merge method

    Decide whether to use TEXTJOIN, CONCAT/&, or Power Query based on your data size, need for a delimiter, and whether you want the merge to update automatically. Confirm Excel version supports the chosen method.

    Tip: TEXTJOIN is ideal if you want to ignore blanks and insert a delimiter.
  3. 3

    Implement TEXTJOIN with a delimiter

    Enter =TEXTJOIN(" ", TRUE, A2, B2) in the destination cell and press Enter. Drag the fill handle down to apply it to other rows. This approach ignores blanks and uses a space as a separator.

    Tip: TRUE ignores blanks; replace with FALSE if you want to preserve empty positions.
  4. 4

    Implement CONCAT or the & operator

    Enter =A2 & " " & B2 to join with a space. Copy down, then use TRIM to clean any accidental extra spaces. This method is universal but requires manual handling of blanks to avoid double spaces.

    Tip: Consider wrapping with IF statements to skip if one side is blank.
  5. 5

    Set up Power Query for dynamic merge

    Load the two columns into Power Query, add a custom column to merge with a delimiter, and then load the result back to Excel. This keeps the merged data in sync with source changes.

    Tip: Power Query shines with large datasets and repeatable processes.
  6. 6

    Validate and finalize

    Check a sample of merged rows for accuracy, replace formulas with values if you need a fixed snapshot, and save the workbook. Ensure downstream analyses see the expected merged data.

    Tip: Always convert to values for final outputs to prevent re-merging.
Pro Tip: Test your merge on a small data subset before applying to the entire sheet.
Warning: TEXTJOIN requires attention to delimiters; a wrong delimiter can degrade readability.
Note: Delimiters can be any character; for complex scenarios, consider a fixed string like ", " to ensure consistency.

People Also Ask

What is the quickest way to combine two columns in Excel?

TEXTJOIN with a delimiter is often the fastest method for non-technical users. CONCAT or the & operator work well for simple joins, but require extra steps to handle blanks.

TEXTJOIN is usually the quickest method for most users.

How do I handle blanks when combining columns?

Use TEXTJOIN's ignore_empty argument (TRUE) to skip blanks, or add TRIM and IF logic when using CONCAT/& to prevent extra spaces.

TEXTJOIN with ignore_empty is the simplest fix for blanks.

Can I merge columns without changing the original data?

Yes. Create a new column with a formula or use Power Query and then copy-paste as values to preserve the merged results.

Create a new column and paste as values when you’re done.

Is Power Query necessary for merging?

Not strictly necessary for small datasets, but highly beneficial for large datasets or if you want an automated merge workflow.

Power Query isn’t required for small tasks, but great for big data.

How can I reverse or undo a merge?

If you used formulas, you can delete the helper column or revert to the original columns. If you used Power Query, remove the merge step in the query.

Remove the helper column or undo the query step to reverse.

Watch Video

The Essentials

  • Choose the method by data size and need for dynamism
  • TEXTJOIN offers clean delimiter-aware merges
  • Power Query scales to large datasets and automates merges
  • Always back up and validate results
Process infographic showing steps to merge Excel columns
Merge Columns in Excel: A process flow

Related Articles