Expert Guide: Merging Columns in Excel Safely

how to merge columns in excel - A person sitting at a desk working on a laptop with an Excel spreadsheet visible

Merging columns in Excel sounds simple until you actually try it and realize you’re about to lose data. That’s the real talk nobody mentions. Most people hit the merge button without understanding what happens next—and then panic when half their spreadsheet vanishes. This guide walks you through how to merge columns in Excel the right way, with safeguards built in so you don’t torch your work.

Whether you’re consolidating headers, creating a cleaner layout, or just trying to make your spreadsheet look less like a ransom note, merging columns is a legitimate tool. But it’s also one of the easiest ways to accidentally delete information if you don’t know what you’re doing. We’ll cover the safe methods, the pitfalls, and the alternatives that often work better than merging ever could.

What Merging Columns Actually Does (And What You Lose)

Here’s the thing that trips people up: when you merge cells in Excel, the program keeps the content from the top-left cell and deletes everything else. That’s not a feature—that’s a warning label you need to read before you click.

Think of it like this: you’ve got data in columns A, B, and C. You select all three and hit merge. Excel looks at the leftmost cell, keeps whatever’s in there, and throws away B and C. If your data is spread across multiple cells, it’s gone. Forever. (Well, unless you undo immediately, but we’re not counting on that.)

The merge function in Excel is really designed for one thing: combining cells to create a single, unified cell that spans multiple columns. It’s not designed for combining data from multiple cells. That’s a critical distinction that saves you from losing work.

When you merge cells:

  • Excel keeps only the content from the top-left cell
  • All other content in the merged range is permanently deleted
  • The merged cell behaves differently in sorting and filtering operations
  • Formulas referencing merged cells can behave unpredictably
  • You can’t easily unmerge without potential formatting loss

This is why the spreadsheet experts at Family Handyman and similar technical resources always recommend backing up before you merge anything. Not because merging is dangerous—it’s not—but because the consequences of not knowing what you’re doing are immediate and permanent.

The Safe Way to Merge Columns in Excel

The safest approach is always: backup first, understand what you’re merging, then execute. Let’s walk through the actual steps.

Step 1: Save Your File

Seriously. Save it. If you haven’t saved in the last five minutes, save now. This is your insurance policy. If something goes sideways, you can close without saving and go back to the last checkpoint.

Step 2: Select Your Columns

Click on the column header (the letter at the top) of the first column you want to merge. Hold Shift and click the last column header. This selects the entire columns. If you only want to merge specific cells within columns, click the first cell and drag to select the range instead.

Step 3: Open the Merge Menu

Go to the Home tab on the ribbon. Look for the Merge & Center button (it usually has a small dropdown arrow). Click the arrow to see your options:

  • Merge & Center – Merges cells and centers content
  • Merge Across – Merges cells but keeps content left-aligned
  • Merge Cells – Merges without any alignment change
  • Unmerge Cells – Splits previously merged cells

Step 4: Choose Your Merge Style

For most situations, Merge & Center is fine if you’re just dealing with headers. If you’re merging cells with actual data, use Merge Across to keep the formatting consistent with the rest of your spreadsheet.

Step 5: Review and Undo if Needed

Look at what happened. If you just lost data you needed, hit Ctrl+Z immediately. No judgment—this is exactly why we save first.

Here’s the thing: this method works fine for headers and labels where you expect only one cell to have content anyway. But if you’re trying to combine data from multiple cells, this approach will fail you.

How to Merge Without Losing Your Data

If you actually need to combine data from multiple cells—like merging a first name and last name, or combining text from adjacent cells—don’t use the merge function at all. Use a formula instead.

This is the workaround that saves careers. Instead of merging, you create a new column with a formula that pulls data from the columns you want to combine. Then you can delete the original columns if you want. Your data stays intact the whole time.

Using CONCATENATE or the Ampersand (&) Method

Let’s say you have first names in column A and last names in column B. You want to combine them in column C.

Click on cell C1 and type:

=A1&" "&B1

The ampersand (&) joins text together. The ” ” part adds a space between the first and last name. Press Enter. Now copy this formula down for all your rows. You’ve effectively merged the data without losing anything.

If you prefer the CONCATENATE function (older Excel versions), you’d type:

