Prevent alphanumeric strings containing an 'E' from being treated as numbers

Teleporting Goat

I work with CSV files that have around 3000 lines, and one column uses the format 0dddddddHH, d being a decimal and H an hexadecimal.

That means most of the data looks like 0128522FB but some of them look like 01283227E2. That's very problematic because it's automatically parsed as scientific notation, it gets displayed as 1.28E+08. The worst thing is that I can't even change the format back to text, because the original string has already been changed to 128322700.

Is there a way to disable this behaviour so that I don't completely break files and lose information?

According to this page, it can be disabled for dates but with numbers with E, I have to add a '. That's not doable in my case, and especially not doable in Excel because the information has already been modified.

(I'm using the 2013 business suite)

user308986

Importing Giffyguy's input on the button on the ribbon, you can click From Text on the Data tab of the ribbon (https://i.stack.imgur.com/dGrd9.png) to open the CSV file as a text file, then explictly specify text data type for the column containing hexadecimal data in the Text Import Wizard.

Double-clicking the file in Explorer will not work because this will skip the Text Import Wizard.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Prevent line numbers from being copied to clipboard

From Dev

Prevent strings from being interpreted as a file handle

From Dev

Awk script: How to prevent ARGV from being treated as an input file name

From Dev

Awk script: How to prevent ARGV from being treated as an input file name

From Dev

JQuery Variables for Arithmetic being treated as strings

From Dev

How to prevent short strings from being added to a set

From Dev

How to prevent my empty strings from being part of the length

From Dev

Prevent the letter 'e' and dots from being typed in an input number

From Dev

Design to prevent magic numbers and strings

From Dev

Sort Only numbers from alphanumeric string in MYSQL

From Dev

r - extract alphanumeric strings from text

From Dev

grep whole non-alphanumeric strings and non-numbers

From Dev

Remove the numeric portion of alphanumeric strings but keep the pure numbers

From Dev

How can I prevent 16 digit numbers from being logged by nlog?

From Dev

How do I prevent two of the same random numbers being generated from two different variables in Python?

From Dev

rails string limit does not prevent too long strings from being inserted in db

From Dev

how do I prevent my list items from being broken up into individual strings when writing to CSV?

From Dev

position() being treated as a function

From Dev

Label being treated as a div

From Dev

Prevent cell from being calculated

From Dev

Prevent a Class from being instantiated

From Dev

Prevent function from being called

From Dev

can javascript sort strings containing numbers?

From Dev

Sorting an array of filenames containing strings with numbers

From Dev

Spring MVC: how to prevent Spring from adding commas in numbers for generated strings

From Dev

Spring MVC: how to prevent Spring from adding commas in numbers for generated strings

From Dev

Are strings in AWK treated as arrays?

From Dev

How to prevent Laravel Routes from being accessed directly (i.e. non-ajax requests)

From Dev

Prevent attachment from being deleted from Medialibrary

Related Related

  1. 1

    Prevent line numbers from being copied to clipboard

  2. 2

    Prevent strings from being interpreted as a file handle

  3. 3

    Awk script: How to prevent ARGV from being treated as an input file name

  4. 4

    Awk script: How to prevent ARGV from being treated as an input file name

  5. 5

    JQuery Variables for Arithmetic being treated as strings

  6. 6

    How to prevent short strings from being added to a set

  7. 7

    How to prevent my empty strings from being part of the length

  8. 8

    Prevent the letter 'e' and dots from being typed in an input number

  9. 9

    Design to prevent magic numbers and strings

  10. 10

    Sort Only numbers from alphanumeric string in MYSQL

  11. 11

    r - extract alphanumeric strings from text

  12. 12

    grep whole non-alphanumeric strings and non-numbers

  13. 13

    Remove the numeric portion of alphanumeric strings but keep the pure numbers

  14. 14

    How can I prevent 16 digit numbers from being logged by nlog?

  15. 15

    How do I prevent two of the same random numbers being generated from two different variables in Python?

  16. 16

    rails string limit does not prevent too long strings from being inserted in db

  17. 17

    how do I prevent my list items from being broken up into individual strings when writing to CSV?

  18. 18

    position() being treated as a function

  19. 19

    Label being treated as a div

  20. 20

    Prevent cell from being calculated

  21. 21

    Prevent a Class from being instantiated

  22. 22

    Prevent function from being called

  23. 23

    can javascript sort strings containing numbers?

  24. 24

    Sorting an array of filenames containing strings with numbers

  25. 25

    Spring MVC: how to prevent Spring from adding commas in numbers for generated strings

  26. 26

    Spring MVC: how to prevent Spring from adding commas in numbers for generated strings

  27. 27

    Are strings in AWK treated as arrays?

  28. 28

    How to prevent Laravel Routes from being accessed directly (i.e. non-ajax requests)

  29. 29

    Prevent attachment from being deleted from Medialibrary

HotTag

Archive