Hi, I've only posted once before, so sorry if this isn't very clear.
I've got a list of email addresses with additional information associated to them in random length rows as shown below (dummy email addresses used).
I want to be able to capture each email into it's own row, with the additional information alongside it in additional columns (an email's associated data always follows after each email).
I know I can identify each email address as it will always have an "@" in it, but the number of additional bits of information varies between each email address.
Can anyone advise how best to do this? I assume some sort of looping in VBA (i don't know VBA but would look to adapt something in existence perhaps?)
I've got about 270 rows, and some of the rows go over 300 columns across.
hope this makes sense.
thanks
Steve
EXAMPLE FROM MY EXCEL - I'm running Office 365
[TABLE="width: 796"]
<tbody>[TR]
[TD="colspan: 3"]range of data formatted as below[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]column 1[/TD]
[TD]column 2[/TD]
[TD]column 3[/TD]
[TD]column 4[/TD]
[TD]column 5[/TD]
[TD]column 6[/TD]
[TD]column 7[/TD]
[TD]column 8[/TD]
[/TR]
[TR]
[TD]email1@email[/TD]
[TD]deliver[/TD]
[TD]email2@email[/TD]
[TD]pending[/TD]
[TD]fail[/TD]
[TD]email3@email[/TD]
[TD]receive[/TD]
[TD]deliver[/TD]
[/TR]
[TR]
[TD]email4@email[/TD]
[TD]receive[/TD]
[TD]pending[/TD]
[TD]email5@email[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email6@email[/TD]
[TD]pending[/TD]
[TD]email7@email[/TD]
[TD]receive[/TD]
[TD]email8@email[/TD]
[TD]Receive[/TD]
[TD] Pending[/TD]
[TD] Fail[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]need to turn into a long list[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]column 1[/TD]
[TD]column 2[/TD]
[TD]column 3[/TD]
[TD]column 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email1@email[/TD]
[TD]deliver[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email2@email[/TD]
[TD]pending[/TD]
[TD]fail[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email3@email[/TD]
[TD]receive[/TD]
[TD]deliver[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email4@email[/TD]
[TD]receive[/TD]
[TD]pending[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email5@email[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email6@email[/TD]
[TD]pending[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email7@email[/TD]
[TD]receive[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email8@email[/TD]
[TD]Receive[/TD]
[TD] Pending[/TD]
[TD] Fail[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I've got a list of email addresses with additional information associated to them in random length rows as shown below (dummy email addresses used).
I want to be able to capture each email into it's own row, with the additional information alongside it in additional columns (an email's associated data always follows after each email).
I know I can identify each email address as it will always have an "@" in it, but the number of additional bits of information varies between each email address.
Can anyone advise how best to do this? I assume some sort of looping in VBA (i don't know VBA but would look to adapt something in existence perhaps?)
I've got about 270 rows, and some of the rows go over 300 columns across.
hope this makes sense.
thanks
Steve
EXAMPLE FROM MY EXCEL - I'm running Office 365
[TABLE="width: 796"]
<tbody>[TR]
[TD="colspan: 3"]range of data formatted as below[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]column 1[/TD]
[TD]column 2[/TD]
[TD]column 3[/TD]
[TD]column 4[/TD]
[TD]column 5[/TD]
[TD]column 6[/TD]
[TD]column 7[/TD]
[TD]column 8[/TD]
[/TR]
[TR]
[TD]email1@email[/TD]
[TD]deliver[/TD]
[TD]email2@email[/TD]
[TD]pending[/TD]
[TD]fail[/TD]
[TD]email3@email[/TD]
[TD]receive[/TD]
[TD]deliver[/TD]
[/TR]
[TR]
[TD]email4@email[/TD]
[TD]receive[/TD]
[TD]pending[/TD]
[TD]email5@email[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email6@email[/TD]
[TD]pending[/TD]
[TD]email7@email[/TD]
[TD]receive[/TD]
[TD]email8@email[/TD]
[TD]Receive[/TD]
[TD] Pending[/TD]
[TD] Fail[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]need to turn into a long list[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]column 1[/TD]
[TD]column 2[/TD]
[TD]column 3[/TD]
[TD]column 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email1@email[/TD]
[TD]deliver[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email2@email[/TD]
[TD]pending[/TD]
[TD]fail[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email3@email[/TD]
[TD]receive[/TD]
[TD]deliver[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email4@email[/TD]
[TD]receive[/TD]
[TD]pending[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email5@email[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email6@email[/TD]
[TD]pending[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email7@email[/TD]
[TD]receive[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]email8@email[/TD]
[TD]Receive[/TD]
[TD] Pending[/TD]
[TD] Fail[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]