Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default 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...?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default 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...?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 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...?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default 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...?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Numbers to Date Format MB Excel Worksheet Functions 2 February 6th 07 11:49 PM
Can I format telephone numbers? SouthAfricanStan Excel Worksheet Functions 3 August 24th 06 08:14 PM
csv converting numbers to scientific format JR Excel Discussion (Misc queries) 7 June 16th 05 12:13 AM
how do i format telephone numbers Vin Excel Discussion (Misc queries) 1 May 30th 05 02:46 AM
Converting numbers to date format from csv files FiBee Excel Discussion (Misc queries) 1 January 12th 05 02:30 PM


All times are GMT +1. The time now is 01:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"