Bonsoir,
dans ton regroupement, tu ne tiens pas compte du nom, normal ou oubli ?
édit: Le tableau à l'air trié par Long décroissante, c'est toujours le cas et peut-on trier ?
Amicalement
Claude
-- Mer Nov 17, 2010 8:54 pm --
en attendant, essaye cette macro
Sub Regroupe()
''Macros par Claude Dubois pour "ATHEX49" E-P le 17/11/10
Dim Lg%, i%, Y%
Application.ScreenUpdating = False
Lg = Range("a65536").End(xlUp).Row
'--- tri ---
Range("a2:s" & Lg).Sort Key1:=Range("d2"), Order1:=xlDescending, Key2:= _
Range("e2"), Order2:=xlDescending, Header:=xlNo, OrderCustom:=1, _
MatchCase:=False, Orientation:=xlTopToBottom
'---
Columns("a").Insert
Range("a2:a" & Lg) = "=e2&f2"
For i = 2 To Lg
If Cells(i + 1, "a") = Cells(i, "a") Then
Y = i
Do While Cells(Y, 1) = Cells(Y + 1, 1)
Cells(i, "i") = Cells(i, "i") + Cells(Y, "i")
Cells(Y + 1, "b").ClearContents
Y = Y + 1
Loop
i = Y
End If
Next i
Columns("a").Delete
Range("a2:a" & Lg).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
Amicalement
Claude