发布网友 发布时间:2024-10-23 21:20
共2个回答
热心网友 时间:2024-10-27 02:22
万能的vba可以实现。函数公式还是有难度的。
自定义函数代码:
Function SXG(S As String) As String
Const XG = "/"
Dim XGGS As Integer
For I = Len(S) To 1 Step -1
If Mid(S, I, 1) = XG Then
XGGS = XGGS + 1
Else
If XGGS = 2 Then
SXG = Mid(S, I + 3)
Exit Function
Else
XGGS = 0
End If
End If
Next I
SXG = ""
End Function
运行结果如图
热心网友 时间:2024-10-27 02:26
=TRIM(RIGHT(SUBSTITUTE(C1, "///", REPT(" ", 100)), 100))