Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 59
Default Ensure that all numbers are 8 digits long

Hi

A client of mine imports data into Excel 2003 from an external system. The
numbers vary in length when imported, never more than 6 characters long. The
client always need the numbers to be 8 characters, is there a way to add
zeros to the start of the number to make it 8 characters in length what ever
the original length was?

Thanks in advance

Diane
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Ensure that all numbers are 8 digits long

Possibly a custom format of

00000000

Mike

"DianeG" wrote:

Hi

A client of mine imports data into Excel 2003 from an external system. The
numbers vary in length when imported, never more than 6 characters long. The
client always need the numbers to be 8 characters, is there a way to add
zeros to the start of the number to make it 8 characters in length what ever
the original length was?

Thanks in advance

Diane

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Ensure that all numbers are 8 digits long

You could put this in an adjacent column:

=TEXT(A1,"00000000")

and copy down, assuming your numbers are in column A. This will
convert the numbers to text values, but would make them all 8 digits
in length with appropriate number of leading zeros. You could fix the
values and then copy these over the values in column A.

Hope this helps.

Pete

On Mar 26, 11:05*am, DianeG wrote:
Hi

A client of mine imports data into Excel 2003 from an external system. *The
numbers vary in length when imported, never more than 6 characters long. *The
client always need the numbers to be 8 characters, is there a way to add
zeros to the start of the number to make it 8 characters in length what ever
the original length was?

Thanks in advance

Diane


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 59
Default Ensure that all numbers are 8 digits long

Thanks very much Pete and Mike for your responses. Both work perfectly!

"Pete_UK" wrote:

You could put this in an adjacent column:

=TEXT(A1,"00000000")

and copy down, assuming your numbers are in column A. This will
convert the numbers to text values, but would make them all 8 digits
in length with appropriate number of leading zeros. You could fix the
values and then copy these over the values in column A.

Hope this helps.

Pete

On Mar 26, 11:05 am, DianeG wrote:
Hi

A client of mine imports data into Excel 2003 from an external system. The
numbers vary in length when imported, never more than 6 characters long. The
client always need the numbers to be 8 characters, is there a way to add
zeros to the start of the number to make it 8 characters in length what ever
the original length was?

Thanks in advance

Diane



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Ensure that all numbers are 8 digits long

You're welcome, Diane - thanks for feeding back.

Pete

On Mar 26, 11:55*am, DianeG wrote:
Thanks very much Pete and Mike for your responses. *Both work perfectly!



"Pete_UK" wrote:
You could put this in an adjacent column:


=TEXT(A1,"00000000")


and copy down, assuming your numbers are in column A. This will
convert the numbers to text values, but would make them all 8 digits
in length with appropriate number of leading zeros. You could fix the
values and then copy these over the values in column A.


Hope this helps.


Pete


On Mar 26, 11:05 am, DianeG wrote:
Hi


A client of mine imports data into Excel 2003 from an external system. *The
numbers vary in length when imported, never more than 6 characters long. *The
client always need the numbers to be 8 characters, is there a way to add
zeros to the start of the number to make it 8 characters in length what ever
the original length was?


Thanks in advance


Diane

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 display numbers of 12 digits or more? Jaxboo Excel Discussion (Misc queries) 4 November 20th 07 07:00 PM
Sorting numbers with differing numbers of digits Trudy Excel Discussion (Misc queries) 5 March 4th 06 12:31 PM
counting digits, not numbers nebb Excel Worksheet Functions 4 January 24th 06 04:10 PM
adding digits to front/end of fax numbers Luke Excel Discussion (Misc queries) 2 April 27th 05 11:35 PM
How do I specific digits in a long string? PhilGTI Excel Discussion (Misc queries) 2 February 21st 05 05:21 PM


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