Fix COUNTIFS Results Not Matching Expected Count in WPS Spreadsheet
Question details
The COUNTIFS function returns a lower or incorrect total count compared to manual calculations.

- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Using the COUNTIFS formula to count data based on specific numerical boundaries and criteria.
- Observed behavior
- The formula fails to count certain cells because the numbers are incorrectly stored as text, or because intermediate decimal values fall outside the defined strict integer boundaries.
Check your data range for left-aligned numbers or small green triangles in the cell corners, which indicates the numbers are currently stored as text.
Convert Numbers Stored as Text to Numeric Values
Use the Text to Columns feature to rapidly convert text-formatted numbers back into calculable numeric data.
Formulas like COUNTIFS cannot evaluate text strings as numbers. Converting these left-aligned text values into proper right-aligned numeric values will immediately fix calculation errors.
Click and drag to highlight the specific column or range of cells containing the numbers you want to evaluate with your COUNTIFS function.
Navigate to the Data tab on the top ribbon menu and click on the Text to Columns icon.
In the wizard that appears, you do not need to change any default delimiters. Simply click Finish. The values will automatically align to the right, confirming they are now numeric.

Adjust Formula Boundaries for Decimal Values
Modify your COUNTIFS boundary criteria to ensure intermediate decimal values are properly included in the count.
Master Complex Formulas with WPS Spreadsheet
WPS Spreadsheet makes troubleshooting data quick and intuitive. With built-in error checking, you can instantly detect text-formatted numbers and effortlessly correct COUNTIFS boundary errors.
- 1. Download and Open WPS Spreadsheet: Launch WPS Office and open the spreadsheet file containing your COUNTIFS data.
- 2. Identify Formatting Errors: Look for numbers that are left-aligned or feature a smart error indicator, highlighting text-formatted data.
- 3. Convert and Recalculate: Use the built-in Text to Columns tool under the Data tab to convert formats in one click, allowing WPS to automatically recalculate accurate formula totals.

Frequently Asked Questions
Why does my COUNTIFS formula return zero even when the data visually matches?
This usually happens when there are hidden spaces, non-breaking spaces, or formatting mismatches between your criteria and the cell data. Using the TRIM function on your data range can remove extra spaces and fix the count.
Can COUNTIFS handle multiple conditions across different columns?
Yes, COUNTIFS is specifically designed to handle multiple criteria across multiple ranges. Just ensure that all ranges provided to the formula have the exact same number of rows and columns, otherwise the formula will return a #VALUE! error.
How do I count blank or non-blank cells using COUNTIFS?
To count blank cells, use "=" as your criteria. To count non-blank cells, use "<>" as your criteria in the COUNTIFS formula.




