Tutorial

How to Combine Two Columns in Excel: Ampersand, TEXTJOIN, and Flash Fill

Learn how to combine two columns in excel using the ampersand (&), TEXTJOIN, CONCAT, and Flash Fill. Add spaces, format dates, and preserve data.

Anuj SainiSep 8, 20269 min read

Knowing how to combine two columns in excel is an essential data wrangling skill that analysts use in every data preparation project. When customer databases store First Name and Last Name in separate columns, or inventory systems track Item Code and Warehouse ID independently, combining fields into unified strings allows you to generate composite primary keys, format full mailing names, or prepare labels for business intelligence dashboards.

However, many beginner spreadsheet users make the critical mistake of using the ribbon's Merge & Center button, which permanently destroys data in the adjacent column. Professional analysts combine cell contents using formulas and non-destructive transformations.

In this guide, you will learn the four best techniques for combining columns, how to handle dates and numbers without formatting glitches, and how to automate concatenation across thousands of rows. If you are cleaning raw datasets, this tutorial pairs with our guide on how to merge two cells in Excel and our overview of data cleaning in Excel.


Monthly searches for combining columns and concatenating cells in Excel

Text manipulation and composite key creation account for nearly 30% of data preprocessing tasks in enterprise data pipelines.


How to Combine Two Columns in Excel: The 4 Core Methods

Depending on your version of Excel and your project requirements, you have four distinct methods to combine columns:

excel
1. Ampersand (&) Operator:   =A2 & " " & B2
2. TEXTJOIN Function:        =TEXTJOIN(" ", TRUE, A2:B2)
3. CONCAT Function:          =CONCAT(A2, " ", B2)
4. Flash Fill (No Formula):  Ctrl + E

Method 1: The Ampersand (&) Operator (Universal & Fast)

The ampersand operator is the fastest, most universal way to join text strings in any version of Excel or Google Sheets.

excel
=Cell1 & "delimiter" & Cell2

To combine First Name in A2 with Last Name in B2, inserting a space between them:

excel
=A2 & " " & B2

Argument Breakdown

  • A2: The first cell content (e.g., "Priya").
  • &: The concatenation operator telling Excel to glue strings together.
  • " ": A literal text string containing a single space enclosed in quotation marks.
  • B2: The second cell content (e.g., "Sharma").

Result: "Priya Sharma". Double-click the fill handle to copy down the entire column.


Method 2: TEXTJOIN (Best for Multiple Columns & Delimiters)

Available in Excel 2019, Microsoft 365, and Excel for the Web, TEXTJOIN is the most powerful text combination formula in spreadsheets.

excel
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
ArgumentDescription
delimiterThe separator placed between cells (e.g., " " for space, ", " for comma)
ignore_emptyTRUE skips empty cells (prevents double spaces or dangling commas); FALSE includes them
text1, text2The cells or contiguous range to combine (e.g., A2:B2 or A2:D2)

Example: Combining Address Columns

Suppose columns A through D contain Street, City, State, and PIN code:

excel
=TEXTJOIN(", ", TRUE, A2:D2)

If the State cell is empty, TEXTJOIN ignores it and produces "MG Road, Bengaluru, 560001" without awkward double commas (", ,").


Method 3: Flash Fill (Ctrl + E) — No Formulas Needed

Flash Fill uses predictive AI to detect patterns in your typing and automatically fills the remaining rows without writing formulas.

  1. In cell C2 (next to your two columns), type the desired final result manually (e.g., "Priya Sharma").
  2. Press Enter to move down to cell C3.
  3. Press Ctrl + E on Windows (or go to Data > Flash Fill on the ribbon).
  4. Excel immediately fills all rows in column C matching the pattern.

Flash Fill Is Static

Flash Fill creates static text values. If you later change the First Name in column A from "Priya" to "Priyanka", column C will not update automatically. Use formulas (=A2 & " " & B2) if your dataset is dynamic and subject to ongoing edits.


Handling Special Data Types When Combining Columns

Combining Text with Dates

In Excel, dates are stored internally as numeric serial integers (for instance, September 8, 2026 is stored as 46273). If you combine a customer name with a date using simple concatenation:

excel
="Order by " & A2 & " on " & B2
-- Produces: "Order by Priya on 46273" (Incorrect)

To format the date properly, wrap the date cell in the TEXT() function:

excel
="Order by " & A2 & " on " & TEXT(B2, "dd-mmm-yyyy")
-- Produces: "Order by Priya on 08-Sep-2026" (Clean)

Combining Numbers with Currency or Percentages

Similarly, combining currency numbers requires formatting masks:

excel
=A2 & " - " & TEXT(B2, "$#,##0.00")
-- Produces: "Laptop - $1,250.00"

Common Mistakes When Combining Columns

Never Use 'Merge & Center' to Combine Data

Clicking Home > Merge & Center on cells A2:B2 triggers Excel's classic warning: "Merging cells only keeps the upper-left value and discards other values." If you click OK, the content of column B is permanently erased. Merge & Center is strictly for table titles and visual headers, never for data rows.

