How to import long number from csv to excel without converting to scientific notation in VBA

前端 未结 7 1506
青春惊慌失措
青春惊慌失措 2021-02-05 10:07

I opened semicolon delimited txt file with this code below and long account number showed up as scientific notation after saving to excel regardless of formatting to text that c

7条回答
  •  一生所求
    2021-02-05 10:25

    My system is mac os X El Capitan , when I copy data to Excel from html table, the number always auto convert to 1.10101E+17 etc. when I change "cells format" to text, the number is incorrect.

    My resolve is:

    1. open the Mac os software "Numbers" and create a new tab
    2. copy data to tab, you will see correct number
    3. open Microsoft excel change number columns "cells format" to text
    4. copy data from Numbers tab;
    5. right-click "Optional paste" select Text and ok.

    I don't know why but it works for me.

提交回复
热议问题