Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old March 29th 07, 05:30 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jan 2007
Posts: 7
Default add zeros in front of numbers

i have an acct# field and want to add 000 in front

585
00125
00356
12

i want to add 00 to 585 and 000 to 12 to make all the same length is
there some place to set this

  #2   Report Post  
Old March 29th 07, 05:46 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 3,268
Default add zeros in front of numbers

Custom format

00000

If you need to export is as text with leading zeros use a help column and a
formula

=TEXT(A1,"00000")

copy down, select the range and copy and paste special as values in place

Regards,


Peo Sjoblom


"dlb1228" wrote in message
...
i have an acct# field and want to add 000 in front

585
00125
00356
12

i want to add 00 to 585 and 000 to 12 to make all the same length is
there some place to set this



  #3   Report Post  
Old March 29th 07, 05:48 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 2,069
Default add zeros in front of numbers

try the custom format of 00000 in the cells
--
John
MOS Master Instructor Office 2000, 2002 & 2003
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"dlb1228" wrote:

i have an acct# field and want to add 000 in front

585
00125
00356
12

i want to add 00 to 585 and 000 to 12 to make all the same length is
there some place to set this

  #4   Report Post  
Old March 29th 07, 05:48 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 4,339
Default add zeros in front of numbers

Custom format as 00000.

This only changes the "appearance" of the number.



"dlb1228" wrote:

i have an acct# field and want to add 000 in front

585
00125
00356
12

i want to add 00 to 585 and 000 to 12 to make all the same length is
there some place to set this



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 create a macro to add zeros in front of a value? rexie3 Excel Worksheet Functions 8 September 20th 06 01:54 AM
How do I keep zeros in front of other numbers (like a zip code)? RitoruIkko Excel Discussion (Misc queries) 2 June 30th 06 03:19 PM
How do I keep the zeros in front of numbers when i split a cell tom Excel Worksheet Functions 3 October 11th 05 03:21 AM
putting leading zeros in front of number caroline argyle Excel Discussion (Misc queries) 2 August 2nd 05 01:59 PM
How do I get zeros to stay in front of a # when using the concate. czarkzm Excel Worksheet Functions 5 February 15th 05 03:27 PM


All times are GMT +1. The time now is 03:37 AM.

Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2004-2017 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017