Practical digital skills

Import a CSV without losing data

Choose delimiter, encoding and column types before a spreadsheet changes identifiers or dates.

Step-by-step guideAbout 3 min readUpdated
Follow the method ↓
A person reviews column types in a spreadsheet import

The answer in 30 seconds

A CSV is text arranged as rows and fields. A spreadsheet may guess a separator, date or number incorrectly: an identifier such as 00127 can silently become 127.

Keep the original file, open an import preview, select its delimiter and encoding, and set identifiers to text before loading. Compare row counts and sample values afterward.

Examples to adapt

Everything appears in one column

Reopen the original with the delimiter actually used by the file.

Accents display as symbols

Check the file's character encoding before saving changes.

An ID loses zeros

Import the column as text from the original; display formatting alone may not restore the value.

Follow the method

  1. 1
    Preserve the source

    Make a working copy and note where the CSV came from and when it was downloaded.

  2. 2
    Open the import preview

    Use the spreadsheet's text or CSV import tool instead of immediately saving a guessed conversion.

  3. 3
    Set delimiter and encoding

    Check whether commas, semicolons or tabs produce the expected columns, and read accented characters.

  4. 4
    Set column types

    Keep identifiers and period codes as text when their exact characters matter.

  5. 5
    Verify the result

    Compare row count, headings and a few original values; save working formulas in a spreadsheet format, not CSV.

Workshop: preserve an identifier during import

Keep a copy of the original CSV and inspect its first lines in a text editor. Identify the delimiter, encoding and a column with leading zeroes or long identifiers. Set that column to text during import and verify sample values afterwards.

Before deciding

A spreadsheet can silently convert dates, numbers or identifiers. Compare the row count and export only after confirming the values survived.

A closer look

Check three cells before working

Fictional sample: identifier 00123, measurement 12,50 and date 04/05/2026. Use the file documentation to choose a type for each column before importing.

The same text can receive different interpretations
Original textOpening riskUseful check
00123Conversion to 123Import the identifier as text and verify all five characters
12,50Split into two fields if comma is the field delimiterCheck field delimiter and decimal separator together
04/05/20264 May or 5 April depending on conventionConfirm the convention before converting the column

Formatting after a character has been lost does not automatically restore the original. Import again from an intact copy when necessary.

Does a neatly aligned table prove the import succeeded?

No. Compare sample identifiers, accented characters, decimals and dates with the original text. Also check the row count and a value near the end of the file.

Supporting documentation : Microsoft — Keeping leading zeros and large numbers · Consulted on 2026-10-15. Examples and calculations are illustrative.

A checklist to keep

Use these checks to record what you found. The grid supports a decision; it does not make one for you.

Import a CSV without losing data: checklist
CheckWhat to examineAction
OriginalIs an untouched copy available?Keep
DelimiterDo fields split into the expected columns?Choose
EncodingAre accents readable?Check
TypesAre IDs and periods unchanged?Set
RowsDoes the record count match?Compare

Read the checklist directly in the table.

What to check

A cell's display format can differ from its stored value.

A successful import preserves rows and identifiers.

CSV does not store multiple sheets or spreadsheet formatting.

Common questions

Why does my CSV use semicolons?

Separators vary by producer and regional setting. Use the preview to choose the one that restores the intended fields.

Can I recover lost leading zeros?

Return to the original if available. Adding zeros by guess can create incorrect identifiers.

Sources and documentation

Documentation consulted on . Examples are illustrative; interfaces and results may change.

Reference record for this resource

Identify the publisher, official destination and practical checks before using the service.

Read the LibreOffice record →

Continue exploring

All English guides →