試試看是否符合需求
Sub test()
Dim i&, j%, n&, aa
With Sheets("Temp")
n = 1
For i = 1 To .Cells(65535, 1).End(xlUp).Row
If Trim(.Cells(i, "F")) = "ESVUFR" Then
aa = Split(Trim(.Cells(i, 1)), " ")
For j = 0 To UBound(aa)
If j = 0 Then
Sheets("上市").Cells(n, 1) = aa(0)
ElseIf Trim(aa(j)) <> "" Then
Sheets("上市").Cells(n, 2) = Trim(aa(j))
End If
Next
Sheets("上市").Cells(n, 3) = .Cells(i, 3).Value
Sheets("上市").Cells(n, 4) = .Cells(i, 5).Value
n = n + 1
End If
Next i
End With