Public Function soustotalspe(reference As Variant, colonne As Variant)
Dim AD, R1 As Double, ADB As Variant
Application.Volatile
soustotalspe = ""
AD = Application.ThisCell.Row
soustotalspe = 0
R1 = Range(reference & AD).End(xlUp).Row
i = 0
For i = R1 + 1 To AD - 1
soustotalspe = soustotalspe + Cells(i, colonne).Value
Next i
End Function