简体   繁体   中英

How to avoid Scientific Notation when importing a csv into Excel?

I'm new in the Stack Overflow community and would very much appreciate any help.

I'm trying to import a csv file from the US Energy Information (Downloadable from the "Download Options" button), except from the year column 1992 to 2014 the numbers imported are in the scientific notation.

If I try to change the format of these columns to "Number" then the numbers become "wrong" (ie the decimal point is shifted or deleted, Eg : 256.5375E+13 & 27.4525E+12 then have the same amount of digits in the number and the the larger number actually becomes the smaller one (in this case)).

I'm using Windows 10 with a German system, but I have changed the decimal divider from the German system (using a comma) to the UK / US system (using a period / dot).

How can I avoid this?

Possible solution if I am understanding things correctly:

After you select the CSV file from Power Query, and before you select Load , select the Transform Data option down at the bottom:

在此处输入图片说明

Once in the PQ UI, right click on the relevant column header, and choose Change Type / Using Locale from the drop down window.

In the resultant dialog, you choose the format of the data you are inputting. Presumeably this will be Decimal Number and English (United States)

在此处输入图片说明

Then choose Close and Load from the Main Menu, and you should be good to go.

在功能区中选择数据,然后获取数据,然后选择您的文件,然后您可以将“数据类型检测”更改为“不检测数据类型”,这应该可以工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM