How to Move Values into Blank Excel Cells Without Overwriting Data
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.

- 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.
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.
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.
Click on cell C1, or the top cell of any empty column adjacent to your scattered data.
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.
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.
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 the Paste Special (Skip Blanks) Feature
A quick, built-in feature that ignores blank cells when pasting, allowing you to merge two columns directly without relying on formulas.
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. Open WPS Spreadsheet: Launch WPS Office and open the worksheet containing your fragmented data.
- 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. Finalize your merged data: Copy the newly populated column, right-click your original destination, and choose 'Paste as Values' to complete the consolidation.

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.