1. Missing Spaces Between Words

Writing =A2&B2 results in "PriyaSharma" because Excel does not insert spaces automatically. Always include & " " &.

2. Forgetting to Convert Formulas to Static Values

If you combine columns in Column C and then delete the original Columns A and B, Column C will throw #REF! errors. Before deleting source columns, copy Column C and right-click to choose Paste Special > Values (Alt + E + S + V).


Comparison of Column Combination Methods

Feature / Criteria

Real-World Analyst Use Case: Creating Composite Lookup Keys

In transactional databases, order tables frequently lack single unique primary keys. For example, an order might be identified by Store_ID (102) and Register_ID (4). To perform a lookup against this table with VLOOKUP or XLOOKUP, create a helper column that combines both identifiers:

excel
=A2 & "_" & B2
-- Produces: "102_4"

Now, your lookup formula can search for "102_4" unambiguously, eliminating duplicate collisions.


Advanced Methods: How to Combine Two Columns in Excel for Dynamic Data Models

When working across complex analytical models, combining columns requires strict data validation and defensive error handling:

  1. Handling Nulls vs Empty Strings: In Excel, a cell containing an empty string ("") behaves differently than a truly blank cell (ISBLANK()). When combining columns with delimiters, =A2 & IF(B2<>" ", " - " & B2, "") prevents dangling punctuation when optional secondary fields are unpopulated.
  2. Dynamic Spilled Lookups with Combined Keys: If you need to search against a multi-column key without altering the source table layout, combine columns inside XLOOKUP:
    excel
    =XLOOKUP(A2 & "|" & B2, Table1[Department] & "|" & Table1[Role], Table1[Salary])
    This dynamic in-memory concatenation eliminates the need for physical helper columns in modern Microsoft 365 workbooks.
  3. Automated Audit Checks: Always verify row counts after bulk text-joining operations. Applying conditional formatting to detect unexpected double-delimiters ensures your combined export is immediately ready for database loading.

Explore our complete Excel Tutorials hub and practice dynamic spreadsheet workflows on Topfolio Free Excel Course.

Combining Columns via Power Query for Massive Datasets

When dealing with files containing upwards of 200,000 rows, worksheet formulas can degrade workbook recalculation performance. Modern Excel analysts handle bulk transformations using Power Query (Get & Transform Data):

  1. Select your data range and click Data > From Sheet/Table to open the Power Query Editor.
  2. Hold Ctrl and select both column headers you wish to join in left-to-right order.
  3. Navigate to Transform > Merge Columns or Add Column > Merge Columns (if you want to preserve original fields).
  4. Select your separator (Space, Comma, Custom delimiter like " - " or " | "), name your new merged column, and click OK.
  5. Click Close & Load to output a high-performance structured table back into your workbook. Power Query transformations execute in memory during refresh and require zero worksheet formula overhead.

Checklist for Combining Columns in Production Worksheets

Before exporting your combined dataset to CSV or sending reports to clients, run through this quality audit:

  • Confirm whether downstream recipients use Excel 2016 or older; if so, avoid TEXTJOIN and use the universal & operator.
  • Check if the source columns contain dates or numbers; wrap them in =TEXT(cell, "format") to prevent raw numeric serial values.
  • Freeze combined calculations into static values via Copy > Paste Special > Values (Ctrl + Alt + V, then V) before deleting raw source columns.
  • Verify that no cells display #VALUE! from combining mismatched array ranges.

Level Up Your Excel Skills

Master text functions, data cleaning pipelines, and professional reporting in our free comprehensive Excel course.

Start Free Excel Course

Frequently Asked Questions

How to combine two columns in Excel with a space?

To combine columns with a space, use the ampersand operator: =A2 & " " & B2. The quotation marks with a space ensure the text strings do not run together into a single word.

What is the shortcut to combine two columns in Excel without formulas?

Type the desired combined text into the first row of your target column, press Enter to move to the next row, and press Ctrl + E (Flash Fill). Excel detects the pattern and populates the remaining rows instantly.

Why does Merge & Center erase my second column's data?

The 'Merge & Center' button on the Home tab is a layout tool that merges visual cell boundaries, but it only keeps the upper-left value and permanently deletes all other cell contents. Always use formulas (=A2 & B2) or TEXTJOIN to merge data values.

How do you combine a date column with a text column in Excel?

Wrap the date cell in the TEXT function to prevent Excel from displaying its raw serial number: =A2 & " on " & TEXT(B2, "yyyy-mm-dd").

What is the difference between CONCAT and TEXTJOIN in Excel?

CONCAT joins strings together but requires manual entry of delimiters between each cell. TEXTJOIN automatically places a chosen delimiter (such as a comma or space) between all cells in a range and can ignore empty cells.

Anuj Saini

Written by

Anuj SainiFounder & Lead Instructor

Founder at Topfolio with 6+ years in data & analytics across JPMC, Ultrahuman, and high-growth startups. Sat on hiring panels, reviewed 500+ resumes, and writes practical SQL & data guides.