ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   extracting from 1 collumn mailing list (https://www.excelbanter.com/excel-discussion-misc-queries/160386-extracting-1-collumn-mailing-list.html)

JohnW

extracting from 1 collumn mailing list
 
Hello,
I have an extracted file where the mailing list is in one collumn.
eg. the name, address1, address2, address3 and blank line is repeated down
the page. Just like a lable printout.
Is there a way of selectively copying all names to 1 row, address1 to the
next row, address2 to the next and so on.
I think it is in a format of copying every 5th line to a collumn?
That way I'll have 4 collums of data.

Gord Dibben

extracting from 1 collumn mailing list
 
Enter this formula in B1 and copy across to E1

=INDEX($A:$A,(ROWS($1:1)-1)*5+COLUMNS($A:B)-1)

Select B1:E1 and drag/copy down until you get zeros.

When happy, select columns B:E and in place EditPaste SpecialValuesOKEsc

Delete column A.


Gord Dibben MS Excel MVP


On Mon, 1 Oct 2007 17:09:02 -0700, JohnW
wrote:

Hello,
I have an extracted file where the mailing list is in one collumn.
eg. the name, address1, address2, address3 and blank line is repeated down
the page. Just like a lable printout.
Is there a way of selectively copying all names to 1 row, address1 to the
next row, address2 to the next and so on.
I think it is in a format of copying every 5th line to a collumn?
That way I'll have 4 collums of data.



veryeavy

extracting from 1 collumn mailing list
 
Hi John,

You might want to try looking at the Data menu and experimenting with "Text
to Columns".

I am not sure what you mean by "every 5th line".

If you meant every fifth character than you could use the "Fixed Width"
option and manually set the "dividers" in the appropriate place.

If you have some particluar character such as a space or a comma marking the
division between the different parts of the address then you may be able to
use the delimited option.

Could you please post a small sample of the data from the "extracted file"?

Cheers,

Matt

"JohnW" wrote:

Hello,
I have an extracted file where the mailing list is in one collumn.
eg. the name, address1, address2, address3 and blank line is repeated down
the page. Just like a lable printout.
Is there a way of selectively copying all names to 1 row, address1 to the
next row, address2 to the next and so on.
I think it is in a format of copying every 5th line to a collumn?
That way I'll have 4 collums of data.



All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com