Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2006

Tip: Looking for answers? Try searching our database.

Transposing 4-row clumps of name and address in Column A to Columns A,B,C,D

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kbird7@rogers.com - 25 Oct 2006 06:06 GMT
I am having a problem figuring out a macro to transpose 6500 rows of
name & address in clumps of 4 rows each in column A separated by 4
blank rows like this:

First and Last Name
123 Any Street
My Town, CA
90224
blank row
blank row
blank row
blank row
First and Last Name
222 Maple Avet
Big City, CA
90238
etc

to columns in a new worksheet that will look like this:

column     A                       B                          C
     D
First and Last Name    123 Any Street    My Town, CA     90224
First and Last Name    222 Maple Ave     Big City, CA      90238

Can anyone write a macro to accomplish this please?

Thank you in advance!!

Keith
Max - 25 Oct 2006 06:19 GMT
Assuming data in A1 down,
Put in B1:
=INDEX($A:$A,ROW(A1)*8-8+COLUMN(A1))
Copy B1 across 4 cols to E1, then just fill down* until zeros appear,
signalling exhaustion of data.
*to say E820 (as 6500 data rows div by 8 = 813 rows, thereabouts)
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

>I am having a problem figuring out a macro to transpose 6500 rows of
> name & address in clumps of 4 rows each in column A separated by 4
[quoted text clipped - 26 lines]
>
> Keith
Max - 25 Oct 2006 06:45 GMT
Required results will appear in cols B to E.

If desired, just select cols B to E, then do an "in-place":
Copy > Paste special > check "Values" > OK
to freeze the values. Then delete col A.
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.