Function Problems

How to Create a Conditional Formula Based on Text in Another Sheet in WPS Office Spreadsheets

Emma BrownEmma Brown Nov 13, 2026 869 views

Question details

The user needs a formula in WPS Office Spreadsheets that returns a value from Sheet2 only when a specified text value appears in another cell, and returns a blank otherwise.

How to Create a Conditional Formula Based on Text in Another Sheet in WPS Office Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Pulling data from another sheet based on a text condition in a referenced cell.
Observed behavior
The formula should conditionally display the corresponding Sheet2 value or remain blank when the text condition is not met.
Before you start

Confirm that the source sheet and the target cell exist, and note the exact cell references you want to compare and return.

Solution 1Recommended

Create an IF Formula That Returns a Value from Another Sheet When Text Matches

Use this method when you need a simple, non-case-sensitive text match across sheets and want a blank result when the condition is false.

This formula checks whether Sheet2!A1 equals the specified text. If it does, WPS Office Spreadsheets returns the value from Sheet2!B1; if it does not, the formula returns an empty string, leaving the cell visually blank.

1
Select the target cell in Sheet1

Click the cell where you want the conditional result to appear, such as Sheet1!B2.

2
Enter the IF formula

Type =IF(Sheet2!A1="some text",Sheet2!B1,"") into the formula bar and replace some text with the exact text condition you need.

3
Press Enter to apply

Press Enter to calculate the formula. The cell now shows the corresponding Sheet2 value when the condition is met, otherwise it remains blank.

Create an IF Formula That Returns a Value from Another Sheet When Text Matches
Formula applied: If the condition text is stored in a cell, you can reference that cell instead, for example =IF(Sheet2!A1=Sheet1!A1,Sheet2!B1,"").

Use WPS Office Spreadsheets to Build Cross-Sheet Conditional Formulas

Create IF and EXACT formulas in WPS Office Spreadsheets to return values from another sheet only when your text condition is met, with an empty-cell result when the condition fails.

  1. 1. Open your workbook in WPS Office Spreadsheets: Launch WPS Office and open the workbook containing Sheet1 and Sheet2.
  2. 2. Select the target cell: Click the cell where you want the returned value to appear, such as Sheet1!B2.
  3. 3. Enter a cross-sheet IF formula: Type =IF(Sheet2!A1="some text",Sheet2!B1,"") in the formula bar, replacing the text and references with your own.
  4. 4. Press Enter and review the result: Press Enter to calculate the formula and verify that the correct value appears only when the specified text condition is true.
Use familiar Excel-style formulas such as IF and EXACT in WPS Office SpreadsheetsReturn values across sheets while keeping blank results for unmatched text conditionsWork with Microsoft Excel .xlsx files and maintain formula compatibilityFree, lightweight Office suite with a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

How do I return a blank instead of 0 when the text does not match?

Use an empty string as the IF false value, for example =IF(Sheet2!A1="some text",Sheet2!B1,""). This returns a blank-looking cell instead of 0 when the condition is false.

Can I compare text in a cell rather than typing the text directly in the formula?

Yes. Replace "some text" with a cell reference, such as =IF(Sheet2!A1=Sheet1!A1,Sheet2!B1,""). The formula then compares the value in Sheet2!A1 with the value in Sheet1!A1.

How can I make the text comparison case-sensitive?

Wrap the comparison in EXACT, for example =IF(EXACT(Sheet2!A1,"some text"),Sheet2!B1,""). EXACT returns TRUE only when both text values match exactly, including uppercase and lowercase letters.

Will this formula work if Sheet2 is in another workbook?

Cross-sheet formulas work within the same workbook. If the source is in another workbook, ensure that workbook is open and use the full workbook and sheet reference, such as =IF([Book2.xlsx]Sheet2!A1="some text",[Book2.xlsx]Sheet2!B1,"").