WPS Spreadsheet: Generate Text from a Cell Value with an IF Formula
Question details
The user needs to display different text in one cell based on the value or condition in another cell.
- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- A worksheet should show labels such as High or Low automatically according to a numeric value in another cell.
- Observed behavior
- The desired text output depends on whether the referenced cell meets a specified condition.
Identify the cell containing the value to test and the cell where the text result should appear. Decide the condition and the exact text to return when the condition is true or false.
Use an IF formula to return text based on another cell
Use this solution when one cell should display different text depending on a value or logical condition in another cell.
The IF function evaluates a condition and returns one result when the condition is true and another result when it is false. For example, the formula below checks whether A1 is greater than 10.
Open the worksheet in WPS Spreadsheet and select the cell where the text should appear, such as B1.
In the formula bar or directly in B1, enter =IF(A1>10,"High","Low") and press Enter.
If A1 contains a value greater than 10, B1 displays High; otherwise, B1 displays Low.
Replace A1, 10, High, or Low with your required cell reference, comparison value, and text labels. Drag the fill handle to apply the formula to additional rows if needed.
Create Conditional Text Labels in WPS Spreadsheet
WPS Spreadsheet lets you use the IF function to evaluate cell values and return custom text automatically. Enter the formula in the formula bar, adjust the condition and labels, and fill it across your worksheet when needed.
- 1. Open WPS Spreadsheet: Launch WPS Office and open an existing workbook or create a new spreadsheet.
- 2. Choose the output cell: Click the cell where the conditional text should appear, such as B1.
- 3. Enter the formula: Type =IF(A1>10,"High","Low") in the formula bar, then press Enter.
- 4. Adjust and fill the formula: Change the cell reference, comparison value, or returned text, then drag the fill handle to apply the formula to other rows.

Frequently Asked Questions
How do I display different text when a cell is greater than a specific number?
Select the output cell in WPS Spreadsheet and enter a formula such as =IF(A1>10,"High","Low"). The first text appears when A1 is greater than 10; the second appears otherwise.
Can I use text conditions instead of numbers in an IF formula?
Yes. For example, enter =IF(A1="Complete","Approved","Pending") to return Approved when A1 contains Complete and Pending for other values.
How can I apply the same conditional text formula to multiple rows?
Enter the formula in the first result cell, select it, and drag the fill handle downward. Relative references such as A1 will adjust automatically for each row.
What happens if the source cell is blank?
A formula such as =IF(A1>10,"High","Low") usually returns Low when A1 is blank because the blank value does not meet the condition. Add a separate blank check if you want the result cell to remain empty.




