Sub Bus()
Dim b$: b = Intersect(Range("C2:I100"), Range("C2:I100").SpecialCells(2)).Address
[L1].Resize(100) = Evaluate("=UNIQUE(VSTACK(" & b & "))")
End Sub
Sub A_L_Ancienne()
Dim Plg As Range, c As Range, i&, d_l&
Set Plg = Range("C5:I11")
i = 0
Application.ScreenUpdating = False
For Each c In Plg.Rows
c.Copy
[L5].Offset(i, 0).PasteSpecial Paste:=xlPasteAll, Transpose:=True
i = i + c.Columns.Count
Next
d_l = Cells(Rows.Count, "L").End(3).Row
Range("L4:L" & d_l).Sort key1:=[L5], order1:=xlAscending, Header:=xlYes
Range("L4:L" & d_l).RemoveDuplicates Columns:=1, Header:=xlYes
End Sub
let
Source = Excel.CurrentWorkbook(){[Name="Tableau1"]}[Content],
#"Tableau croisé dynamique des colonnes supprimé" = Table.UnpivotOtherColumns(Source, {}, "Attribut", "Valeur"),
Valeur = #"Tableau croisé dynamique des colonnes supprimé"[Valeur],
#"Doublons supprimés" = List.Distinct(Valeur),
#"Converti en table" = Table.FromList(#"Doublons supprimés", Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
#"Converti en table"
=TRIER(UNIQUE(ASSEMB.V(C5:C11;F5:F9;I5:I9)))