Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Display leading zeros in numeric value without converting to text

I'm trying to use a numeric value with a leading zero, but the format keeps
dropping the leading zero. I've tried custom formatting, but it also drops
the lead zero. The only way to display the leading zero is to format the
value to text, but then it places the text tag in the cell, which I don't
want. Is there a way to format a cell to allow leading zeros without
converting or formatting the value as text?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Display leading zeros in numeric value without converting to text

Hi,

custom format as "0"0.00

note, the figures will appear as 01234 but on the formula bar you will see
1234.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Gmonny" escreveu:

I'm trying to use a numeric value with a leading zero, but the format keeps
dropping the leading zero. I've tried custom formatting, but it also drops
the lead zero. The only way to display the leading zero is to format the
value to text, but then it places the text tag in the cell, which I don't
want. Is there a way to format a cell to allow leading zeros without
converting or formatting the value as text?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Display leading zeros in numeric value without converting to text

You do not say how many digits you have or what custom formula you tried
I used "0"General as my custom formula to get displays such a 01, 012, 0123,
etc
I did not even have to type the zero
And the values are numeric in that =3*A1 gives 03 when A1 =3 (the format
goes with it as often happens with simple formulas)
Any use?
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Gmonny" wrote in message
...
I'm trying to use a numeric value with a leading zero, but the format
keeps
dropping the leading zero. I've tried custom formatting, but it also
drops
the lead zero. The only way to display the leading zero is to format the
value to text, but then it places the text tag in the cell, which I don't
want. Is there a way to format a cell to allow leading zeros without
converting or formatting the value as text?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Display leading zeros in numeric value without converting to text

Thanks for the reply, Marcelo. I tried that, but the cell still drops the
zero. It doesn't seem to even recognize the format.

"Gmonny" wrote:

I'm trying to use a numeric value with a leading zero, but the format keeps
dropping the leading zero. I've tried custom formatting, but it also drops
the lead zero. The only way to display the leading zero is to format the
value to text, but then it places the text tag in the cell, which I don't
want. Is there a way to format a cell to allow leading zeros without
converting or formatting the value as text?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Display leading zeros in numeric value without converting to text

If you always want 5 digits (with as many leading zeros as it takes), you could
use a custom format of:

00000
(Format|cells|Number tab)

You can use as many 0's as you want.


Gmonny wrote:

I'm trying to use a numeric value with a leading zero, but the format keeps
dropping the leading zero. I've tried custom formatting, but it also drops
the lead zero. The only way to display the leading zero is to format the
value to text, but then it places the text tag in the cell, which I don't
want. Is there a way to format a cell to allow leading zeros without
converting or formatting the value as text?


--

Dave Peterson
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 copy a number into a text cell, keeping leading zeros? Basher Bates Charts and Charting in Excel 2 February 23rd 08 03:26 PM
Turning off auto formatting Dave B. Excel Discussion (Misc queries) 3 August 28th 06 11:45 PM
removing leading zeros in numeric fields dingy101 Excel Discussion (Misc queries) 3 November 21st 05 03:46 AM
Spliting a number with leading zeros haitch2 Excel Discussion (Misc queries) 7 September 30th 05 12:09 AM
Adding Leading Zeros to Text Jenn Excel Discussion (Misc queries) 4 January 12th 05 06:51 PM


All times are GMT +1. The time now is 02:42 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"