回復 1#VANESSA
請測試看看,公式不會,謝謝
Sub test()
Dim Arr, Brr
Arr = Range([a1], [a65536].End(3))
ReDim Brr(1 To UBound(Arr), 1 To 1)
For i = 2 To UBound(Arr)
If InStr(Arr(i, 1), "*") Then
a = Split(Arr(i, 1), "*")(1)
If InStr(a, ")") Then
Brr(i, 1) = Replace(a, ")", "")
Else
Brr(i, 1) = a
End If
End If
Next
Range("b1").Resize(UBound(Brr)) = Brr
End Sub作者: hcm19522 時間: 2021-12-27 20:13
更新2#如下紅字,謝謝
Sub test()
Dim Arr, Brr
Arr = Range([a1], [a65536].End(3))
ReDim Brr(1 To UBound(Arr), 1 To 1)
For i = 2 To UBound(Arr)
If InStr(Arr(i, 1), "*") Then
a = Split(Arr(i, 1), "*")(1)
If InStr(a, ")") Then
Brr(i, 1) = Split(a, ")")(0)
Else
Brr(i, 1) = a
End If
End If
Next
Range("b1").Resize(UBound(Brr)) = Brr
End Sub作者: 准提部林 時間: 2021-12-28 13:59