Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Excel converts text cell contents to numbers (strips leading zeros)  ???!!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Excel Guy - 01 Feb 2008 05:18 GMT
I've verified that Excel 2000 and 2008 exhibit this behavior, but open
office does not.

Format a cell as "Text".

Enter something like "01234a" into the cell (must be some number with
a leading zero and some non-numeric character).  Note that the cell
will contain exactly what you typed (the leading zero will be
maintained).

Now perform a global search/replace.  Replace "a" with "" (in other
words, you want to delete the "a" in the above example).  Note that
the "a" will disappear, and so will the leading zero.  But the cell
will remain formatted as "text".

Is this a bug?

Is there some way to perform a global search/replace without the
leading zero being deleted?
Gary''s Student - 01 Feb 2008 10:55 GMT
Don't rely on the Text format.

Use the apostrophe.  For example, if you enter:

'01a

in a cell and then use Find/Replace to remove the a, the leading zero will
be preserved.
Signature

Gary''s Student - gsnu200767

> I've verified that Excel 2000 and 2008 exhibit this behavior, but open
> office does not.
[quoted text clipped - 15 lines]
> Is there some way to perform a global search/replace without the
> leading zero being deleted?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.