This Excel solution may help. A function can be used to sum rows above the current cell. One thing I don't understand is that you have to re-enter the formula if you change values in the cells above.
In the cell where you want the total, type "=sumtorow7()", without quotes. The function skips over cells that are empty. I have attached an Excel file to show this function working.
Can anyone make this solution perfect, or is it just a fact of life that you need to refresh a function formula each time you change the data?
Function SumToRow7()
'sums only cells above that have values, up to row 7
Dim i, BottomRow, TopRow As Integer
TopRow = 7
BottomRow = ActiveCell.Row - 1
For i = TopRow To BottomRow
If Trim(Cells(i, ActiveCell.Column).Value) <> "" Then
total = total + Cells(i, ActiveCell.Column).Value
End If
Next
SumToRow7 = total
End Function