Forum

Notifications
Clear all

CSV files

6 Posts
3 Users
0 Reactions
139 Views
(@mbized)
Posts: 6
Active Member
Topic starter
 

We are trialling an emergency contact tree at my workplace. It requires us to put the phone numbers in a csv file so that it can be export to the multi-text website. However, for all numbers greater that 10 it automatically changes the number to the scientific format, not matter how many times I reformat it. It also rounds up the numbers so we end up having trailing zeros and loosing the actual value. Is anyone familiar with this and is aware of a fix/work around? Thanks. Divisha

 
Posted : 29/06/2016 1:22 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Divisha,

Excel automatically does this. The best option is to format the numbers as text by putting an apostrophe in front of them. e.g.

'09 202 555 2121

The apostrophe doesn't display in the cell, you can only see it in the formula bar.

Mynda

 
Posted : 29/06/2016 5:07 am
(@mbized)
Posts: 6
Active Member
Topic starter
 

Thanks Mynda.

I have tried this before; however, because we are using it to text/sms, it defeats the purpose when we upload to csv file to Vodafone's multi-text with the apostrophe. Needs to be whole numbers. If I use an apostrophe, it will not recognise the number as a cellphone number.

At the moment our work around is to save all the phone numbers with more than 10 characters as an xls document and manually enter them. In effect maintaining two spreadsheets.

After some Googling found this to be a known issue. But would be interesting to know why this happens to csv files.

 
Posted : 29/06/2016 12:21 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Divisha,

This is by design in Excel. Excel uses double precision floating-point format which can only hold 15 digits of precision. The solution to this is to format the cell as text, but when you save the file as CSV or Text the formatting is lost.

I wonder, if you entered the area code of the number in a separate cell and the remainder in the next cell, and saved the file as Text would it work?

Mynda

 
Posted : 29/06/2016 8:38 pm
Philip Treacy
(@philipt)
Posts: 1630
Member Admin
 

If you format the cells that hold the numbers, as text, you can enter numbers of desired length.  You can then save as/export this as a csv without issue.

see attached files

Phil

 
Posted : 29/06/2016 11:06 pm
Philip Treacy
(@philipt)
Posts: 1630
Member Admin
 

I also tried Mynda's suggestion of putting an apostrophe in front of a number, and was able to export this as a csv without issue.  The apostrophes aren't in the csv.  I'm using Excel 2013

Phil

 
Posted : 29/06/2016 11:13 pm
Share: