Sub Tablica()
Dim i As Long
Dim iLastRow As Long
Dim iSumma As Double
iLastRow = Cells(Rows.Count, "B").End(xlUp).Row
For i = 3 To iLastRow
If Not IsEmpty(Cells(i, "D")) Then
iSumma = iSumma + CDbl(Split(Cells(i, "D"), "=")(1))
End If
Next
Cells(iLastRow + 1, "D") = iSumma
Cells(iLastRow + 1, "D").NumberFormat = "#,##0.00"
Cells(iLastRow + 1, "D").Font.Bold = True
End Sub
открывайте файл там все посчитано формулами и ничего не противоречит вашему заданию) одна формула пишет эти выражения, а другая считает сумму (произведений)