- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 5# 518587 - Sub Test()
- Dim i, cnt
-
- With ActiveSheet.Range("C1:C28")
- .FormulaR1C1 = "=COVAR(RC[-2]:R[2]C[-2],RC[-1]:R[2]C[-1])/VARP(RC[-2]:R[2]C[-2])"
- .Value = .Value
- For i = .Count To 1 Step -1
- If Abs(.Cells(i).Value) <= 0.5 Then
- cnt = cnt + 1
- Else
- If cnt >= 5 Then .Cells(i + 1).Resize(cnt).Delete xlShiftUp
- cnt = 0
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|