=CONCATENATE(A1," ",B1)

Both work identically. The ampersand method is just faster to type.

Using TEXTJOIN (Excel 2016+)

For more complex combinations, TEXTJOIN is your friend:

=TEXTJOIN(" ",TRUE,A1:B1)

This joins all cells in the range A1:B1 with a space between them. The TRUE tells Excel to ignore blank cells. This is way more flexible than CONCATENATE and handles edge cases better.

The beauty of this approach is that your original data stays exactly where it is. You can reference it, sort it, filter it, do whatever you need. And if something goes wrong, your source data is still there. This is how the pros actually combine data in Excel.

For more advanced column manipulation, check out our guide on how to move a column in Excel, which covers reorganizing your data without losing anything in the process.

When to Skip Merging and Use Alternatives Instead

Merging columns looks clean, but it creates problems downstream. Sorted data gets weird. Filters behave unpredictably. Formulas referencing merged cells sometimes work and sometimes don’t. It’s like building a house on a foundation that might shift.

Here are situations where you should not merge, and what to do instead:

Situation 1: You Need a Spanning Header

You want one header that spans columns A through C. Don’t merge. Instead, put your header in A1, then hide columns B and C if you don’t need them visible. Or use the Center Across Selection formatting option (found in Format Cells → Alignment) which centers text across multiple cells without actually merging them. This gives you the visual effect of merging without the data-loss risk.

Situation 2: You’re Combining Data from Multiple Cells

Use formulas (CONCATENATE, ampersand, or TEXTJOIN) as described above. Your data stays safe, and you can always adjust the formula later.

Situation 3: You’re Creating a Report Layout

If you’re building a report with sections and subsections, use indentation and formatting instead of merging. Indent text, use bold, change background colors, adjust font sizes. These techniques create visual hierarchy without the structural problems that merging introduces.

Situation 4: You Need to Sort or Filter Data

Never merge cells in data ranges you plan to sort or filter. Merged cells break both operations. If you’ve already merged, unmerge first, then sort or filter.

The technical team at This Old House (and their spreadsheet equivalent) would tell you the same thing: use the right tool for the job. Merging is a formatting tool, not a data tool. If you’re working with data, format it, don’t merge it.

If you need to work with separated data, our guide on how to separate names in Excel shows you how to split combined data back apart—which is often easier than trying to merge correctly in the first place.

Formatting Tips After You Merge

Once you’ve merged your cells (and you’re sure you did it right), here’s how to make them look professional:

Alignment

Merged cells default to top-left alignment. Usually you want to center them. Right-click the merged cell, choose Format Cells, go to the Alignment tab, and set both horizontal and vertical alignment to Center. This makes headers look intentional instead of accidental.

Borders

Merged cells need clear borders so people know where they start and end. Go to Format CellsBorder tab and add borders around your merged cell. A thick border on the bottom of a header merged cell signals “this is a header” immediately.

Background Color

A subtle background color (light gray or light blue) makes merged header cells stand out without being obnoxious. Right-click → Format CellsFill tab. Pick a color. Done.

Font Formatting

Make merged header cells bold and slightly larger than regular text. Select the merged cell, then increase the font size by 1-2 points and hit the Bold button. This creates visual hierarchy without needing to merge anything else.

The key principle: merged cells should look intentional. If someone glances at your spreadsheet and thinks “why are those cells merged?”, you’ve merged for the wrong reason.

How to Unmerge Columns (And Fix What Went Wrong)

Sometimes you merge and then realize it was a mistake. Or you inherited a spreadsheet with merged cells and need to fix it. Here’s how to unmerge without losing what little data is left:

Step 1: Select the Merged Cell

Click on any cell within the merged range. You don’t need to select the entire range—one cell is enough.

Step 2: Open the Merge Menu

Go to Home tab → Merge & Center dropdown → Unmerge Cells. Click it.

Step 3: Restore Your Data

If you lost data when you originally merged, you’ll need to re-enter it or restore it from your backup. This is why backing up before merging matters.

If you unmerged a cell that had content, that content stays in the top-left cell of the unmerged range. Everything else comes back empty. This is expected behavior.

The Nuclear Option: Undo Everything

