| 
    
     |  | A列とB列、C列にそれぞれ、年月日が分けて入力されており、日にちごとに売上金額が記載されている表です。それを、曜日ごとに売上金額の合計と日数、曜日ごとの売り上げ平均を別の表にまとめようとしています。 
 
 Sub 練習問題12()
 Dim i As Long
 Dim intW As Integer
 Range("G2:I8").ClearContents
 For i = 2 To Cells(Rows.Count, 1).End(xlUp).Row
 intW = Weekday(DateSerial(Cells(i, 1), Cells(i, 2), Cells(i, 3)), vbMonday)
 Cells(intW + 1, 7) = Cells(intW + 1, 7) + Cells(i, 4)
 Cells(intW + 1, 8) = Cells(intW + 1, 8) + 1
 Next
 For i = 1 To 7
 Cells(i + 1, 9) = Cells(i + 1, 7) / Cells(i + 1, 8)
 Next
 End Sub
 
 上記答えの、
 Cells(intW + 1, 7) = Cells(intW + 1, 7) + Cells(i, 4)
 Cells(intW + 1, 8) = Cells(intW + 1, 8) + 1
 Next
 For i = 1 To 7
 Cells(i + 1, 9) = Cells(i + 1, 7) / Cells(i + 1, 8)
 の部分がすべてわからないのですが、特に、「Cells(intW + 1, ●)」はどういう意味でしょうか?
 なにを示しているのでしょうか?
 
 VBAを我流で勉強し始めて一週間程度です。
 ご回答いただけると幸いです。
 
 |  |