- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 6# boyao
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Rng(1 To 2) As Range, i As Integer
- Set Rng(1) = Range("E7:M" & [E7].End(xlDown).Row)
- Set Rng(2) = Range("N7:P7").Resize(Rng(1).Rows.Count)
- For i = 1 To Rng(2).Rows.Count '.Count : Rng(2).RowsªºÁ`¼Æ
- 'Rows ª«¥ó: ½d³òªº¦C
- 'Columns ª«¥ó: ½d³òªºÄæ
- ' Rng(1).Rows(i)ªº²Äi¦C
- ' Rng(2).Rows(i)ªº²Äi¦C
- Rng(2).Rows(i).Cells(1) = Application.Average(Rng(1).Rows(i))
- Rng(2).Rows(i).Cells(2) = Application.Max(Rng(1).Rows(i))
- Rng(2).Rows(i).Cells(3) = Application.Min(Rng(1).Rows(i))
- Next
- End Sub
½Æ»s¥N½X |
|