Supondo que os dados estão na coluna A da Planilha1, o seguinte fará o seguinte:
Rem Attribute VBA_ModuleType=VBAModule
Option VBASupport 1
Option Explicit
Sub rearrange()
Dim elements As Integer, rowIndex As Integer, i As Integer
Dim Name As String
' LO Basic additions
Dim Doc As Object
Dim Sheet As Object
dim cell as object
Doc = ThisComponent
Sheet = Doc.Sheets.getByName("Sheet1")
Cell = Sheet.getCellRangeByName("D1")
Cell.formula = "=COUNTA(A1:A104586)"
elements = cell.value
rowIndex = 1
For i = 1 To elements
If Right(Range("A" & i), 3) <> "(i)" Then
Name = Range("A" & i)
Else
Range("B" & rowIndex) = Name
Range("C" & rowIndex) = Range("A" & i)
rowIndex = rowIndex + 1
End If
Next
End Sub