Hello malleshg24,This macro worked for me. Try it out on your file's data,
Sub SplitIntoColumns() Dim Col As Long Dim Data As Variant Dim Row As Long Dim Rng As Range Dim RngBeg As Range Dim RngEnd As Range Dim Wks As Worksheet ' // Change the sheet name to match your sheet's name. Set Wks = ThisWorkbook.Worksheets("Sheet1") ' // Text starts in cell "A1". Set RngBeg = Wks.Range("A1") Set RngEnd = Wks.Cells(Rows.Count, RngBeg.Column).End(xlUp) Set Rng = Wks.Range(RngBeg, RngEnd) If RngEnd.Row < RngBeg.Row Then Exit Sub ReDim Data(0) Col = 3 ' // Start output in Column 3 "C" Row = RngBeg.Row Application.ScreenUpdating = False For Each Item In Rng.Value ' // The line must contain at least 4 hyphens. If Item Like "----*" Or Row = RngEnd.Row Then Wks.Cells(Rng.Row, Col).Resize(UBound(Data), 1).Value = Data ReDim Data(0) Col = Col + 1 Else Data(UBound(Data)) = Item ReDim Preserve Data(UBound(Data) + 1) End If Row = Row + 1 Next Item Application.ScreenUpdating = True End Sub