Good evening
Please see the attached image for an example of my data. The strings in column A are grouped together.

The below code is a WIP to achieve the following...
- Find the last occurrence of each delivery location & add a new row after.
- In the newly created row, in the columns named Header11-14, add a formula to total the values in the above rows
- Do some formatting
So far it adds the new row after each delivery location but what I can't figure out is how to add the sum formula. I know how to add the string but I can't figure out how to reference the cells above...

The image above what i'm trying to achieve.
Sub insertRow_totals()
Dim changeRow, counter As Integer
counter = 2
While Cells(counter, 1) <> ""
If Cells(counter, 1) <> Cells(counter - 1, 1) Then
Rows(counter).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
counter = counter + 2
End If
counter = counter + 1
Wend
Rows(2).EntireRow.Delete
End Sub