Dear Seniors,
I want to Concatenate the Text in Column "B" which is split across several rows, I want to do this for Each Number in Column
Thank you
Dear Seniors,
I want to Concatenate the Text in Column "B" which is split across several rows, I want to do this for Each Number in Column
Thank you
Last edited by zaska; 09-23-2020 at 05:25 AM.
For this scenario...
![]()
Sub sintek() With Range("E1:E" & Cells(Rows.Count, 1).End(xlUp).Row) .Formula = "=IF(A1="""","""",IF(A2<>"""",B1,B1&"" ""&B2))" .Value = .Value .SpecialCells(xlCellTypeBlanks).Delete Shift:=xlUp End With End Sub
If there is more than 1 blank row between data...
![]()
Sub sintek() Dim Data, Temp, i As Long, ii As Long Data = Cells(1).CurrentRegion.Value ReDim Temp(1 To UBound(Data)) For i = LBound(Data) To UBound(Data) If Data(i, 1) <> "" Then ii = ii + 1 Temp(ii) = Data(i, 2) Else Temp(ii) = Temp(ii) & " " & Data(i, 2) End If Next i Range("E1").Resize(ii) = Application.Transpose(Temp) End Sub
Last edited by Sintek; 09-23-2020 at 03:39 AM.
Good Luck...
I don't presume to know what I am doing, however, just like you, I too started somewhere...
One-day, One-problem at a time!!!
If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
Also....Add a comment if you like!!!!
And remember...Mark Thread as Solved...
Excel Forum Rocks!!!
Thank you so much. It helped me a lot.
.........................
THANKS.gif
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks