Range("C1").Value = Application.WorksheetFunction.Sum(Range("A1:B1"))
Range("C2").Value = Application.WorksheetFunction.Average(Range("A2:B2"))
Range("C3").Value = Application.WorksheetFunction.Count(Range("A3:B3"))
実行結果
A | B | C | |
---|---|---|---|
1 | 1 | 10 | 11 |
2 | 2 | 10 | 6 |
3 | 3 | 10 | 2 |