How to Combine Multiple Columns into One Column in Excel (Horizontal Merge, Vertical Stack, Modern Functions, and Power Query)

How to Combine Multiple Columns into One Column in Excel: Horizontal Merging and Vertical Stacking

When you need to combine multiple columns into one column, there are two goals: (1) horizontal merging, which combines values from the same row into one cell, and (2) vertical stacking, which gathers multiple columns vertically into one column (a list). This article covers how to combine multiple columns into one column in Excel, from 10-second formulas to Power Query.

Quick Fix

Horizontal merge (multiple cells in one row → one cell)

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

Vertical stack (multiple columns → one column, Microsoft 365)

=TOCOL(A2:D100, 1)

How Horizontal Merging Works: TEXTJOIN vs. CONCAT vs. &

  • &: Simple, but inconvenient for ranges and offers limited control over blank cells
  • CONCAT: Can combine ranges, but requires you to handle delimiters manually
  • TEXTJOIN: Controls delimiters and whether to ignore blank cells with arguments, making it ideal for combining multiple columns

Learn more: TEXTJOIN Guide · CONCAT vs. TEXTJOIN

Practical Examples (Ready to Copy)

ABCD
AppleJuice250ml
KimMinsooSales
2025-11-0213:45KST

Combine A:D with One Space (Ignore Blank Cells)

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

Preserve Number and Date Formats

=TEXTJOIN(" ", TRUE, TEXT(A2, "yyyy-mm-dd"), TEXT(B2, "hh:mm"), C2, D2)

Process Each Row at Once (Dynamic Array)

=BYROW(A2:D10, LAMBDA(r, TEXTJOIN(" ", TRUE, r)))

For cleaning input values, see the TRIM and CLEAN Guide.

Vertical Stacking (Multiple Columns → One Column)

Microsoft 365: TOCOL

=TOCOL(A2:D100, 1)

It instantly stacks multiple columns into one column while ignoring blank cells. For details, see the TOCOL Function Guide.

Earlier Versions: INDEX+SEQUENCE

=INDEX(A2:D100,
       MOD(SEQUENCE(ROWS(A2:A100)*COLUMNS(A2:D100))-1, ROWS(A2:A100)) + 1,
       INT((SEQUENCE(ROWS(A2:A100)*COLUMNS(A2:D100))-1)/ROWS(A2:A100)) + 1)

Methods Without Formulas

Flash Fill

  1. Type one or two examples in the results column.
  2. Select Data > Flash Fill or press Ctrl+E.

Power Query

Merge Columns: Combines multiple columns into one text value with a delimiter. Learn more

Unpivot Columns: Normalizes multiple columns vertically into one column.

Checklist and Notes

  • Horizontal merge → TEXTJOIN(" ", TRUE, range)
  • Vertical stack → Microsoft 365: TOCOL(range,1) / earlier versions: Power Query Unpivot
  • Format numbers and dates with TEXT()
  • Clean hidden spaces and nonbreaking spaces with TRIM/CLEAN/SUBSTITUTE(,CHAR(160)," ")

Troubleshooting

IssueCauseSolution
Double spacesCombining cells that include blanksTEXTJOIN(" ", TRUE, …) or wrap the result in TRIM()
Leading/trailing spacesExtra spaces in the source dataTRIM(CLEAN(SUBSTITUTE(cell,CHAR(160)," ")))
Formatting is lostText concatenationSet the format with TEXT() before combining
No automatic updatesFlash Fill was usedUse a formula or Power Query
#NAME? errorUnsupported functionAlternative: &/CONCAT/Power Query

Official external documentation: Microsoft: TEXTJOIN · Microsoft: CONCAT · Microsoft: TOCOL

Leave a Reply

Your email address will not be published. Required fields are marked *