Data Import & Export

Import CSV Data with Decimal Commas in Excel

Steven ParkerSteven Parker Nov 25, 2026 868 views

Question details

Import CSV data into Excel without splitting temperature values that use decimal commas.

Import CSV Data with Decimal Commas in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Inspect a representative row

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.

2
Quote decimal values

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.

3
Import the corrected file

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.

4
Check the values

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.

Correct the CSV structure before importing it into Excel
Ambiguous rows need source information: If decimal values are unquoted and use the same comma as the field delimiter, Excel cannot reliably infer every field boundary without a consistent pattern or information from the source.
Work with CSV data

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. 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. 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. 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. 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. 5. Save the worksheet: Select File > Save As and choose XLSX if you want to retain the cleaned data in an Excel-compatible workbook.
Keeps quoted decimal-comma temperatures together during CSV importCompatible with Microsoft Excel XLSX and XLS filesProvides a familiar spreadsheet interface for reviewing imported rows
microsoft office alternative - wps office

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.