Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Losing zeros at the beginning of a number

I've exported a large amount of info from an accounts package, and one of the
cells for each line has a ten digit number, the majority of which start with
0(zero). When i open this spreadsheet to look at it all the zeros at the
beginning of these numbers disappear. How do I put them back, or stop excel
from doing this? I have tried formating the cell to text and using find and
replace, and I have tried copying the column into word, changing the numbers
and pasting back into excel, but it still loses the 0.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Losing zeros at the beginning of a number

You can change the format of cell as "Text".
steps:- right click on cell/cells format cells Number Text Ok

Regards
Vikas Kumar.

"modlang" wrote:

I've exported a large amount of info from an accounts package, and one of the
cells for each line has a ten digit number, the majority of which start with
0(zero). When i open this spreadsheet to look at it all the zeros at the
beginning of these numbers disappear. How do I put them back, or stop excel
from doing this? I have tried formating the cell to text and using find and
replace, and I have tried copying the column into word, changing the numbers
and pasting back into excel, but it still loses the 0.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,814
Default Losing zeros at the beginning of a number

If you go into Format - Cell and on the Number tab scroll down the list
until you see 'custom'. In the text box you can add the appropriate amount of
zeros to bulk up the number

"modlang" wrote:

I've exported a large amount of info from an accounts package, and one of the
cells for each line has a ten digit number, the majority of which start with
0(zero). When i open this spreadsheet to look at it all the zeros at the
beginning of these numbers disappear. How do I put them back, or stop excel
from doing this? I have tried formating the cell to text and using find and
replace, and I have tried copying the column into word, changing the numbers
and pasting back into excel, but it still loses the 0.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Losing zeros at the beginning of a number

If you need the zeros to actually exist, versus just displaying via a custom
format, there may be options for you, but you'll need to describe the source
file and explain how you're currently getting the data into the workbook
(importing, copy/paste, opening a CSV file, etc)

***********
Regards,
Ron

XL2002, WinXP


"modlang" wrote:

I've exported a large amount of info from an accounts package, and one of the
cells for each line has a ten digit number, the majority of which start with
0(zero). When i open this spreadsheet to look at it all the zeros at the
beginning of these numbers disappear. How do I put them back, or stop excel
from doing this? I have tried formating the cell to text and using find and
replace, and I have tried copying the column into word, changing the numbers
and pasting back into excel, but it still loses the 0.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default Losing zeros at the beginning of a number

But of course you need to do this *before* you put the numbers into the
cells.
--
David Biddulph

"Vikas Kumar" wrote in message
...
You can change the format of cell as "Text".
steps:- right click on cell/cells format cells Number Text Ok


"modlang" wrote:

I've exported a large amount of info from an accounts package, and one of
the
cells for each line has a ten digit number, the majority of which start
with
0(zero). When i open this spreadsheet to look at it all the zeros at the
beginning of these numbers disappear. How do I put them back, or stop
excel
from doing this? I have tried formating the cell to text and using find
and
replace, and I have tried copying the column into word, changing the
numbers
and pasting back into excel, but it still loses the 0.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Losing zeros at the beginning of a number


Thanks Ron. I do need the zeros to exist. I'm importing them and they arrive
in excel as a CSV file. Unfortunately I can't change the format of the cells
before I put the numbers in.
"Ron Coderre" wrote:

If you need the zeros to actually exist, versus just displaying via a custom
format, there may be options for you, but you'll need to describe the source
file and explain how you're currently getting the data into the workbook
(importing, copy/paste, opening a CSV file, etc)

***********
Regards,
Ron

XL2002, WinXP


"modlang" wrote:

I've exported a large amount of info from an accounts package, and one of the
cells for each line has a ten digit number, the majority of which start with
0(zero). When i open this spreadsheet to look at it all the zeros at the
beginning of these numbers disappear. How do I put them back, or stop excel
from doing this? I have tried formating the cell to text and using find and
replace, and I have tried copying the column into word, changing the numbers
and pasting back into excel, but it still loses the 0.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default Losing zeros at the beginning of a number

Hi

Adjust the file extension from .csv to .txt before you open it up in
Excel - this will make Excel open the Text Import Wizard and using this
you can tell Excel that the column containing the Account Number
information is to be treated as text (ie no truncation of leading
zeroes). You can rename the file in Windows Explorer, or you could
write a script in VBA to locate and amend the extension prior to
opening.

Richard


modlang wrote:
Thanks Ron. I do need the zeros to exist. I'm importing them and they arrive
in excel as a CSV file. Unfortunately I can't change the format of the cells
before I put the numbers in.
"Ron Coderre" wrote:

If you need the zeros to actually exist, versus just displaying via a custom
format, there may be options for you, but you'll need to describe the source
file and explain how you're currently getting the data into the workbook
(importing, copy/paste, opening a CSV file, etc)

***********
Regards,
Ron

XL2002, WinXP


"modlang" wrote:

I've exported a large amount of info from an accounts package, and one of the
cells for each line has a ten digit number, the majority of which start with
0(zero). When i open this spreadsheet to look at it all the zeros at the
beginning of these numbers disappear. How do I put them back, or stop excel
from doing this? I have tried formating the cell to text and using find and
replace, and I have tried copying the column into word, changing the numbers
and pasting back into excel, but it still loses the 0.


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Losing zeros at the beginning of a number

Richard - you are a star. That has worked perfectly - my life is now complete.

Happy Christmas,

Damian.

"RichardSchollar" wrote:

Hi

Adjust the file extension from .csv to .txt before you open it up in
Excel - this will make Excel open the Text Import Wizard and using this
you can tell Excel that the column containing the Account Number
information is to be treated as text (ie no truncation of leading
zeroes). You can rename the file in Windows Explorer, or you could
write a script in VBA to locate and amend the extension prior to
opening.

Richard


modlang wrote:
Thanks Ron. I do need the zeros to exist. I'm importing them and they arrive
in excel as a CSV file. Unfortunately I can't change the format of the cells
before I put the numbers in.
"Ron Coderre" wrote:

If you need the zeros to actually exist, versus just displaying via a custom
format, there may be options for you, but you'll need to describe the source
file and explain how you're currently getting the data into the workbook
(importing, copy/paste, opening a CSV file, etc)

***********
Regards,
Ron

XL2002, WinXP


"modlang" wrote:

I've exported a large amount of info from an accounts package, and one of the
cells for each line has a ten digit number, the majority of which start with
0(zero). When i open this spreadsheet to look at it all the zeros at the
beginning of these numbers disappear. How do I put them back, or stop excel
from doing this? I have tried formating the cell to text and using find and
replace, and I have tried copying the column into word, changing the numbers
and pasting back into excel, but it still loses the 0.



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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
How do I get Excell to recognise 0 at the beginning of a number? The Wonder From Downunder Excel Discussion (Misc queries) 4 February 4th 06 11:57 AM
Creating zero's in front of number and after number dyukon Excel Discussion (Misc queries) 3 January 12th 06 03:46 PM
How do I get the zeros to show up in the beginning of a number? cmreisner Excel Discussion (Misc queries) 6 September 15th 05 12:59 PM
putting leading zeros in front of number caroline argyle Excel Discussion (Misc queries) 2 August 2nd 05 01:59 PM


All times are GMT +1. The time now is 02:21 PM.

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

About Us

"It's about Microsoft Excel"