Si sa interesse quelqu'un dans le future voici comment j'ai solutionné mon probleme
j'ai genere une colonne parent en utilisant split pour faire le lien parent enfant puis une fois je boucle pour les quantité voici le code en question
Sub Test2()
Dim Parents() As String
For i = 2 To Range("A1048576").End(xlUp).Row
Parents = Split(Cells(i, 1), ".")
For j = 0 To UBound(Parents) - 1
If j = 0 Then
Cells(i, 10) = "'" & Parents(j)
Else
Cells(i, 10) = "'" & Cells(i, 10) & "." & Parents(j)
End If
Next j
Next i
For i = 2 To Range("A1048576").End(xlUp).Row
For j = i To 1 Step -1
If Cells(i, 10) = Cells(j, 1) Then
If Cells(j, 11) <> "" Then
Cells(i, 11) = Cells(i, 2) * Cells(j, 11)
Else
Cells(i, 11) = Cells(i, 2) * Cells(j, 2)
End If
End If
Next j
Next i
End Sub