Formula Errors

WPS Spreadsheets: Use Double Quotation Marks in IF Formulas

Steven ParkerSteven Parker Nov 12, 2026 869 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Select the formula cell

In WPS Spreadsheets, click the cell containing the IF formula, then review or edit it in the formula bar.

2
Add quotation marks around text

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").

3
Confirm the formula

Press Enter or click the checkmark beside the formula bar to apply the formula and display the correct result.

Correct formula format: Use double quotation marks for every literal text value, such as =IF(A1="Yes","Approved","Review"). Do not place quotation marks around a cell reference such as A1.

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. 1. Open a spreadsheet: Launch WPS Office, choose Spreadsheets, and open an existing workbook or select Blank Workbook.
  2. 2. Choose a cell: Click the cell where the IF result should appear, or select an existing formula cell.
  3. 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. 4. Apply and verify: Press Enter and check that the displayed result matches the value in A1.
Correctly compare cells with text and return text from IF formulasUse a familiar spreadsheet interface for entering and checking formulasOpen, edit, and save Microsoft Excel .xlsx workbooksWork with common Excel-compatible functions and formatting
microsoft office alternative - wps office

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.