Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I display numbers of 12 digits or more? | Excel Discussion (Misc queries) | |||
Sorting numbers with differing numbers of digits | Excel Discussion (Misc queries) | |||
counting digits, not numbers | Excel Worksheet Functions | |||
adding digits to front/end of fax numbers | Excel Discussion (Misc queries) | |||
How do I specific digits in a long string? | Excel Discussion (Misc queries) |