- ©«¤l
- 406
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 453
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2015-2-7
- ³Ì«áµn¿ý
- 2021-7-31
|
¥»©«³Ì«á¥Ñ n7822123 ©ó 2018-8-26 18:26 ½s¿è
¦^´_ 1# PaulDing
èèµo²{§AªºS.N. ¦bBÄæ¡Aקï¤@¤Uµ{¦¡½X
¦pªGn¥Î¨ç¼Æ°µªº¸Ü °Ñ¦Ò hcm19522 ¤j¤j§Y¥i
test1.rar (13.85 KB)
- Sub test1()
- ¶Ã¼Æ¤ñ¨Ò½d³ò = 0.3
- RN = Sheets(1).UsedRange.Rows.Count
- ReDim Sum(RN - 1)
- For R = 1 To RN - 1
- Sum(R) = Cells(R + 1, 4)
- ave = Sum(R) / 10
- For C = 1 To 9
- Cells(R + 1, C + 4) = Fix(((Rnd * 2) - 1) * (ave * ¶Ã¼Æ¤ñ¨Ò½d³ò) + ave)
- Next C
- Cells(R + 1, 14) = "=sum(RC[-9]:RC[-1])"
- Cells(R + 1, 14) = Sum(R) - Cells(R + 1, 14)
- Next R
- End Sub
½Æ»s¥N½X |
|