#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Transposing

Joel, thank you! It worked like a charm!


"Joel" wrote:

You need a macro

Sub transpose()

LastRow = Range("A" & Rows.Count).End(xlUp).Row
RowCount = 1
ColCount = 2
For LoopCount = 1 To LastRow
If Range("A" & (RowCount + 1)) = "" Then
ColCount = 2
RowCount = RowCount + 1
Rows(RowCount).Delete
Else
Cells(RowCount, ColCount) = Range("A" & (RowCount + 1))
ColCount = ColCount + 1
Rows(RowCount + 1).Delete
End If
Next LoopCount
End Sub

"Nanapat" wrote:

I have several hundred rows with names/addresses as follows (each line is a
row):

Mr. Smith
123 Sunshine Lane
Graver, TX

Ms. Johnson
334 Forest Brook Lane
P.O. Box 730
Oklahoma City, OK

How can I transpose the name/address rows into columns all at once? I'm
having a problem since some names/addresses are 3 rows, some are 4, and some
are 5 or 6. There is one blank row in between each name/address. Please
help because right now I'm doing these one name/address at a time!

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transposing Deena Excel Worksheet Functions 2 October 27th 06 05:13 PM
Transposing a row into a column Raj Excel Discussion (Misc queries) 4 July 25th 06 10:09 PM
Variable Transposing NickG Excel Discussion (Misc queries) 1 April 27th 06 06:53 PM
TRANSPOSING GARY Excel Discussion (Misc queries) 1 March 17th 06 11:09 AM
Transposing Formulas Johno Excel Discussion (Misc queries) 3 November 5th 05 09:08 AM


All times are GMT +1. The time now is 11:07 PM.

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

About Us

"It's about Microsoft Excel"