Hi,
Am importing a load of data from a text file, splitting into columns, amending in excel then outputting a text file.
One (or more) of the columns has leading zeros which I want to retain.
eg:
000000000915000
000000000915000
000000004340000
000000003623130
000000003623130
Which comes in as:
915000
915000
4340000
3623130
3623130
Which is fine. But I want to make sure that when I output the text file, that they are all (in this case) 15 characters in length.
Therefore, to assign a variable number of leading zeros dependent on the cell value.
I'm sure I could write a macro to calculate cell by cell, but is there an easy way to do it all in one hit?
Thanks
Am importing a load of data from a text file, splitting into columns, amending in excel then outputting a text file.
One (or more) of the columns has leading zeros which I want to retain.
eg:
000000000915000
000000000915000
000000004340000
000000003623130
000000003623130
Which comes in as:
915000
915000
4340000
3623130
3623130
Which is fine. But I want to make sure that when I output the text file, that they are all (in this case) 15 characters in length.
Therefore, to assign a variable number of leading zeros dependent on the cell value.
I'm sure I could write a macro to calculate cell by cell, but is there an easy way to do it all in one hit?
Thanks