|
- Function Contxt(ParamArray args() As Variant) As Variant
- Dim tmptext As Variant, i As Variant, cellv As Variant
- Dim cell As Range
- tmptext = ""
- For i = 0 To UBound(args)
- If Not IsMissing(args(i)) Then
- Select Case TypeName(args(i))
- Case "Range"
- For Each cell In args(i)
- tmptext = tmptext & cell
- Next cell
- Case "Variant()"
- For Each cellv In args(i)
- tmptext = tmptext & cellv
- Next cellv
- Case Else
- tmptext = tmptext & args(i)
- End Select
- End If
- Next i
- Contxt = tmptext
- End Function
复制代码 B10=
- =MID(contxt(IF(ISERROR(FIND(A10,$B$1:$B$5)),"",","&$B$1:$B$5)),2,99)
复制代码 三键结束,下拉
|
|