Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default forcing trailing zeros on 5-digit Zip

If you format a cell to use the Zip code +4 format, and you only enter the
5-digit code, Excel displays the entry as 00001-2345. Is there a way to
force the leading zeros to become trailing zeros? I would like it to display
as 12345-0000.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default forcing trailing zeros on 5-digit Zip

Hi

You could use a custom format such as:

[<100000]00000-"0000";00000-0000

which should force the correct format.

Hope this helps!

Richard


On 5 Mar, 14:14, dandiehl wrote:
If you format a cell to use the Zip code +4 format, and you only enter the
5-digit code, Excel displays the entry as 00001-2345. Is there a way to
force the leading zeros to become trailing zeros? I would like it to display
as 12345-0000.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default forcing trailing zeros on 5-digit Zip

Excellent! Thank you very much, it works great.

Dan


"RichardSchollar" wrote:

Hi

You could use a custom format such as:

[<100000]00000-"0000";00000-0000

which should force the correct format.

Hope this helps!

Richard


On 5 Mar, 14:14, dandiehl wrote:
If you format a cell to use the Zip code +4 format, and you only enter the
5-digit code, Excel displays the entry as 00001-2345. Is there a way to
force the leading zeros to become trailing zeros? I would like it to display
as 12345-0000.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default forcing trailing zeros on 5-digit Zip

Hi,

I've having a related problem. I have a column of data which contains 9
digit numbers. These are zip codes + 4. Problem is that we received the
data as a continuous 9 digit number with no hyphen. For some other software
we use, I really need the hyphen. I went to "Format Cell" and found zip+4
formatting and custom formating which shows "00000-0000." I tried to apply
each and nothing happened. I even created another column, formatted with
that cell format and then pasted the numbers in. Nothing. In other columns,
I was able to reformat cell properties such as turning currency numbers into
regular numbers.

Little help? Thanks!

"RichardSchollar" wrote:

Hi

You could use a custom format such as:

[<100000]00000-"0000";00000-0000

which should force the correct format.

Hope this helps!

Richard


On 5 Mar, 14:14, dandiehl wrote:
If you format a cell to use the Zip code +4 format, and you only enter the
5-digit code, Excel displays the entry as 00001-2345. Is there a way to
force the leading zeros to become trailing zeros? I would like it to display
as 12345-0000.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default forcing trailing zeros on 5-digit Zip

The 9 digit numbers are text.

Format all to General.

Copy an empty cell.

Select the range of "numbers" and Paste SpecialAddOKEsc.


Gord Dibben MS Excel MVP

On Sat, 12 Dec 2009 13:55:01 -0800, Attman68
wrote:

Hi,

I've having a related problem. I have a column of data which contains 9
digit numbers. These are zip codes + 4. Problem is that we received the
data as a continuous 9 digit number with no hyphen. For some other software
we use, I really need the hyphen. I went to "Format Cell" and found zip+4
formatting and custom formating which shows "00000-0000." I tried to apply
each and nothing happened. I even created another column, formatted with
that cell format and then pasted the numbers in. Nothing. In other columns,
I was able to reformat cell properties such as turning currency numbers into
regular numbers.

Little help? Thanks!

"RichardSchollar" wrote:

Hi

You could use a custom format such as:

[<100000]00000-"0000";00000-0000

which should force the correct format.

Hope this helps!

Richard


On 5 Mar, 14:14, dandiehl wrote:
If you format a cell to use the Zip code +4 format, and you only enter the
5-digit code, Excel displays the entry as 00001-2345. Is there a way to
force the leading zeros to become trailing zeros? I would like it to display
as 12345-0000.







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 do I force trailing zeros in an Excel cell? Tony C New Users to Excel 9 April 5th 23 01:06 PM
forcing leading zeros as default? wrapumup Excel Discussion (Misc queries) 11 March 1st 07 05:07 PM
Keep numbers as entered with trailing zeros Allie Excel Discussion (Misc queries) 2 August 3rd 06 06:39 PM
Keep Trailing Zeros When Convert To Text Todd G Excel Discussion (Misc queries) 2 March 23rd 06 03:16 PM
Formula/formatting to omit trailing zeros Robin Excel Worksheet Functions 5 March 22nd 06 06:29 AM


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