Sub test()
Application.ScreenUpdating = False
Dim str1 As String, str2 As String, str3 As String, str4 As String
Dim lastRow As Long, i As Long
lastRow = Cells(Rows.Count, 1).End(xlUp).Row
For i = 1 To lastRow
If i Mod 2 = 1 Then
Cells(i, 2) = Left(Cells(i, 1), InStr(Cells(i, 1), " ") - 1)
Cells(i, 3) = Mid(Cells(i, 1), InStr(Cells(i, 1), " ") + 1, InStrRev(Cells(i, 1), " ") _
- InStr(Cells(i, 1), " ") - 1)
Else
Cells(i - 1, 4) = Left(Cells(i, 1), InStrRev(Cells(i, 1), " ") - 5)
Cells(i - 1, 5) = Mid(Cells(i, 1), InStrRev(Cells(i, 1), " ") - 3, 3)
Cells(i - 1, 6) = Right(Cells(i, 1), Len(Cells(i, 1)) - InStrRev(Cells(i, 1), " ")) '*1
End If
Next
'Exit Sub
'delete origal A column
Cells(1, 1).EntireColumn.Delete
'eliminates blank rows
For i = lastRow To 1 Step -1
If Cells(i, 1) = "" Then Cells(i, 1).EntireRow.Delete
Next
Range(Cells(1, 1), Cells(1, 5)).EntireColumn.AutoFit
Application.ScreenUpdating = True
End Sub
Bookmarks