WPS Spreadsheets: Fix IF Formulas That Do Not Recognize Decimal-Comma Numbers
Question details
The user needs an IF formula to correctly compare a calculated value such as 62,91 with a target number.
- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- A worksheet uses an IF formula to test the result in cell GR19, but the result may use decimal commas, be stored as text, or contain extra decimal precision.
- Observed behavior
- The IF formula does not return the expected text, such as GEORGE, when GR19 appears to contain the number 62,91.
Select GR19 and inspect the formula bar to determine whether its result is numeric or text. Also check whether your regional settings use commas for decimal values and semicolons or commas between formula arguments.
Round the calculated value and use the correct regional separators
Use this approach when GR19 is numeric but contains hidden decimal precision or your formula uses separators from a different locale.
A displayed value of 62,91 may contain additional precision, such as 62.909999. Rounding GR19 before comparison makes the test more reliable. Formula argument and decimal separators must also match the spreadsheet's regional settings.
Click cell GR19 and review the formula bar. Confirm that the source formula returns a number rather than text.
Select the result cell and enter =IF(ROUND(GR19,2)=62.91,"GEORGE","") in a comma-based locale. In a semicolon-based locale with decimal commas, enter =IF(ROUND(GR19;2)=62,91;"GEORGE";"").
Press Enter and verify that the cell returns GEORGE when GR19 rounds to 62,91 or 62.91, depending on the locale.
Convert a text result into a number before comparing it
Use this solution when GR19 looks numeric but is stored as text or was created with inconsistent decimal and thousands separators.
Compare Decimal-Comma Values Reliably in WPS Spreadsheets
WPS Spreadsheets lets you inspect calculated values, apply ROUND, convert text to numbers, and use locale-appropriate IF syntax so decimal-comma comparisons work reliably.
- 1. Open the workbook: Launch WPS Office, choose Spreadsheets, and open the workbook containing the IF formula.
- 2. Inspect the source cell: Select GR19 and review the formula bar and number format to determine whether the result is numeric or text.
- 3. Replace the comparison formula: Enter the comma- or semicolon-based ROUND and IF formula that matches your regional settings.
- 4. Convert text when necessary: If GR19 is text, use VALUE or NUMBERVALUE in the comparison before applying ROUND.

Frequently Asked Questions
Why does an IF formula fail when the cell displays 62,91?
The displayed value may be text, may contain hidden decimal precision, or may use a decimal separator that does not match the formula locale. Test GR19 with =ISNUMBER(GR19) and use ROUND or a number-conversion function as needed.
Which formula should I use when my locale uses decimal commas?
Use the syntax supported by your locale. A semicolon-based example is =IF(ROUND(GR19;2)=62,91;"GEORGE";""). If your locale uses commas between arguments and periods for decimals, use =IF(ROUND(GR19,2)=62.91,"GEORGE","").
How can I tell whether GR19 contains text instead of a number?
Select an empty cell and enter =ISNUMBER(GR19). TRUE means GR19 is numeric; FALSE indicates that the result is text or otherwise not recognized as a number.
When should I use VALUE or NUMBERVALUE in WPS Spreadsheets?
Use VALUE when the text follows the spreadsheet's current numeric format. Use NUMBERVALUE when you need to explicitly define the decimal and thousands separators in the text.
Why should I use ROUND before comparing calculated values?
Calculations can produce extra hidden decimal places even when the cell displays only two digits. ROUND(GR19,2), or its locale-equivalent syntax, compares the intended two-decimal value instead of the unrounded internal result.




