|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 zopey 于 2018-7-12 17:26 编辑
Sub 按钮1_Click()
Dim arr, brr, s
arr = [c3].Resize(1, 6)
brr = [c5].Resize(1, 6)
For i = 1 To 6
If arr(1, i) < 1.4 And arr(1, i) > 0 Then
wa = wa + arr(1, i)
ElseIf arr(1, i) >= 1.4 Then
wb = wb + arr(1, i)
End If
If brr(1, i) < 2 And brr(1, i) > 0 Then
ha = ha + brr(1, i)
ElseIf brr(1, i) >= 2 Then
hb = hb + brr(1, i)
End If
Next
s = wa * (ha + hb) + wb * ha
[j3] = s
End Sub
book22.zip
(15.42 KB, 下载次数: 8)
|
评分
-
1
查看全部评分
-
|