|
发表于 2018-10-13 16:53
来自手机
|
显示全部楼层
本帖最后由 lss001 于 2018-10-14 09:30 编辑
Function DQYL(qu As Range, tq As Range, Optional tj = "")
Set x = qu.Worksheet.Rows("4:4").Find(What:="序号", LookAt:=xlPart)
br = Range(qu.Worksheet.Cells(5, x.Column), qu.Worksheet.Cells(qu.Count + 4, x.Column))
ar = qu
For k = UBound(ar) To 1 Step -1
If ar(k, 1) <> "" Then Exit For
Next
For i = k To 1 Step -1
t = t + 1
If tj = "" Then DQYL = t Else DQYL = tj - br(i, 1)
If ar(i, 1) = CLng(tq) Then Exit For
Next
End Function
|
评分
-
1
查看全部评分
-
|