All guides

Excel decimal comma to point: convert supplier prices

Prices like 12,50 stored as text? Convert them with the source file’s locale, keep the raw value, and test zero, blank and 1,234 before comparing prices.

Pricing and purchasing8 min read
A practical guide to reviewing your catalogues.
View sources
In this guide 8 sections

To turn an Excel decimal comma into a point, do not replace characters: convert the price text to a number while declaring the locale that produced the file, for example fr-FR for 12,50, and keep the original text beside the result. Once the value is a real number, it has no comma or point at all; the separator you see is only display formatting, so the same 12.5 can be shown as 12,50 or 12.50 without changing the price.

Get this step wrong in a supplier price list and every later calculation inherits the error: 12,50 read with an English convention can become 1250 or an error. Fix the numbers first, then compare the old and new price lists and separate zero, missing and invalid prices.

Why Excel decimal comma prices turn into text or wrong numbers

Decimal and grouping symbols depend on the locale. The Unicode number formatting rules define a decimal symbol, which separates the integer and fractional parts, and a group symbol, which splits long integers; a French format writes 1234.57 as 1 234,57. The SI Brochure allows either the point or the comma on the line as the decimal marker, so both conventions are legitimate.

When a spreadsheet opens a file, it parses numbers with the regional settings of the computer, not those of the supplier. Three things can then happen to a decimal-comma price on an English-language setup:

Source textWhat the reader can produceWhy
12,50Text that cannot be summedThe comma is not a valid decimal symbol for the reader
12,501250The comma is treated as a thousands separator and dropped
1,2341234 instead of 1.234Three digits after the comma look like a thousands group
1.12A dateAutomatic typing can read day and month in short values

The first case is visible because the cell does not calculate. The other three are worse: the cell holds a valid number, only the wrong one.

How to convert decimal comma prices without changing your settings

Changing the regional settings of your computer, or swapping commas and points with a global search and replace, alters every file you open afterwards and destroys the thousands separators. A conversion that declares the source locale only affects the column you are converting.

  1. Work on a copy and stop automatic typing. Load the price column as text so that 12,50 stays exactly 12,50. If a step already converted it, go back to the step before: turning a misread number back into text cannot restore the original punctuation.
  2. Keep the evidence. Keep the raw string, manufacturer, file and row. Add a numeric column and a conversion status rather than overwriting the source column.
  3. Confirm the convention with the sender. The website language or the delivery country does not prove how the export was produced, and two systems at the same supplier can export different conventions.
  4. Declare the locale in the conversion. Use the conversion that takes a locale, written as a language tag such as fr-FR, de-DE or en-GB (RFC 5646 defines these tags). The labels differ between spreadsheet versions; what matters is that the decimal and grouping symbols come from the declared locale, not from your computer.
  5. Record a status per row. For each price, store ok, empty or error with the error message, so that abc is rejected instead of silently becoming zero.
  6. Refresh and compare. After refreshing the file, check that the test cases below give the same amounts and that the raw column is unchanged.

Test values that expose a wrong locale

Run each example through your conversion with the locale shown. All values are synthetic.

Source textDeclared localeExpected result
12,50fr-FR12.5
12.50en-GB12.5
1.234,50de-DE1234.5
1 234,50fr-FR1234.5, if the space matches the grouping symbol
1,234.50en-GB1234.5
0fr-FR0, an explicit zero price
Blank cellfr-FREmpty, a missing price
abcfr-FRError, kept in the exception list
1,234 with no stated conventionNoneClarification needed

The last string can be a decimal amount or a grouped integer; its appearance alone cannot settle it. An explicit zero and a blank cell must stay distinct after conversion: one is a price, the other is the absence of a price.

How do you tell the decimal separator from the thousands separator?

Look at the whole column, not a single cell:

  • Two different separators in one value (1.234,50 or 1,234.50): the last one is the decimal symbol.
  • One separator followed by one or two digits (12,5, 12,50): it is a decimal symbol, because thousands groups in these price formats have three digits.
  • One separator followed by exactly three digits (1,234, 1.234): ambiguous. Look for other rows with two separators, or ask the sender.
  • The same separator repeated (1.234.567): it is a grouping symbol.

Never resolve ambiguous rows by trying several locales and keeping the first one that succeeds: 1,234 parses without error in both conventions, with values a thousand times apart. If the file mixes conventions, split it by reliable provenance and keep the unresolved rows in an exception queue.

Clean spaces, currency symbols and units deliberately

A price can carry characters that block the conversion: a currency sign (12,50 €), a unit (12,50/pc) or a grouping space. In French-formatted numbers that space may be an ordinary space, a no-break space (U+00A0) or a narrow no-break space (U+202F), and they are not interchangeable for a parser.

Identify the exact character, remove it in a working column and document the transformation. Never strip all punctuation: removing every comma and point turns 12,50 into 1250 without any error message. If the currency differs between rows, keep it in its own column; supplier prices in another currency need their own treatment before any comparison.

Worked example: a false 10,220% price increase

A fictitious supplier sends two editions of the same price list. Product code AB-1042 costs 12,50 in the old edition and 12,90 in the new one.

ReadingOld priceNew priceChange
Both read with fr-FR12.5012.90+3.2%
Old file fixed, new file read with an English convention12.501290+10,220%

The second line is not a price increase; it is a parsing error in one edition. It happens easily when one file arrives as .xlsx, already typed, and the next as CSV text. Converting both editions with the same declared locale, and checking the extreme changes first, catches it.

Checks before you compare or import prices

  • The raw text column is unchanged after a refresh.
  • The test values give the expected results, including zero, blank and invalid text.
  • Every row has a status; the number of error rows is reviewed, not ignored.
  • Minimum and maximum prices, and the largest percentage changes between editions, are plausible.
  • The declared locale is written down with the report’s transformation rules, so the next edition is read under the same contract.

A plausible grand total does not prove the conversion: two errors can offset each other. If columns are shifted or text is split across cells, fix the CSV encoding, delimiters and quotes first, because no numeric locale can repair a broken record structure. Once both editions are clean, a sample difference report between two catalogue editions shows the kind of side-by-side price review that follows.

Frequently asked questions

How do I change a decimal comma to a point in Excel?

Convert the text to a number while declaring the source locale, such as fr-FR for 12,50. The result is a number, and whether it then shows a comma or a point depends only on the display settings.

Why does Excel not recognise numbers with a comma?

The spreadsheet parses numbers with the regional settings of your computer. If those settings expect a point as the decimal symbol, a value such as 12,50 stays as text or is read with the comma as a thousands separator.

Is a search and replace of commas with points safe?

Not on prices with thousands separators. Replacing every comma turns 1.234,50 into 1.234.50, and removing punctuation turns 12,50 into 1250 without any error.

What does 1,234 mean in a supplier price list?

It can be 1234 with a thousands separator or 1.234 with a decimal comma. Check other rows that show two separators, or ask the supplier which convention the export uses.

Should I change my computer’s regional settings to read the file?

It is better not to. Regional settings affect every file and application, whereas declaring the locale in the conversion only affects the column you are converting.

Official sources & scope

This guide describes a working method. The examples are fictional; the official documentation remains the reference for the format rules. CatalogInspect is an independent service.

Back to guides & resources

Request access to CatalogInspect.

Enter your work email address to request access to CatalogInspect.

Submitting sends your request to BankStatementLab’s infrastructure for CatalogInspect. It does not create an account, trigger a payment or send an automatic email. Privacy.