logo
search
Formula Errors

How to Fix Excel Formula Decimal Separator Error

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

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 you start

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.

Solution 1Recommended

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.

1
Locate the formula

Select the cell containing the error, where the formula is currently typed as =-1*23.1.

2
Replace the period

Change the period (.) to a comma (,) so the formula correctly reads as =-1*23,1.

3
Calculate the result

Press the Enter key on your keyboard. The formula will now calculate successfully based on your regional settings.

Identify the exact error message: If the formula still fails after changing the separator, check the exact error message provided by Excel to ensure there are no other syntax issues.
Solve Formula Errors Easily

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. 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook to start editing.
  2. 2. Access Options Menu: Click 'Menu' in the top-left corner of the interface and select 'Options' from the drop-down list.
  3. 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.
Fully compatible with Microsoft Excel formulas and custom number formats.Easily switch between comma and period decimal separators in settings without altering system defaults.Lightweight, completely free to use, and works smoothly across different operating systems.
microsoft office alternative - wps office

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.