Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 41
Default leading zeros

Hi All,

I have an issue with formating cells. I have a permit number that has
leading zeros sometimes, so I must display them when entered. I have
tried 0?-??????? and 0#-####### but no luck. Heres is what my permit
number look
01-2345678 & 02-8765432.


thanks,

Dave
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 51
Default leading zeros

Try this link:
http://www.mrexcel.com/archive/Formatting/8992.html
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 320
Default leading zeros

Don't cross-post your questions.
We'll find it!

"Dave" wrote in message
...
Hi All,

I have an issue with formating cells. I have a permit number that has
leading zeros sometimes, so I must display them when entered. I have
tried 0?-??????? and 0#-####### but no luck. Heres is what my permit
number look
01-2345678 & 02-8765432.


thanks,

Dave



  #4   Report Post  
Posted to microsoft.public.excel.newusers
DB. DB. is offline
external usenet poster
 
Posts: 28
Default leading zeros


"Dave" wrote in message
...
Hi All,

I have an issue with formatting cells. I have a permit number that has
leading zeros sometimes, so I must display them when entered. I have
tried 0?-??????? and 0#-####### but no luck. Here's is what my permit
number look
01-2345678 & 02-8765432.


thanks,

Dave



What is your column formatted as? I put your permit numbers in a
column formatted "General" - and they both came up OK..
I have Excel 2003 installed.

--
DB.



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,346
Default leading zeros

Hi,

In all versions of Excel to enter 01-2345678 in a cell without loosing the
leading zeros, type 01-2345678

So, its not clear what your problem is because all you need to do is type
what you are showing and it goes in and displays as you want it.

Leading 0's are only a problem when you enter something as a number and when
you type 01-2345678 it is not a number, because of the -

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Dave" wrote:

Hi All,

I have an issue with formating cells. I have a permit number that has
leading zeros sometimes, so I must display them when entered. I have
tried 0?-??????? and 0#-####### but no luck. Heres is what my permit
number look
01-2345678 & 02-8765432.


thanks,

Dave



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15
Default leading zeros

As has been pointed out, if you leave the dash (-) in, the cell will be
treated as text.

To force Excel to treat the cell as text, put an apostrophe at the start

e.g.
0123 will produce 123
'0123 will produce 0123

you can still treat the 0123 result as a number for the purpose of
arithmetic functions.

--
Cheers,
RyanR

--- pls click yes if I''ve helped you ---


"Shane Devenshire" wrote:

Hi,

In all versions of Excel to enter 01-2345678 in a cell without loosing the
leading zeros, type 01-2345678

So, its not clear what your problem is because all you need to do is type
what you are showing and it goes in and displays as you want it.

Leading 0's are only a problem when you enter something as a number and when
you type 01-2345678 it is not a number, because of the -

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Dave" wrote:

Hi All,

I have an issue with formating cells. I have a permit number that has
leading zeros sometimes, so I must display them when entered. I have
tried 0?-??????? and 0#-####### but no luck. Heres is what my permit
number look
01-2345678 & 02-8765432.


thanks,

Dave

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
add leading zeros Jacqueline Excel Worksheet Functions 2 July 12th 06 06:46 PM
Leading Zeros Karen Excel Discussion (Misc queries) 3 January 10th 06 09:50 PM
Leading zeros LeePotts Excel Discussion (Misc queries) 2 August 17th 05 02:46 PM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM
Leading zeros JC Excel Discussion (Misc queries) 9 February 1st 05 02:33 PM


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