Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I imported a table of data in excel. A common problem faced is that
the data spreads over multiple rows in one column. What i need to do is then concatenate a few rows. Obviously there are over 300,000 rows of data, so it will take me forever. I have found a macro that does for me. Sub Combine() Dim J As Integer If Selection.Cells.Count 1 Then For J = 2 To Selection.Cells.Count Selection.Cells(J).Value = _ Selection.Cells(1).Value & " " & _ Selection.Cells(J).Value Selection.Cells(1).Clear Next J End If End Sub To use this macro, you select the cells you want to concatenate and then run the macro. The contents of all the cells are combined into the first cell in the selection, then whatever is in the other cells is cleared. However what i want to do is that The contents of all the cells are combined into the LAST (not first) cell in the selection, then whatever is in the other cells is cleared. Can someone please suggest to me an alteration in this macro or a new macro that will achieve the desired result. Thank you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to concatenate many rows in Excel | Excel Worksheet Functions | |||
Concatenate several rows | Excel Worksheet Functions | |||
Concatenate many rows quickly | Excel Worksheet Functions | |||
Concatenate multiple rows and columns into 1 cell | Excel Discussion (Misc queries) | |||
How do I Concatenate these Dynamic Rows | Excel Worksheet Functions |