本帖最后由 yjh_27 于 2021-10-23 22:25 编辑
数组公式- Function qushus(a, b, m)
- arr = a
- a2rr = b
- ReDim scrr(1 To UBound(arr), 1 To 1)
- For i = 1 To UBound(arr)
- brr = Split(arr(i, 1), ",")
- crr = Split(a2rr(i, 1), ",")
- For j = 0 To UBound(brr)
- If Val(crr(j)) > m Then
- scrr(i, 1) = scrr(i, 1) & "," & brr(j)
- End If
- Next
- scrr(i, 1) = Mid(scrr(i, 1), 2)
- Next
- qushu = scrr
- End Function
复制代码
- Function qushu(a, b, m)
- brr = Split(a, ",")
- crr = Split(b, ",")
- For j = 0 To UBound(brr)
- If Val(crr(j)) > m Then
- scrr = scrr & "," & brr(j)
- End If
- Next
- scrr = Mid(scrr, 2)
- qushu = scrr
- End Function
复制代码 |