Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Why do the preceding zeros disappear when I remove dashes?

I work with spreadsheets that contain list of numbers separated by dashes,
such as 001-117-251. I then have to copy these numbers into a software
program that will not accept dashes, so I would like to remove them using the
Find and Replace feature in Excel. However, when I do this any zeros at the
beginning of the number vanish, and I end up with something like this:
1117251. How do I prevent the zeros from vanishing?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Why do the preceding zeros disappear when I remove dashes?

It changes it to a number in which leading zeroes are suppressed.

Try formatting as '000000000'. It may lose them in the export, but try it
and see.

--
---
HTH

Bob

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



"carridin1" wrote in message
...
I work with spreadsheets that contain list of numbers separated by dashes,
such as 001-117-251. I then have to copy these numbers into a software
program that will not accept dashes, so I would like to remove them using
the
Find and Replace feature in Excel. However, when I do this any zeros at
the
beginning of the number vanish, and I end up with something like this:
1117251. How do I prevent the zeros from vanishing?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Why do the preceding zeros disappear when I remove dashes?

If the export loses the leading zeroes, try using a helper column
=TEXT(A1,"000000000")
--
David Biddulph

"Bob Phillips" wrote in message
...
It changes it to a number in which leading zeroes are suppressed.

Try formatting as '000000000'. It may lose them in the export, but try it
and see.


"carridin1" wrote in message
...
I work with spreadsheets that contain list of numbers separated by dashes,
such as 001-117-251. I then have to copy these numbers into a software
program that will not accept dashes, so I would like to remove them using
the
Find and Replace feature in Excel. However, when I do this any zeros at
the
beginning of the number vanish, and I end up with something like this:
1117251. How do I prevent the zeros from vanishing?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Why do the preceding zeros disappear when I remove dashes?

That works, thanks guys!

"carridin1" wrote:

I work with spreadsheets that contain list of numbers separated by dashes,
such as 001-117-251. I then have to copy these numbers into a software
program that will not accept dashes, so I would like to remove them using the
Find and Replace feature in Excel. However, when I do this any zeros at the
beginning of the number vanish, and I end up with something like this:
1117251. How do I prevent the zeros from vanishing?

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
how to remove dashes [email protected] Excel Worksheet Functions 2 February 28th 07 09:55 AM
How can SS#s be displayed as text with all zeros and no dashes? latwood Excel Discussion (Misc queries) 1 September 27th 06 08:10 PM
How do I format fields to show preceding zeros? Marie Excel Discussion (Misc queries) 2 July 26th 06 04:23 AM
HTML to Excel: preceding 0's disappear?! yung Excel Discussion (Misc queries) 1 March 11th 05 07:48 AM
Preceding Zeros... Brian Excel Worksheet Functions 2 December 14th 04 03:29 PM


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

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"