思路:
你说的那些数据都是有0到9的数字组成,为了方便排序,将这些单元格的数据合并成一个字符串,然后统计字符串中每个数字出现的次数,再按出现次数排序。

宏:
Sub test()
Worksheets("sheet2").Activate
Dim str As String
Dim arrayNumber(0 To 9), arrayIndex(0 To 9), position As Integer
For Index = 0 To 9
arrayIndex(Index) = Index
arrayNumber(Index) = 0
Next
str = ""
For Index = 1 To Cells(Rows.Count, "A").End(xlUp).Row
str = str & Cells(Index, "A").Text
Next
For Index = 1 To Len(str) - 1
position = CInt(Mid(str, Index, 1))
arrayNumber(position) = arrayNumber(position) + 1
Next
Rem 排序数组
Dim tmp As Integer
For i = 9 To 1 Step -1
For j = 0 To i - 1
If arrayNumber(j) < arrayNumber(j + 1) Then
tmp = arrayNumber(j)
arrayNumber(j) = arrayNumber(j + 1)
arrayNumber(j + 1) = tmp
tmp = arrayIndex(j)
arrayIndex(j) = arrayIndex(j + 1)
arrayIndex(j + 1) = tmp
End If
Next
Next
Dim res As String
res = ""
For Index = 0 To 9
res = res & CStr(arrayIndex(Index))
Next
Cells(8, "B") = res
End Sub