答案 0 :(得分:0)
将您发布的数据放在 A1 中,试一试:
Sub DataGrsbber()
Dim s As String
s = Replace([A1], "'", "")
ary = Split(s, ",")
For i = LBound(ary) To UBound(ary) - 1
If ary(i) = "F88" Then
MsgBox ary(i + 1)
Exit Sub
End If
Next i
End Sub
修改#1:强>
要将值检索到单元格中,请尝试使用此用户定义函数:
Public Function Retriever(BigString As String, LittleString As String) As String
Dim s As String
s = Replace(BigString, "'", "")
ary = Split(s, ",")
For i = LBound(ary) To UBound(ary) - 1
If ary(i) = LittleString Then
Retriever = ary(i + 1)
Exit Function
End If
Next i
Retriever = ""
End Function