perryjasonc
New Member
- Joined
- Nov 20, 2017
- Messages
- 3
I receive a record every day that has several sequences. Each sequence is a row followed by a string that is all in the same column. I need Excel to break apart these sequences into certain lengths that represent data such as names and account numbers. Below is an example of what the raw data looks like.
[TABLE="width: 64"]
<tbody>[TR]
[TD]F51010058 080705P2031234567890 12345678901123456789012345 123456789012345
[TABLE="width: 64"]
<tbody>[TR]
[TD]F51020058SCHOLARSCHOICECOLLEGESVGSPRGM JANEDOE
[TABLE="width: 64"]
<tbody>[TR]
[TD]F51030058FBOJOHNDOE 12345CHRISTMASDR
[TABLE="width: 64"]
<tbody>[TR]
[TD]F51040058 NORTHPOLE CO021
But I can't just simply to text to columns, because the data in each row I need to parse isn't the same length.
Does anyone know how to make a macro that can identify the first 5 characters in the string, then use a MID formula or something like that to cut up the rest of the string and move certain data elements to a new sheet in a specific column?
Sorry, I know that is vague but I am in a rush. Will clarify more if needed.[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[TABLE="width: 64"]
<tbody>[TR]
[TD]F51010058 080705P2031234567890 12345678901123456789012345 123456789012345
[TABLE="width: 64"]
<tbody>[TR]
[TD]F51020058SCHOLARSCHOICECOLLEGESVGSPRGM JANEDOE
[TABLE="width: 64"]
<tbody>[TR]
[TD]F51030058FBOJOHNDOE 12345CHRISTMASDR
[TABLE="width: 64"]
<tbody>[TR]
[TD]F51040058 NORTHPOLE CO021
But I can't just simply to text to columns, because the data in each row I need to parse isn't the same length.
Does anyone know how to make a macro that can identify the first 5 characters in the string, then use a MID formula or something like that to cut up the rest of the string and move certain data elements to a new sheet in a specific column?
Sorry, I know that is vague but I am in a rush. Will clarify more if needed.[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]