How to Prevent Excel from Changing Decimal Points in CSV Coordinates
Question details
The user wants to prevent Excel from automatically changing long decimal coordinates into numbers with regional thousands separators, which alters the data and causes precision loss in CSV files.
- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Opening or saving CSV files containing high-precision coordinate data.
- Observed behavior
- Excel interprets coordinate strings as numbers, applies regional number formatting (like swapping periods and commas), and truncates values to 15 significant digits, leading to permanent data loss upon saving.
Always verify the raw contents of your CSV file using a plain text editor like Notepad before importing it into Excel to ensure the original coordinates haven't already been altered by previous saves.
Import CSV as Text Using the Data Tab
Bypassing the default opening method and using the import wizard allows you to format coordinate columns as text, preventing Excel from changing decimals or losing precision.
By default, double-clicking a CSV file forces Excel to interpret the data using general number formats. Importing the data gives you the opportunity to declare high-precision coordinates strictly as text before they are loaded into the workbook.
Launch Excel and open a completely new, blank workbook rather than opening your CSV file directly.
Click on the 'Data' tab in the top ribbon and select 'From Text/CSV' in the Get & Transform Data group.
Locate your CSV file and click 'Import'. In the preview window that appears, click 'Transform Data' (or 'Edit' in older versions).
In the Power Query Editor, select the column containing your coordinates. Click the Data Type icon in the column header and change it to 'Text'. Click 'Replace Current' if prompted.
Click the 'Close & Load' button in the top left corner to bring your safely formatted text coordinates into the Excel spreadsheet.
Adjust Windows Regional Number Formats
If you frequently work with US-formatted CSVs in a region like Indonesia, changing your system's decimal separator can prevent auto-conversion of coordinates.
Prefix Coordinates with an Apostrophe
Adding an apostrophe at the beginning of a coordinate forces Excel to treat the cell contents strictly as text.
Easily Import and Manage CSV Data with WPS Office
WPS Spreadsheet provides a robust and user-friendly Text Import Wizard that gives you full control over your data types, ensuring high-precision coordinates are perfectly preserved without unwanted formatting changes.
- 1. Open WPS Spreadsheet: Launch WPS Office and open a new blank spreadsheet.
- 2. Launch the Import Wizard: Click on the 'Data' tab, select 'Import Data', and choose 'Import Data' again from the drop-down menu.
- 3. Select Your File: Locate your CSV file, choose 'Delimited' in the text import wizard, and click 'Next'.
- 4. Set Column Format: Highlight your coordinate column in the Data Preview section, select 'Text' under the Column data format options, and click 'Finish'.

Frequently Asked Questions
Why does Excel truncate my coordinates to 15 digits?
Excel has a hardcoded limit of 15 significant digits for numeric values, based on the IEEE 754 standard for floating-point arithmetic. Any digits beyond 15 are automatically changed to zero unless the data is explicitly imported and stored as text.
Can I recover the lost precision if I already saved the CSV in Excel?
No. If you saved and closed the CSV file in Excel after it truncated the numbers, the lost digits are permanently overwritten with zeros. You will need to restore the data from an original backup or source file.
How do I check what the real values in my CSV are?
Right-click the CSV file, select 'Open with', and choose 'Notepad' or another plain text editor. This displays the raw, comma-separated data exactly as it is saved, bypassing Excel's automatic formatting entirely.




