micahlange33
New Member
- Joined
- Jul 9, 2012
- Messages
- 5
This one is rather tricky I am assuming...
I have data that I need separated by an array of text and can be done in VBA if needed (note that it will be done for 1000's of lines and cycle time is a concern). I need to split the following data:
01609 0805ZG106ZAT 03041 C2012Y5V1A106Z ZZT09 LMK212F106ZG 08390 C0805C106Z8VAC 11962-CC0805ZKY5V6BB106
The underlined portions are what needs separated and you can see that it includes a space, five random numbers, and another space or a dash.
I cannot simply do a fixed width text to columns as the length of the data is variable between delimiters.
I cannot simply do a space delimiter as there is some data that will contain spaces within the data.
I cannot simply do a dash delimiter as there is some data that will contain dashes within the data.
This is why I have specified that I will need a space, five random numbers, and then a space or a dash....note that the first delimiter does not have a space before it and that it will be removed with a fixed length delimiter before removing and separating all subsequent data strings.
I have data that I need separated by an array of text and can be done in VBA if needed (note that it will be done for 1000's of lines and cycle time is a concern). I need to split the following data:
01609 0805ZG106ZAT 03041 C2012Y5V1A106Z ZZT09 LMK212F106ZG 08390 C0805C106Z8VAC 11962-CC0805ZKY5V6BB106
The underlined portions are what needs separated and you can see that it includes a space, five random numbers, and another space or a dash.
I cannot simply do a fixed width text to columns as the length of the data is variable between delimiters.
I cannot simply do a space delimiter as there is some data that will contain spaces within the data.
I cannot simply do a dash delimiter as there is some data that will contain dashes within the data.
This is why I have specified that I will need a space, five random numbers, and then a space or a dash....note that the first delimiter does not have a space before it and that it will be removed with a fixed length delimiter before removing and separating all subsequent data strings.