Formula Errors

Why Excel SUM Returns Zero for Nested IF Results in WPS Office Spreadsheets

Olivia MillerOlivia Miller Nov 13, 2026 869 views

Question details

The user needs to understand why SUM returns zero when nested IF formulas return numbers stored as text, and how to convert those results to numeric values.

Why Excel SUM Returns Zero for Nested IF Results in WPS Office Spreadsheets
Product
WPS Office Spreadsheets (Excel-compatible)
Device & OS
not provided
Scenario
The user is working with a spreadsheet that uses nested IF formulas and seeing an incorrect SUM total.
Observed behavior
SUM returns zero because the nested IF results are text values rather than numbers.
Before you start

Open the workbook in WPS Office Spreadsheets and select the cells that contain the nested IF formulas. Check whether any numeric result in the formula is enclosed in double quotation marks, such as IF(A1>10,"5","0").

Solution 1Recommended

Remove Quotation Marks from Numeric Nested IF Results

Use this when the nested IF formula returns numbers as quoted strings; it fixes the formula at the source.

In Excel and WPS Office Spreadsheets, values inside double quotation marks are text. SUM ignores text values, so if every nested IF result is quoted, SUM can return zero even though the cells look like numbers.

1
Select the cell with the nested IF formula

Click the cell that contains the nested IF formula, such as =IF(A1>10,"5","0").

2
Edit the formula in the Formula Bar

Click in the Formula Bar to place the cursor inside the formula.

3
Delete the quotation marks from numeric results

Remove the double quotation marks around each number, changing "5" to 5 and "0" to 0.

4
Press Enter and recalculate

Press Enter to confirm the edited formula, then click a SUM cell or press F9 to recalculate the worksheet.

Remove Quotation Marks from Numeric Nested IF Results
SUM now adds the nested IF results: After the numeric results are returned as real numbers, SUM includes them normally.
WPS Office Spreadsheets

Fix SUM Returning Zero for Nested IF Text Results in WPS Office Spreadsheets

Use WPS Office Spreadsheets to edit nested IF formulas, convert text results to numbers, and restore correct SUM totals in Excel-compatible workbooks.

  1. 1. Open the workbook in WPS Office Spreadsheets: Launch WPS Office and open the .xlsx file that contains the nested IF formulas and zero SUM result.
  2. 2. Select the nested IF formula cells: Click the cell or range that contains the nested IF formulas returning quoted numbers.
  3. 3. Edit formulas to return numeric values: In the Formula Bar, remove quotation marks from numeric IF results, or wrap the existing result with =VALUE(reference).
  4. 4. Confirm the SUM total updates: Press Enter and check the SUM cell. If needed, apply Convert to Number to any remaining text values.
  5. 5. Save the workbook: Save the file as an Excel-compatible .xlsx file to preserve the corrected formulas.
SUM works correctly after removing quotes or converting text resultsFull compatibility with Microsoft Excel .xlsx and .xls filesFree, lightweight Office suite with familiar formula and function supportEasy formula editing in the WPS Spreadsheets Formula Bar
microsoft office alternative - wps office

Frequently Asked Questions

Why does SUM ignore text numbers returned by nested IF?

SUM only adds numeric values. If nested IF results are inside double quotation marks, they are stored as text and SUM skips them, returning zero when all results are text.

How can I tell if nested IF results are stored as text?

Select the result cell and check the Formula Bar. Formulas such as =IF(A1>10,"5","0") return text. You can also use =ISTEXT(B2) or =ISNUMBER(B2) to test the result.

Does changing the cell format to Number fix the SUM result?

No. Cell formatting only changes how the value appears, not whether Excel or WPS Office treats it as text or a number. The underlying value must be converted to a number.

Can I fix existing text numbers without rewriting every nested IF formula?

Yes. Use a helper column with =VALUE(B2) or =--B2, or select the text results and choose Convert to Number from the error checking menu.

Will this fix work in both WPS Office and Microsoft Excel?

Yes. Both applications follow the same formula behavior. WPS Office Spreadsheets can open, edit, and save Excel-compatible .xlsx files without changing the formula logic.