WPS Spreadsheets: Use Double Quotation Marks in IF Formulas
Question details
The user needs to write an IF formula that correctly compares text and returns text results.
- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- Creating or correcting an IF formula that contains text conditions or text output.
- Observed behavior
- Text values in the formula need to be enclosed in double quotation marks so WPS Spreadsheets does not interpret them as cell references, numbers, or function names.
Open the worksheet in WPS Spreadsheets and identify which parts of the IF formula are text comparisons or text results. Use straight double quotation marks (") rather than single quotation marks or copied smart quotes.
Enclose IF formula text in double quotation marks
Use this method whenever an IF formula compares a cell with text or returns words as its result.
Double quotation marks distinguish text from cell references, numbers, and function names. Text comparisons and text returned by the formula should each be enclosed separately.
In WPS Spreadsheets, click the cell containing the IF formula, then review or edit it in the formula bar.
Place double quotation marks around the text condition and both text results. For example, enter =IF(A1="The text","Some text if true","Some text if false").
Press Enter or click the checkmark beside the formula bar to apply the formula and display the correct result.
Create error-free IF formulas in WPS Spreadsheets
WPS Spreadsheets lets you enter and edit IF formulas with familiar formula-bar and cell controls. Enclose literal text in double quotation marks, then verify the result directly in the worksheet.
- 1. Open a spreadsheet: Launch WPS Office, choose Spreadsheets, and open an existing workbook or select Blank Workbook.
- 2. Choose a cell: Click the cell where the IF result should appear, or select an existing formula cell.
- 3. Enter the quoted IF formula: Type =IF(A1="The text","Some text if true","Some text if false") directly into the cell or the formula bar.
- 4. Apply and verify: Press Enter and check that the displayed result matches the value in A1.

Frequently Asked Questions
Why do IF formulas require double quotation marks around text?
Double quotation marks tell WPS Spreadsheets that the content is literal text. Without them, the spreadsheet may interpret the content as a cell reference, number, or function name.
What is the correct syntax for comparing text in an IF formula?
Use a formula such as =IF(A1="The text","Some text if true","Some text if false"). Put double quotation marks around the comparison text and each text result.
Should a cell reference such as A1 be enclosed in quotation marks?
No. Enter the cell reference as A1 so WPS Spreadsheets evaluates its value. Quotation marks would make A1 a text string instead of a reference.
Can I use single quotation marks for text in an IF formula?
No. Use double quotation marks for text values in the formula, such as =IF(A1="Yes","Approved","Review"). Single quotation marks do not replace the required double quotation marks.




