Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do you stop excel removing the leading zeros in a cell?

I need the leading zero to be actually in the cell so formatting the cell
using custom or special will not work as these seem to be for display only.
The cell cannot be formatted for text or you cannot put an apostrophe before
the number as the spreadsheet is read into a database table. The table field
is set up to take characters but does not accept anything with the green mark
in the top left of the cell.
  #3   Report Post  
Posted to microsoft.public.excel.misc
CLM CLM is offline
external usenet poster
 
Posts: 12
Default How do you stop excel removing the leading zeros in a cell?

Add a column with formula of =text(b2,"000000000") zeros for the length you
want. This is not formatting, it changes it to text. It will show a green
mark in the top left but will not have an apostrophe. Copy and paste as
values over your original column and delete the new one.

"ck2007" wrote:

I need the leading zero to be actually in the cell so formatting the cell
using custom or special will not work as these seem to be for display only.
The cell cannot be formatted for text or you cannot put an apostrophe before
the number as the spreadsheet is read into a database table. The table field
is set up to take characters but does not accept anything with the green mark
in the top left of the cell.

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 stripping out leading zeros when saving as CSV MattM Excel Discussion (Misc queries) 4 June 26th 06 11:35 AM
Removing leading zeros from a group of numbers MAC253 Excel Discussion (Misc queries) 3 June 14th 06 09:49 PM
removing leading zeros in numeric fields dingy101 Excel Discussion (Misc queries) 3 November 21st 05 03:46 AM
How do I force leading zeros in an Excel cell? EricKei Excel Discussion (Misc queries) 2 June 15th 05 08:28 PM
How do I stop excel removing zeros? tomcat Excel Discussion (Misc queries) 2 January 21st 05 05:40 PM


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

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"