Share via

Data corruption issue when editing .csv files with long numbers using scientific notation

Anonymous
2016-09-13T14:26:14+00:00

I'm editing .csv files with Excel, and in some case it contains long numbers (e.g. 800016463473935), which when working in Excel and automatically turned into scientific notation - however what's persisted in the .csv file is not the correct number, but the actual scientific notation value (e.g. 8E014), actually resulting in data corruption. Any workaround?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. Anonymous
    2016-09-14T11:34:31+00:00

    Hello,

    Let's work on this together. Follow these step for you to import your .csv data to Excel without being converted to scientific notations:

    1. Open your .csv on a text editor like Notepad or Wordpad.
    2. Save it as a .txt file.
    3. Open your text file in Excel. Excel will start the Import Text Wizard.
    4. On step 1 of the wizard, select Delimited as your Original data type.
    5. Click on Next.
    6. On step 2 of the wizard, make sure that you tick all the boxes under the Delimiters section.
    7. Hit Next.
    8. Under Column data format, select Text from the options. Make sure that you do this for each of the columns under Data preview.

    9  Click on Finish.

    Your file should be imported as it is, rather than converted into scientific notations.

    Update us on the result.

    Thank you.

    Was this answer helpful?

    6 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2016-09-14T12:33:36+00:00

    Yep - but it's easy to forget and eventually leads to data corruption. Not sure how to file a bug, but I think it qualifies as a bad one!

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2016-09-14T11:49:29+00:00

    BLBDC,

    Did you try formatting the problematic cells as number with no decimal places?   That might clear up the problem.

    --

    Regards,

    Tom Ogilvy

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2016-09-14T11:54:13+00:00

    It does help, but when the file is saved as .csv, then the formatting preference is gone, and next time the file is opened the scientific notation is forced again on the number, leading to the data corruption when saving.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2016-09-14T11:47:40+00:00

    Thanks Aldwin. In my case, opening the .csv file with Excel doesn't start the Import Text Wizard, it just opens the file. (note: this is on MacOS, with latest Excel 64 bits release).

    Was this answer helpful?

    0 comments No comments