Import CSV Data with Decimal Commas in Excel
Question details
Import CSV data into Excel without splitting temperature values that use decimal commas.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A CSV file uses commas as field separators and may also use them inside decimal temperature values.
- Observed behavior
- Temperature values can split across multiple columns, leaving rows misaligned.
Open the CSV in a text editor and check whether decimal values are enclosed in double quotes and whether rows follow a consistent pattern. Check the decimal separator used by your regional settings before converting imported text to numbers.
Correct the CSV structure before importing it into Excel
Use this approach when you can regenerate or edit the source file so field boundaries are unambiguous.
Open the CSV in a text editor and compare several rows with the expected column names. For example, determine whether 23,5 is one temperature or two separate fields.
In the source application or text editor, enclose each decimal-comma value in double quotes, such as sensor1,"23,5",active. Alternatively, export with semicolons as field separators if the source supports it.
In Excel, select Data > From Text/CSV and choose the corrected file. In the preview, check that the delimiter matches the file and that each temperature occupies one column.
Select Load, then compare several imported rows with the text file. If temperatures appear as text, use an import option or a conversion method that recognizes the comma as the decimal separator.

Extract temperatures from a consistent text pattern
Use a formula when each raw temperature string is in column A, follows C,, and ends after the decimal value.
Import decimal-comma CSV data in WPS Spreadsheets
Prepare the CSV with quoted decimal values or a different field delimiter, then open it in WPS Spreadsheets and check that temperatures remain in their own column.
- 1. Prepare the CSV: In the source application or a text editor, quote decimal-comma values, such as "23,5", or use a different field delimiter such as a semicolon.
- 2. Open the file: In WPS Spreadsheets, select Open and choose the CSV file. If import options appear, select the delimiter used in the file.
- 3. Review the columns: Compare several rows in the worksheet with the source file. Confirm that each temperature is in one cell and that the other fields align.
- 4. Convert values if needed: If temperatures are text, check your decimal separator settings and use a suitable conversion formula in an empty column. For example, when a period is the recognized decimal separator, enter =VALUE(SUBSTITUTE(B2,",",".")) for a text value in B2, then fill down.
- 5. Save the worksheet: Select File > Save As and choose XLSX if you want to retain the cleaned data in an Excel-compatible workbook.

Frequently Asked Questions
Why does Excel split a temperature such as 23,5 into two columns?
If the CSV uses an unquoted comma both between fields and as a decimal separator, Excel may treat both commas as delimiters. Quote the temperature as "23,5" or export the file with a different field delimiter.
Can Excel automatically repair every misaligned row?
Not reliably. If the same unquoted comma has two meanings, the intended field boundaries may be ambiguous. Check the source data or use a consistent row pattern to reconstruct the values.
How do I check the CSV delimiter before loading the file?
Open the file in a text editor, then use Data > From Text/CSV in Excel and inspect the import preview. Confirm that each expected field appears in its own column before selecting Load.
Why does the temperature extraction formula return an error?
Check that A2 contains C, before the temperature and that no extra fields appear in the extracted text. Also check whether your regional settings recognize the period inserted by the formula as a decimal separator.




