Salut Pachi,
Salut Steelson,
ralenti par de gros problèmes de canalisations bouchées, je m'invite dans ton (très) beau salon , sachant que tu n'y verras pas une intrusion, comme d'autres...
Certains "conforts" valent plus chers que les plus beaux codes...
Un double-clic démarre la macro avec extraction en feuille 'Extract'...
For x = 2 To UBound(tTab, 1)
If tTab(x, 1) <> "" Then
iIdx = iIdx + IIf(x > 2, 1, 2)
ReDim Preserve tExtract(UBound(tTab, 2), iIdx)
If lgNum <> CLng(tTab(x, 1)) Then _
lgNum = CLng(tTab(x, 1)): _
lgRow = Columns(1).Find(what:=lgNum, lookat:=xlWhole, LookIn:=xlValues, searchdirection:=xlPrevious).Row
If x < lgRow Then
For y = x + 1 To lgRow
iOK = 0
For Z = 2 To UBound(tTab, 2)
If tTab(y, Z) <> tTab(x, Z) And (Z <> 17 And Z <> 26) Then _
iOK = 1: _
Exit For
Next
If iOK = 0 Then _
tTab(y, 1) = "": _
tTab(x, 26) = CDbl(tTab(x, 26)) + CDbl(tTab(y, 26))
Next
End If
For y = 1 To UBound(tTab, 2)
If x = 2 Then tExtract(y - 1, 0) = tTab(1, y)
tExtract(y - 1, iIdx - 1) = tTab(x, y)
Next
End If
Next
A+