ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   converting telephone numbers to csv format! (https://www.excelbanter.com/excel-discussion-misc-queries/155257-converting-telephone-numbers-csv-format.html)

Rebecca Potter

converting telephone numbers to csv format!
 
When converting telephone numbers from Excel to csv format it looses the
first 0. How do I stop this happening please...?

Bob Phillips

converting telephone numbers to csv format!
 
Precede the first 0 with a single quote '

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Rebecca Potter" wrote in message
...
When converting telephone numbers from Excel to csv format it looses the
first 0. How do I stop this happening please...?




David Biddulph[_2_]

converting telephone numbers to csv format!
 
You may wish to check whether you've lost the zero during the conversion to
csv, or whether your problem is only if you try to read the data back from
the csv into Excel.

If the leading zero was visible in the original xls file from which you
produced the csv, then have a look at the csv with something like Notepad
and see if the zero is still there. If it is, and you want to read it back
into Excel without losing the formatting, rename the csv to txt and tell the
text import wizard to treat the columns as text, or otherwise impose the
text import wizard by importing your csv with Data/ Inport External Data,
rather than with File/ Open.
--
David Biddulph

"Rebecca Potter" wrote in message
...
When converting telephone numbers from Excel to csv format it looses the
first 0. How do I stop this happening please...?




Rebecca Potter

converting telephone numbers to csv format!
 
Spot on David - we had since discovered that the telephone nos added as text
were indeed hanging on to the zeros - it was the fact that we were looking at
the .csv file in Excel that was misleading us! And yes, when we checked it in
NotePad the zeros were still there.
Thanks to both of you for the replies.

"David Biddulph" wrote:

You may wish to check whether you've lost the zero during the conversion to
csv, or whether your problem is only if you try to read the data back from
the csv into Excel.

If the leading zero was visible in the original xls file from which you
produced the csv, then have a look at the csv with something like Notepad
and see if the zero is still there. If it is, and you want to read it back
into Excel without losing the formatting, rename the csv to txt and tell the
text import wizard to treat the columns as text, or otherwise impose the
text import wizard by importing your csv with Data/ Inport External Data,
rather than with File/ Open.
--
David Biddulph

"Rebecca Potter" wrote in message
...
When converting telephone numbers from Excel to csv format it looses the
first 0. How do I stop this happening please...?






All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com