If unmerging causes more problems, hit Ctrl+Z to undo. Keep undoing until you’re back to before you started merging. Then try a different approach (like using formulas instead).

Unmerging is always reversible as long as you haven’t saved and closed the file. So experiment. Try unmerging. If it looks wrong, undo. Keep iterating until you get it right.

Common Merge Mistakes and How to Avoid Them

Mistake 1: Merging Cells with Different Data

You select three cells with three different values and merge them. Excel keeps the first one and deletes the other two. You’ve just lost information. Solution: Always check what data is in each cell before merging. If there’s data you need to keep, use formulas to combine it first.

Mistake 2: Merging Then Sorting

Merged cells break sorting. Your data gets scrambled. Solution: Unmerge before you sort anything. Or better yet, don’t merge data cells in the first place—only merge headers and labels that aren’t part of your data range.

Mistake 3: Merging Cells in a Filtered Range

Filters behave strangely with merged cells. Sometimes rows don’t hide properly. Solution: Same as above—unmerge before filtering.

Mistake 4: Merging Cells That Contain Formulas

If you merge a cell with a formula and a cell with a value, the formula disappears. Solution: Check for formulas before merging. If you need to preserve calculations, use a formula in a separate cell instead.

Mistake 5: Not Saving Before Merging

You merge cells, something goes wrong, and you can’t undo because you’ve already saved. Solution: Save before you merge. Every time. No exceptions.

The most common mistake isn’t a technical error—it’s not understanding that merging is a formatting operation, not a data operation. Merging changes how cells look, not what data they contain. If you need to change what data you have, use formulas. If you need to change how it looks, merge.

According to best practices from Bob Vila (and applied to spreadsheets), the right tool for the right job always beats trying to force a tool to do something it wasn’t designed for. Merging columns is designed for layout. If you’re trying to combine data, use a different approach.

Pro Tip: If you’re working in a shared spreadsheet or a file that other people will edit, avoid merging altogether. Merged cells confuse other users and create compatibility issues across different versions of Excel and Google Sheets. Keep your spreadsheets merge-free and everyone stays happy.

For additional column-related tasks, check out our guide on how to remove blank rows in Excel, which covers cleaning up data before you do any formatting.

Frequently Asked Questions

Can I merge columns without losing data?

– Not with the merge function itself. The merge function deletes all but the top-left cell’s content. To combine data from multiple columns without losing anything, use formulas like =A1&” “&B1 or =TEXTJOIN() instead. This creates a new column with combined data while keeping your original columns intact.

What’s the difference between merging cells and merging columns?

– Merging cells combines specific cells in a range (like A1:C1). Merging columns combines entire columns (A, B, C). The process is the same, but merging entire columns is rarely necessary and creates more problems than it solves. Usually you only want to merge specific cells in a header row.

Why does my sorted data look wrong after I unmerge?

– Merged cells break sorting. When you unmerge, the data might not be in the order you expect because the sort operation didn’t work correctly while cells were merged. Solution: unmerge first, then sort. Or sort first, then merge only the cells you want to merge (usually just headers).

Can I merge cells in Google Sheets the same way?

– Yes, mostly. Google Sheets has a merge function in the Format menu that works similarly. However, Google Sheets is even more limited with merged cells—they cause more problems with sorting and filtering. The recommendation is the same: avoid merging data, use formulas instead.

What happens if I merge cells that contain formulas?

– Excel keeps the formula from the top-left cell and deletes formulas in the other cells. If you’re merging cells with calculations, create a new cell with a formula that references the data you need instead of merging.

Is there a way to center text across columns without merging?

– Yes. Right-click your cells → Format Cells → Alignment tab → find “Center Across Selection” option. This centers text visually across multiple columns without actually merging them. It’s the professional way to create spanning headers without the data problems that merging causes.

How do I unmerge multiple cells at once?

– Select all the merged cells you want to unmerge (click one, hold Ctrl, click others), then go to Home → Merge & Center dropdown → Unmerge Cells. All selected merged cells will unmerge at once.

Can I merge columns in a pivot table?

– No. Pivot tables don’t support merged cells. If you need to format a pivot table with spanning headers, create a separate header row above the pivot table and merge cells there, keeping the pivot table itself unmerged.

Scroll to Top