Copy and Paste Merged Cells Without Blank Rows in Google Sheets

If you merge cells, only the top-left cell in the merged range retains the value — the rest become blank. This behavior stays the same when you copy and paste those cells. So how do you copy-paste merged cells without blank rows in Google Sheets?

Without copy-paste commands, transferring data through a computer interface wouldn’t be as easy as we think. On Windows, you can use Ctrl+C to copy and Ctrl+V to paste. On a Mac, just replace Ctrl with the Command key.

In Google Sheets, we can use these commands to get things done ASAP. I’m not downplaying the importance of the Cut command either — it’s just as useful.

Besides the basic copy-paste options, there’s also a special one in Google Sheets: Paste special. I’ll come back to that in a second.

There’s no built-in option in Google Sheets to copy-paste merged cells without bringing along blank rows or spaces. If you simply copy and paste, the values appear as is — with all the blanks included.

If you use Paste special (Ctrl+Shift+V), it unmerges the cells and pastes only the values — but the blanks caused by merging remain.

Pasting merged cells using Paste Special into another column in Google Sheets

What about pasting those values into another application like Notepad? Check the screenshots below.

Merged cell values pasted into Notepad showing extra spaces
  • Extra blank rows in the pasted column (column B) in Google Sheets (Screenshot #1).
  • Extra spaces when pasted into Notepad (Screenshot #2).

To copy-paste merged cells without blank rows or spaces, try the following approaches.

How to Copy and Paste Merged Cells Without Blank Rows in Sheets

If your goal is just to copy values from a column of merged cells to another column without blank rows in between, use the FILTER formula.

Example (Scenario #1 – Screenshot #1): In cell B1, use this formula:

=FILTER(A1:A, A1:A<>"")

This filters out the blank cells — in other words, it extracts only the visible values from column A, ignoring the blanks caused by row merging.

Alternatively, you can use the QUERY function:

=QUERY(A1:A, "SELECT A WHERE A <> ''")

How to Copy to Notepad Without Extra Spaces (Scenario #2)

If you’re pasting the merged values into Notepad or another plain text editor, you don’t need any extra steps. Just use the output of the FILTER or QUERY formula and copy it directly — no spaces will be carried over.

Merged Cells to Unmerged – Multiple Columns

What if your merged cells span multiple columns?

You can still use the FILTER formula like this:

=LET(data, VSTACK(A1:A, B1:B), FILTER(data, data<>""))

This combines the values from columns A and B (including any merged rows) into a single column in, say, column D.

Want two separate columns instead?

Use the original FILTER formula in cell D1, then drag it to the right to apply it to both columns A and B:

=FILTER(A1:A, A1:A<>"")
Two-column merged values converted to two-column unmerged values in Google Sheets

Alternatively, you can use this formula, which does the job in one go:

=BYCOL(A1:B, LAMBDA(col, FILTER(col, col<>"")))

This will ‘paste’ the values from each column into adjacent unmerged columns without blank rows — exactly what you want.

Additional Tip

If you merge cells across a row, like A1:Z1, use this formula to get the value only:

=FILTER(A1:Z1, A1:Z1<>"")

Note: The results from formulas like FILTER, QUERY, or BYCOL are dynamic. If you change the original (source) data, the formula output will update automatically.

If you want to keep a static version of the result, copy the formula output and paste it as values (Ctrl+Shift+V on Windows or Command+Shift+V on Mac).

That’s all about how to copy-paste merged cells without blank rows in Google Sheets. Thanks for reading — enjoy!

Resources

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Count Consecutive Workday Absences in Google Sheets

This tutorial offers a powerful formula-based solution to count consecutive workday absences in Google...

Top N Products and Top N Sellers in Google Sheets (Top N of Top N)

If you’ve ever wanted to compare which sellers contribute the most to your top-selling...

Use XLOOKUP in a Structured Table in Google Sheets (Single and Multiple Conditions)

This tutorial is for users who want to apply XLOOKUP inside a structured table...

Reset SCAN by Another Column in Google Sheets and Excel

Resetting SCAN function results based on values in another column is a topic of...

More like this

Count Consecutive Workday Absences in Google Sheets

This tutorial offers a powerful formula-based solution to count consecutive workday absences in Google...

Top N Products and Top N Sellers in Google Sheets (Top N of Top N)

If you’ve ever wanted to compare which sellers contribute the most to your top-selling...

Use XLOOKUP in a Structured Table in Google Sheets (Single and Multiple Conditions)

This tutorial is for users who want to apply XLOOKUP inside a structured table...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.