Calculation Issues

Fix SUBTOTAL Returning Zero for Decimal Numbers in WPS Office Spreadsheets

Huda QurayshiHuda Qurayshi Nov 13, 2026 868 views

Question details

The user needs to identify why the SUBTOTAL function returns zero when summing decimal values and convert text-formatted decimal entries into numeric values before recalculating SUBTOTAL.

Fix SUBTOTAL Returning Zero for Decimal Numbers in WPS Office Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
A user is summing decimal values with the SUBTOTAL function and expects a numeric total, but the result is zero because the decimal entries are stored as text.
Observed behavior
SUBTOTAL returns 0 instead of the decimal sum because the cells are interpreted as text, often due to incompatible decimal separators, thousands separators, currency symbols, hidden characters, or CHAR(160).
Before you start

Before editing the dataset, confirm which cells are text by selecting a cell and typing =ISTEXT(A1) in an empty cell; TRUE indicates a text value. Also check your system region settings for the expected decimal and thousands separators so you know which characters to replace.

Solution 1

Confirm the Problem with ISTEXT

Use this diagnostic first to find exactly which decimal cells SUBTOTAL is ignoring as text.

The SUBTOTAL function skips text values by design. Cells that look like numbers but are stored as text return TRUE with ISTEXT and are excluded from the sum.

1
Open the worksheet and select an empty helper cell

In WPS Office Spreadsheets, open the affected worksheet and select the cell next to the first decimal value, for example B1.

2
Enter the ISTEXT formula

Type =ISTEXT(A1) and press Enter. TRUE means the value in A1 is text; FALSE means it is numeric.

3
Copy the formula down the data range

Drag the fill handle down through all rows that SUBTOTAL should sum, then note each cell that shows TRUE.

Do not change formatting yet: Changing the number format from Text to General or Number does not convert existing text to numbers. Continue with a conversion solution below.

Fix SUBTOTAL Zero Results for Decimal Values in WPS Office Spreadsheets

Convert text-formatted decimal values into real numbers using WPS Office Spreadsheets Find & Replace and Text to Columns tools, then recalculate SUBTOTAL accurately in a free Office-compatible spreadsheet.

  1. 1. Open the workbook in WPS Office Spreadsheets: Launch WPS Office, click Open, and select the Excel workbook containing the SUBTOTAL decimal issue.
  2. 2. Confirm the text cells: Click an empty cell and enter =ISTEXT(A1), then drag the formula down to see which decimal cells are text.
  3. 3. Clean and convert the range: Select the affected decimal cells, press Ctrl+H to replace CHAR(160) or other hidden characters, then go to Data > Text to Columns and click Finish to convert text to numbers.
  4. 4. Recalculate and save: Update the SUBTOTAL formula to =SUBTOTAL(9,A1:A100) and save the file in .xlsx format to keep it compatible with Microsoft Excel.
Repairs decimal SUBTOTAL calculations without losing your original workbook layout.Includes Text to Columns, Find & Replace, and the same SUBTOTAL syntax as Excel.Opens and saves Microsoft Excel .xlsx, .xls, and .csv files with full formula compatibility.Free WPS Office Spreadsheets interface makes text-to-number cleanup quick and lightweight.
microsoft office alternative - wps office

Frequently Asked Questions

Why does SUBTOTAL return zero for decimal numbers even though the values are visible in cells?

SUBTOTAL skips text values. If the decimal numbers are stored as text due to a non-breaking space, currency symbol, or incompatible decimal/thousands separator, the function treats them as empty and returns 0. Check a cell with =ISTEXT(A1); TRUE means it is text and must be converted.

How do I find and remove the hidden character causing SUBTOTAL to ignore decimals?

Use =CODE(MID(A1,1,1)) or =LEN(A1) to detect extra hidden characters. The most common is CHAR(160). In WPS Office Spreadsheets, press Ctrl+H, type Alt+0160 in Find what, leave Replace with empty, and click Replace All.

Does changing the cell format from Text to Number fix SUBTOTAL automatically?

No. Cell formatting only changes how a value is displayed, not the underlying data type. After changing the format, you must select the cells and use Data > Text to Columns > Finish, or re-enter each value, to convert text decimals to numeric values.

Can I use a formula to convert comma decimal separators before SUBTOTAL?

Yes. Add a helper column and use =NUMBERVALUE(A1,".",",") if A1 uses a comma as the decimal separator, or =VALUE(SUBSTITUTE(SUBSTITUTE(A1,CHAR(160),""),"$","")) to remove spaces and currency symbols. Then point SUBTOTAL to the helper column.

What SUBTOTAL function number should I use to sum decimal values in WPS Office Spreadsheets?

Use 9 for a normal sum: =SUBTOTAL(9,A1:A100). Use 109 instead of 9 if you also want SUBTOTAL to ignore values in hidden rows.