Why is the format messed up after copying and pasting in Excel?

When copying and pasting after filtering, hidden rows are often brought in, and formatting and column widths are misaligned. This article explains why and gives the order of operations to preserve layout by positioning visible cells and pasting special.

Key points of this article

  • When copying filter results, only visible cells will be brought over. However, if you select an entire row or column or a manually hidden row, you may still bring over the hidden content.
  • When the target table has hidden rows, continuous pasting will write into the invisible rows, causing data misalignment. You should cancel the filtering of the target table before pasting.
  • Press Alt+; in the target area to select only visible cells and then paste, so that the content only falls in visible rows.
  • When the format or column width is wrong, use Paste Special to try "Format", "Column Width" and "Value" respectively, and check only one item at a time to facilitate locating the cause.

I filter out a part of the data in Excel and only want to copy the visible rows to another table. As a result, a bunch of hidden rows appear after pasting, or the fonts, borders, and column widths are all messed up. This type of problem is very common when organizing reports and sending filtering results to colleagues. Many people subconsciously look for the "copy format" setting, but the real reason often lies in the selection and pasting methods.

This article is written for people who often use Excel for screening and summarizing. After reading, you will be able to determine which situation the disorder belongs to, know how to confirm each situation, and operate according to a fixed sequence so that the paste only falls into the visible cells while retaining the original layout.

How to paste after filtering to retain the original format? One sentence conclusion

Direct answer: First press Alt+ in the target area; select only the visible cells, and then paste; when you need to retain the layout, use Paste Special to separately control the format, column width, and value. The table below provides corresponding methods according to your situation.

your situationRecommended practicesreason
I just want to move the filter results to another table as isCopy the filtered area, press Alt+; at the target, and then pastePaste only on visible rows and will not bring in hidden rows
The target table itself has filtered or hidden rowsCancel the filtering of the target table first, and then filter again after the paste is completed.Hidden rows receive pasted content, resulting in misaligned rows
Fonts, borders and background colors need to be preservedSelect "Format" with Paste Special, or paste directlyOnly the format is brought in, and the existing values and formulas of the target are not overwritten.
The column widths of the source table are different, and the text appears as ### after pasting.Check "Column Width" in Paste SpecialBring the source table column width to avoid numbers being squeezed
The data should be separated from the formulas and formats of the original tableUse Paste Special to select "Value"The result is a static number and no longer relies on the source table reference

First determine what kind of problem it is

The symptoms of pasting errors are similar, but the causes and methods are different. Check the table below to confirm before taking action.

symptomsCommon causesHow to confirm
There are extra hidden lines after pastingThe selection contains manually hidden rows, or the entire row or column is selectedCheck whether the row numbers are consecutive after canceling filtering
The data is misplaced, covering the content next to itThere are hidden lines in the target area, paste and write continuouslyThe row number jumps after filtering the target table
The font, background color and border have changed.Paste with the source table format, overwriting the target formatTry to paste the "value" selectively and compare the results.
The column width becomes narrower and ### appears.The column width of the source table did not come with the dataCompare the column widths of the source and target tables
Merge cells are detached or cannot be pastedThe source or target area contains merged cells and the shape of the selection is inconsistentCheck whether the selection is a regular rectangle
The result of the formula is not as expected.Pasted relative references vary with locationClick on the cell to see if the reference address has changed

# item-by-item troubleshooting and repair

  1. First unfilter the source and target tables to check for manually hidden rows. Line numbers are not contiguous, indicating that there are hidden rows. Right-click to unhide them after all selection.

two. When replicating, select only the data area where the filter results are located, not the whole column. Selecting the whole column is easy to bring hidden rows with a large area of white space.

  1. Select the starting cell in the target table, and then press Alt+; to select only visible cells. This step ensures that the paste only falls on the visible line.
  2. Press Ctrl+V to paste. If you only need numeric values, use selective pasting instead, leaving only the numeric part, without formulas and formatting.
  3. Format or column width is wrong, first cancel, and then use selective paste to try "format" and "column width" respectively, one item at a time, it is easy to judge which one is caused.
  4. Check formula references and merge cells after pasting. If you find a problem, undo it with Ctrl+Z and start over in another way.
  5. After confirming that it is correct, the filtering of the target table is resumed to check whether the number of rows is consistent with the source table.

when there are hidden rows in the target table

Don't paste yet. Unfilter the target table and re-filter after pasting is complete. Otherwise, the paste will write hidden rows, which is difficult to find after the data is misplaced and needs to be checked line by line.

when the row height or column width of the source table is different

Check "column width" in selective paste, or first adjust the target column width to match the source table. These two methods only change the display mode, not the data itself.

# how to avoid the next occurrence

-clear the filtered and hidden rows in the target area before replication and get into the habit of having much less problems. -when sorting out the results, first paste the required data into a clean transfer table, and then organize it into the formal table to avoid operating directly on the original table. -when you need to keep the layout, don't Ctrl+V directly every time, but use selective paste step by step, bringing in only one type of content at each step. -use as few merge cells as possible for areas that need to be filtered and copied frequently. After pasting, spot check with several lines of data, compare the number of lines, head and tail data and total, make sure it is correct and then save it.

# frequently asked questions (FAQ)

1. When copying filter results, why do you sometimes copy hidden rows together?

If you select an entire row or column, or if you hide hidden rows manually instead of filtering them, Excel may take them with you. Selecting only the data area in which the filter results are located can usually be avoided.

2. Press Alt+; and there is no response, what should I do?

First confirm that the input method is in English and press the semicolon key. If it is still invalid, you can manually select the target area, but first unfilter the target table to avoid pasting into hidden rows.

3. I just want numerical values, not formulas and formats. What do I do?

Only values are retained in selective pasting. Pasted is a static number that is not brought into the formula reference of the source table, nor does it change the format of the target table.

4. What is the reason for the change in format after pasting into another file?

The default font, theme color, and column width settings for the two files may be different. You can paste as "value" and then apply formatting to the target area, or you can just paste the format individually.

5. If you want to export the form to PDF or Word to someone else, will the format change again?

The layout at the time of export depends on the current page, column width, and print area. Check these items before export and read them completely in the reader after export. If you still need to change the text, you can use the PDF editor to adjust it.

# Summary

Paste messy after filtering, mostly with hidden rows in the selection, or the format and column width come along with the source table. First unhide, use Alt+; to select only visible cells, and then use selective paste to control the format and column width, you can paste into the visible cell how to retain the original format.

Open OmniDoc and process your form file

Updated 2026-11-11