Importing CSV with numbers as text - for bar codes

Copper Contributor

Hi,

 

I occasionally export both contacts and products as CSV from my POS software to do bulk edits in Excel. They contain both phone numbers (beginning with "0") and bar codes (13 digit). 

 

I used to be able to import these using a wizard and ensure these were treated as text in order to preserve them. However, with Office 365, this wizard doesn't seem to give me that option. 

 

9857840395721 becomes:

9850000000000 displayed as 9.85E+12


Does anyone know how to import CSV numbers as text?

 

Regards

 

Lindsay

 

2 Replies

@lindswhitehead , you have few options.

 

First, open Data->Get Data->Query options and unselect default Type Detection

image.png

That works for current workbook only.

 

Second, if above option is ON, starting your query do not load it immediately, click on Transform

image.png

and in right pane delete automatically added Changed Type step

image.png

after that close Power Query editor selecting Keep changes.

 

Third, you may use old wizard enabling it in options

image.png

after that use it to load your CSV from Data->Get Data->Legacy Wizard

image.png

selecting Text for the column(s) on third step of the wizard

image.png

@Sergei Baklan 

 

Thanks a lot. That was helpful.