#1   Report Post  
Ken
 
Posts: n/a
Default Leading Zeroes

Hi, I hope you are having a great day.

I have an 6 character field containing mmddyy values (for example, 100587,
60276). Problem is when month is 1 - 9, I need the contents to be zero filled
so as the 60276 looks like 060276.

Can someone explain what I need to get that accomplished? Thanks in advance.

KenP
  #2   Report Post  
Sloth
 
Posts: n/a
Default

You need a custom format. Use 000000 as your format type.

Or just format the cells as text. An easy way to force text is to place an
apostrophe in front of number like so...

'060276

This changes the format of the cell to text automaticall (the ' doesn't show).



"Ken" wrote:

Hi, I hope you are having a great day.

I have an 6 character field containing mmddyy values (for example, 100587,
60276). Problem is when month is 1 - 9, I need the contents to be zero filled
so as the 60276 looks like 060276.

Can someone explain what I need to get that accomplished? Thanks in advance.

KenP

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 keep leading zeroes when saving in xls in csv format Joe Excel Discussion (Misc queries) 2 October 5th 05 06:42 PM
No decimals and leading zeroes gcotterl Excel Discussion (Misc queries) 2 April 18th 05 06:50 AM
CSV leading zeroes Tim_nol Excel Discussion (Misc queries) 2 December 28th 04 08:19 PM
How do I format data cells in Excel to keep leading zeroes? LennyD Setting up and Configuration of Excel 2 December 15th 04 10:42 PM
single quote 10-digit number that has leading zeroes & then conca. lorelei739 Excel Worksheet Functions 1 November 5th 04 12:02 AM


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