Function SommeTexte$(r As Range, t$)
Dim L%, tablo, i&, s, j%
L = Len(t)
ReDim tablo(1 To r.Count, 1 To L)
For i = 1 To r.Count
For Each s In Split(r(i)) 'le séparateur est l'espace
For j = 1 To L
If Right(s, 1) = Mid(t, j, 1) Then tablo(i, j) = tablo(i, j) + Val(s)
Next
Next
Next
For j = 1 To L
SommeTexte = SommeTexte & " " & Application.Sum(Application.Index(tablo, , j)) & Mid(t, j, 1)
Next
SommeTexte = Mid(SommeTexte, 2)
End Function