How to Fix Excel Formula Decimal Separator Error
Question details
The user encounters a formula error when attempting to calculate an expression containing a decimal point, such as =-1*23.1, and needs to resolve it.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Entering a mathematical formula involving decimal numbers for calculation.
- Observed behavior
- Excel returns an error message or fails to calculate the formula because the period (.) used in the formula does not match the system's regional decimal separator settings, which expect a comma (,).
Before troubleshooting, check your computer's current regional settings to determine whether your system uses a dot (.) or a comma (,) as the default decimal separator.
Adapt the Formula to Your Regional Settings
Modify the decimal separator directly in your formula to match your system's default regional language settings.
In many European and international regional settings, the default decimal separator is a comma rather than a period. When this is the case, typing a period in a number will cause Excel to treat the entry as text or throw a formula error.
Select the cell containing the error, where the formula is currently typed as =-1*23.1.
Change the period (.) to a comma (,) so the formula correctly reads as =-1*23,1.
Press the Enter key on your keyboard. The formula will now calculate successfully based on your regional settings.
Change the Default Decimal Separator in Excel
If you prefer using a period (.) instead of a comma (,) for decimals, you can override the system settings directly within Excel Options.
Handle Decimals Smoothly in WPS Spreadsheet
WPS Office Spreadsheet provides excellent support for international number formats, allowing you to easily customize decimal separators or seamlessly adapt to your system's regional settings for accurate formula calculations.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook to start editing.
- 2. Access Options Menu: Click 'Menu' in the top-left corner of the interface and select 'Options' from the drop-down list.
- 3. Adjust Separator Settings: Navigate to the 'Advanced' tab, uncheck 'Use system separators', and manually define your preferred decimal and thousands separators to prevent future formula errors.

Frequently Asked Questions
Why does Excel show a formula error for 23.1?
This happens when your computer's regional settings are configured to use a comma (,) as a decimal separator instead of a period (.). Excel expects 23,1 and does not recognize the period as a valid decimal in a mathematical equation.
How do I find out my current regional decimal separator?
You can verify your current separator in Excel by going to File > Options > Advanced. Look under the 'Editing options' section for 'Use system separators' to see what punctuation your system is defaulting to.
Will changing the decimal separator in Excel affect my Windows system?
No. If you uncheck 'Use system separators' in Excel Options and set custom separators, the change only applies to Excel itself and does not affect your overall Windows or Mac regional settings.




