
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)
| A | B | C | D |
|---|---|---|---|
| Apple | Juice | 250ml | |
| Kim | Minsoo | Sales | |
| 2025-11-02 | 13:45 | KST |
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
- Type one or two examples in the results column.
- 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
| Issue | Cause | Solution |
|---|---|---|
| Double spaces | Combining cells that include blanks | TEXTJOIN(" ", TRUE, …) or wrap the result in TRIM() |
| Leading/trailing spaces | Extra spaces in the source data | TRIM(CLEAN(SUBSTITUTE(cell,CHAR(160)," "))) |
| Formatting is lost | Text concatenation | Set the format with TEXT() before combining |
| No automatic updates | Flash Fill was used | Use a formula or Power Query |
| #NAME? error | Unsupported function | Alternative: &/CONCAT/Power Query |
Official external documentation: Microsoft: TEXTJOIN · Microsoft: CONCAT · Microsoft: TOCOL