Function Problems

How to Move Values into Blank Excel Cells Without Overwriting Data

Kushani NimanthikaKushani Nimanthika Nov 2, 2026 868 views

Question details

The user needs to consolidate data spread across two columns by filling irregular blank cells in the first column with values from the second column, without overwriting any existing data.

How to Move Values into Blank Excel Cells Without Overwriting Data
Product
Spreadsheet
Device & OS
not provided
Scenario
Cleaning up and organizing scattered data, typically occurring after converting documents from Word to Excel, resulting in fragmented columns.
Observed behavior
Data is unevenly spread across columns A and B with irregular gaps. The objective is to merge column B's values into column A's blank cells while preserving column A's existing text.
Before you start

Ensure your columns are properly aligned and identify exactly which column contains your primary data and which contains the secondary data you want to move into the blanks.

Solution 1Recommended

Use an IF Formula with a Helper Column

This method uses a straightforward conditional formula to check for empty cells, dynamically pulling data from the adjacent column to create a clean, merged dataset.

Using a helper column is the safest method to consolidate your data because it preserves your original columns while building a perfect merged list. Once you are satisfied with the result, you can paste it back over the original data.

1
Create a helper column

Click on cell C1, or the top cell of any empty column adjacent to your scattered data.

2
Enter the IF formula

Type the formula =IF(A1<>"",A1,B1) or =IF(ISBLANK(A1),B1,A1) and press Enter. This tells the spreadsheet to use column A's value if it exists, otherwise, grab the value from column B.

3
Apply the formula to all rows

Select cell C1, click and hold the small square (fill handle) in the bottom-right corner of the cell, and drag it down to the bottom of your dataset to apply the formula to all rows.

4
Paste as values

Select your entire helper column (Column C) and press Ctrl+C to copy. Right-click cell A1, choose 'Paste Special', select 'Values', and click OK to overwrite the scattered data with your clean, merged list.

Use an IF Formula with a Helper Column
Data Preservation: By using a helper column, your original data remains completely untouched until you explicitly choose to overwrite it with the finalized values.
Efficient Data Cleanup

Clean Up Spreadsheet Data Easily with WPS Office

WPS Spreadsheet provides powerful data manipulation tools, fully supporting advanced logical formulas and comprehensive Paste Special features to help you consolidate scattered data effortlessly.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open the worksheet containing your fragmented data.
  2. 2. Apply the helper formula: In a blank adjacent column, type =IF(ISBLANK(A1),B1,A1) and drag the fill handle down to apply it to your entire list.
  3. 3. Finalize your merged data: Copy the newly populated column, right-click your original destination, and choose 'Paste as Values' to complete the consolidation.
Fully compatible with Microsoft Excel formulas, including IF and ISBLANK.Supports advanced clipboard features like 'Skip blanks' for quick data merging.Lightweight and highly responsive, even when handling large converted datasets.Completely free to download and use for all your daily data entry needs.
microsoft office alternative - wps office

Frequently Asked Questions

What happens if both column A and column B have data in the same row?

When using the IF formula method (=IF(A1<>"",A1,B1)), the logic prioritizes the existing value in column A. The data in column B for that specific row will simply be ignored, ensuring your primary data is never overwritten.

Why did a comma appear at the end of my text strings after merging?

This commonly occurs after converting a Word document to Excel, where invisible formatting or trailing punctuation gets carried over into seemingly blank cells. You can clean this up by using the Find and Replace tool (Ctrl+H) to search for stray commas and replace them with nothing, or by wrapping your original formula in a cleaning function.

Can I merge data across more than two scattered columns?

Yes. If your data is spread across columns A, B, and C, you can handle them sequentially. Use the 'Paste Special > Skip blanks' method to merge B into A, and then repeat the exact same process to merge C into the newly consolidated column A.

Will the Paste Special 'Skip blanks' method overwrite my formatting?

By default, pasting will carry over the formatting of the copied cells. To prevent this, you can select both 'Values' and 'Skip blanks' simultaneously in the Paste Special dialog box, which ensures only the text is transferred into the empty gaps.