How to Combine Two Excel Columns Without Changing Value Order
Question details
The user needs to combine two non-overlapping columns in a spreadsheet by filling the empty cells in the first column with corresponding values from the second column, keeping the original row order intact.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating data imported from a CSV file where the dataset is scattered across two non-overlapping columns and needs to be merged into one.
- Observed behavior
- The goal state is a single, consolidated column where all empty cells in the primary column are filled with the corresponding row values from the secondary column, perfectly preserving the original row sequence.
Ensure that your two columns are truly non-overlapping (no single row has data in both columns) to prevent data loss. It is also recommended to save a copy of your CSV file as an Excel Workbook (.xlsx) to preserve formulas during the merge process.
Use an IF Formula to Combine Columns
This dynamic and repeatable method uses a helper column to check for blank cells and automatically pull data from the correct column.
Using a helper column is the safest and most reliable way to combine data. It leaves your original columns untouched while generating the perfect merged result, which you can then copy and paste as static values.
Select cell C1 (or any empty column directly next to your data).
Type the formula =IF(ISBLANK(A1),B1,A1) into the cell. This instructs the program to return the value from column B if column A is empty; otherwise, it keeps the value from column A.
Press Enter, then click and drag the small square at the bottom-right corner of cell C1 all the way down to apply this formula to your entire dataset.
Select the newly generated column, copy it (Ctrl+C), right-click the same area, and choose 'Paste Special' > 'Values'. You can now safely delete the original columns.

Shift Cells using Go To Special (One-Time Operation)
A quick manual method that physically deletes blank cells and shifts data into the correct column without using formulas.
Automate with Power Query
Ideal for handling large datasets or automating the process for CSV files that you import repeatedly.
Combine Columns Seamlessly in WPS Spreadsheet
WPS Spreadsheet provides powerful built-in functions, Go To Special capabilities, and data manipulation tools to help you clean and combine CSV columns effortlessly.
- 1. Open your CSV file: Launch WPS Spreadsheet and open the CSV or Excel file containing your fragmented data.
- 2. Insert the Helper Formula: In an adjacent blank column, enter =IF(ISBLANK(A1),B1,A1) to automatically fetch data from the correct cell.
- 3. Paste as Values: Drag the fill handle to complete the column, then copy and paste the results as values to safely remove the original columns.

Frequently Asked Questions
Can I concatenate text from two columns instead of replacing blanks?
Yes. If your goal is to merge text side-by-side rather than filling in missing data, you can use the CONCATENATE function or the ampersand (&) operator. For example, typing =A1&" "&B1 will join the values of both columns separated by a space.
What happens if both columns have data in the same row when using the IF formula?
The formula =IF(ISBLANK(A1),B1,A1) strictly checks the first column (A). If cell A1 contains any data, the formula keeps the value of A1 and completely ignores B1, even if B1 also contains data.
Why do I get a #REF! error when I delete the original columns?
This error occurs because the new formula column relies on the data in the original columns. To fix this, you must highlight your new column, copy it, and use 'Paste Special' > 'Values' to convert the formulas into static text before you delete the original columns.




