Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub SplitAndSortData()
Dim c As Range
Dim strOrig As String
Dim strNew As String
' organise data
For Each c In Worksheets("sheet1").UsedRange.Columns(2).Cells
strOrig = Trim(c.Text)
Do While InStr(1, strOrig, ",") <> 0
strNew = Right(strOrig, Len(strOrig) - InStrRev(strOrig, ","))
strOrig = Left(strOrig, InStrRev(strOrig, ",") - 1)
c = Trim(strOrig)
c.Offset(1).EntireRow.Insert
c.Offset(1, 0) = Trim(strNew)
c.Offset(1, -1) = c.Offset(0, -1)
Loop
Next
' sort data
Worksheets("sheet1").UsedRange.Sort Key1:=Range("A1"), Order1:=xlAscending, Key2:=Range("B1") _
, Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom
End Sub