Function Problems

WPS Spreadsheet: Copy Values from Another Sheet with Override Logic

Natalie TaylorNatalie Taylor Nov 12, 2026 868 views

Question details

The user needs to populate Spreadsheet2 column C from Spreadsheet1 while using an override value whenever one exists.

Product
WPS Spreadsheet
Device & OS
not provided
Scenario
Spreadsheet2 column C should retrieve the corresponding value from Spreadsheet1 column I, unless Spreadsheet1 column J contains an override.
Observed behavior
The desired result is for each row to display the column I value when column J is blank and the column J value when it is not blank.
Before you start

Confirm that the source sheet is named Spreadsheet1 and the destination sheet is named Spreadsheet2. Check that the rows in both sheets are aligned so row 2 in one sheet corresponds to row 2 in the other.

Solution 1Recommended

Use an IF formula to prioritize the override column

Use this solution when column I is the default source and column J should replace it whenever an override value is present.

The formula checks whether the corresponding cell in Spreadsheet1 column J is blank. If it is blank, the formula returns the value from column I; otherwise, it returns the override from column J.

1
Select the destination cell

Open Spreadsheet2 and select cell C2, where the first result should appear.

2
Enter the formula

Type =IF('Spreadsheet1'!J2="",'Spreadsheet1'!I2,'Spreadsheet1'!J2) into the formula bar or directly into cell C2, then press Enter.

3
Fill the formula down

Select C2 and drag the fill handle down column C, or copy C2 and paste it into the remaining rows. WPS Spreadsheet will adjust the row references automatically.

4
Verify the results

Check a row where Spreadsheet1 column J is blank and a row where it contains a value. The first should show column I, while the second should show the column J override.

Result: The formula returns the default value from Spreadsheet1 column I only when the matching cell in column J is blank.
WPS Spreadsheet formula tools

Apply Cross-Sheet Default and Override Values in WPS Spreadsheet

WPS Spreadsheet lets you build the IF formula, reference cells on another worksheet, and fill the result down an entire column to apply default and override logic efficiently.

  1. 1. Open the workbook: Launch WPS Spreadsheet and open the workbook containing Spreadsheet1 and Spreadsheet2.
  2. 2. Enter the cross-sheet formula: In Spreadsheet2 cell C2, enter =IF('Spreadsheet1'!J2="",'Spreadsheet1'!I2,'Spreadsheet1'!J2) and press Enter.
  3. 3. Copy the formula through column C: Use the fill handle or copy and paste C2 into the required cells below it.
  4. 4. Review override results: Compare rows with blank and nonblank values in Spreadsheet1 column J to confirm the correct source value is displayed.
Use IF formulas to select a default value or an override automaticallyReference values across worksheets with clear, editable formulasFill formulas down quickly with automatic row adjustmentOpen and save Microsoft Excel XLS and XLSX files with compatible formattingWork in a familiar spreadsheet interface with lightweight tools
microsoft office alternative - wps office

Frequently Asked Questions

What formula copies column I unless column J has an override?

In Spreadsheet2 cell C2, enter =IF('Spreadsheet1'!J2="",'Spreadsheet1'!I2,'Spreadsheet1'!J2). It returns Spreadsheet1 column I when J2 is blank and returns J2 when it contains a value.

How do I apply the formula to all rows in Spreadsheet2?

After entering the formula in C2, select the cell and drag its fill handle down column C. You can also copy C2 and paste it into the remaining destination cells.

Will the formula use the override when column J contains zero?

Yes. A numeric zero is not an empty cell, so the formula returns the zero from column J as the override. The default from column I is used only when J is blank.

What should I do if my worksheet names contain spaces?

Put the full worksheet name in single quotation marks, such as ='Sales Data'!I2. Update both worksheet references in the IF formula to match the exact sheet names.