Hi try this
Sub InsertSUMFormula()
   With Selection
      .Formula2 = "=SUMIFS(RAWDATA!G:G,RAWDATA!$E:$E,$A" & .Row & ")"
   End With
End Sub