hi friends,
I have the following txt strings that are not delimited and I would like to have the data separated
0120190624INIT 99999
0312345678920190621AB 000000000000000000 000000000000000000122365ABC
0310111213120190621AB 000000000000000000 0000000000000000001143ABC
0500002
the logic is as follows:
in the string:
first 2 digits 01 is the header row. if 05 it is the footer row.
if the first two digits are 03 denote that this is the row to be analyzed.
the next 9 digits after the 03 (i.e 123456789) denote an identifier that needs to be separated
the next 8 digits denote the date (20190621) this also needs to be separated
in the end of the string is the value I need after the last zero and having the numbers and letters separated (122365ABC)
the end result I want is below:
123456789 06/21/2019 122365 ABC
not sure what is the easiest way to accomplish this, whether formulas or vba.
All the lengths of characters that need to be extracted from the string are fixed as well as the format.
please help. TIA
I have the following txt strings that are not delimited and I would like to have the data separated
0120190624INIT 99999
0312345678920190621AB 000000000000000000 000000000000000000122365ABC
0310111213120190621AB 000000000000000000 0000000000000000001143ABC
0500002
the logic is as follows:
in the string:
first 2 digits 01 is the header row. if 05 it is the footer row.
if the first two digits are 03 denote that this is the row to be analyzed.
the next 9 digits after the 03 (i.e 123456789) denote an identifier that needs to be separated
the next 8 digits denote the date (20190621) this also needs to be separated
in the end of the string is the value I need after the last zero and having the numbers and letters separated (122365ABC)
the end result I want is below:
123456789 06/21/2019 122365 ABC
not sure what is the easiest way to accomplish this, whether formulas or vba.
All the lengths of characters that need to be extracted from the string are fixed as well as the format.
please help. TIA