Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Transposing 4-row clumps of name and address in Column A to Columns A,B,C,D

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Transposing 4-row clumps of name and address in Column A to Columns A,B,C,D

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)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote in message
ups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Transposing 4-row clumps of name and address in Column A to Columns A,B,C,D

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.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"