Sub conso()
Dim dl&, dlws&, i&, k& 'long
Dim uc$, site$, da$ 'string
Dim ws As Worksheet
Dim debit As Currency, credit As Currency
With Sheets("feuil1")
dl = .Cells(Rows.Count, 1).End(xlUp).Row
k = dl
For Each ws In Worksheets
If ws.Name <> .Name Then
uc = ws.Range("B10")
Split(ws.Range("B9"), " / ")(1)
da = ws.Range("D9")
dlws = ws.Cells(Rows.Count, "L").End(xlUp).Row
For i = 15 To dlws
Select Case ws.Cells(i, "L")
Case "", "TOTAL", "TOTAL HT"
Case Else
debit = ws.Cells(i, "M")
credit = ws.Cells(i, "N")
If debit <> 0 Or credit <> 0 Then
k = k + 1
.Cells(k, 3) = uc
.Cells(k, 1).Resize(, 2) = site
.Cells(k, 5) = ws.Cells(i, "L")
.Cells(k, 9) = debit
.Cells(k, 10) = credit
.Cells(k, 16) = ws.Cells(i, "O")
.Cells(k, 15) = da
End If
End Select
Next i
End If
Next
End With
End Sub