Sub Arrange()
SupVides [B4:H12], [J4]
SupVides [B17:H25], [J17]
End Sub
Sub SupVides(Plage, Cel) ' Plage entrée, Cel : Cellule où coller la matrice de sortie.
Dim T, Ts, C%, L%, IndW%
T = Plage
ReDim Ts(1 To UBound(T), 1 To UBound(T, 2))
For C = 1 To UBound(T, 2)
IndW = 1
For L = 1 To UBound(T)
If T(L, C) <> "" Then Ts(IndW, C) = T(L, C): IndW = IndW + 1
Next L
Next C
Cel.Resize(UBound(Ts, 1), UBound(Ts, 2)) = Ts
End Sub