Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm opening a CSV file in excel and I need to reformat the data to input into
another software. The problem is that the output includes 1 column that must be 26 characters in lenght (leading zeroes). The imported column will vary from 3 to eight characters. Is there a way to insert a variable amount of leading zeroes dependent upon the length of the source? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
While it is possible to introduce leading zeros thru formatting, they may not
export. Instead, if your values are in column A starting in A1, then in B1 enter: =REPT("0",26-LEN(A1)) & A1 and copy down. The correct number of leading zeros will be supplied -- Gary''s Student - gsnu200751 "Webster" wrote: I'm opening a CSV file in excel and I need to reformat the data to input into another software. The problem is that the output includes 1 column that must be 26 characters in lenght (leading zeroes). The imported column will vary from 3 to eight characters. Is there a way to insert a variable amount of leading zeroes dependent upon the length of the source? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Format/ Cells/ Custom/ 00000000000000000000000000
-- David Biddulph "Webster" wrote in message ... I'm opening a CSV file in excel and I need to reformat the data to input into another software. The problem is that the output includes 1 column that must be 26 characters in lenght (leading zeroes). The imported column will vary from 3 to eight characters. Is there a way to insert a variable amount of leading zeroes dependent upon the length of the source? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Parsing Last Character in variable length text field | Excel Worksheet Functions | |||
Inputting a length of time? | New Users to Excel | |||
Adding "fixed" data to variable length data | Excel Worksheet Functions | |||
Save data in a worksheet in fixed length fields... | Excel Discussion (Misc queries) | |||
length of character data | Excel Discussion (Misc queries) |