Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Combining second row to first row
How do I make this:
John Edwards 24 Main St NY NY 08000 (all data is in seperate cells) Look like this: John Edwards 24 Main St NY, NY 08000 (Each cell moved to top line) There are multiple rows of this data. Thanks |
#2
|
|||
|
|||
Combining second row to first row
try this
Sub moverow() For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -2 Range(Cells(i, 1), Cells(i, 10)).Copy Cells(i - 1, 2) Rows(i).Delete Next End Sub -- Don Guillett SalesAid Software "LisaJ27" wrote in message ... How do I make this: John Edwards 24 Main St NY NY 08000 (all data is in seperate cells) Look like this: John Edwards 24 Main St NY, NY 08000 (Each cell moved to top line) There are multiple rows of this data. Thanks |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Combining second row to first row
The macro below works well however it deletes out some of the data I need in
other columns. What do I need to do to the macro to adjust? Thanks! "Don Guillett" wrote: try this Sub moverow() For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -2 Range(Cells(i, 1), Cells(i, 10)).Copy Cells(i - 1, 2) Rows(i).Delete Next End Sub -- Don Guillett SalesAid Software "LisaJ27" wrote in message ... How do I make this: John Edwards 24 Main St NY NY 08000 (all data is in seperate cells) Look like this: John Edwards 24 Main St NY, NY 08000 (Each cell moved to top line) There are multiple rows of this data. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Combining mutiple columns into one column | Excel Worksheet Functions | |||
combining countif with AND function | Excel Worksheet Functions | |||
Combining text from multiple columns into 1 | Excel Discussion (Misc queries) | |||
Combining workbooks with some variable field names | Excel Discussion (Misc queries) | |||
Combining Tables | Excel Discussion (Misc queries) |