Data Import & Export

How to Combine Two Excel Columns Without Changing Value Order

Steven ParkerSteven Parker Nov 3, 2026 869 views

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.

How to Combine Two Excel Columns Without Changing Value Order
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.
Before you start

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.

Solution 1Recommended

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.

1
Set up the Helper Column

Select cell C1 (or any empty column directly next to your data).

2
Enter the IF and ISBLANK Formula

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.

3
Fill the Formula Down

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.

4
Convert to Static Values

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.

Use an IF Formula to Combine Columns
Formula Customization: If your primary column contains spaces instead of true blanks, you can modify the formula to =IF(TRIM(A1)="",B1,A1) for better accuracy.
Efficient Data Management

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. 1. Open your CSV file: Launch WPS Spreadsheet and open the CSV or Excel file containing your fragmented data.
  2. 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. 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.
Easily process complex CSV data with advanced formula support.Fully compatible with Microsoft Excel formats (.xlsx, .csv, .xls).Familiar spreadsheet interface with zero learning curve.Free to use with a lightweight installation.
microsoft office alternative - wps office

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.