DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
=SORT(QUERY({A2:A;B2:B;C2:C;D2:D};"Select Col1, Count(Col1) Where Col1 Is Not Null Group By Col1 Label Count(Col1) ''"; 0);2;FALSE)
Sub test()
Application.ScreenUpdating = False
Dim al$, r As Range, rng As Range, kys As Variant
Set rng = Range("E8").CurrentRegion
With CreateObject("Scripting.Dictionary")
For Each r In rng.SpecialCells(xlCellTypeConstants)
al = r.Cells(1).Value
If al <> "" Then .Item(al) = .Item(al) + 1
Next r
kys = Application.Transpose(Array(.keys, .items))
Range("B3").Resize(UBound(kys), 2).Value = kys
End With
Application.ScreenUpdating = True
End Sub
Sub test()
Application.ScreenUpdating = False
Dim al$, r As Range, rng As Range, kys As Variant
Set rng = Range("E8").CurrentRegion
With CreateObject("Scripting.Dictionary")
For Each r In rng.SpecialCells(xlCellTypeConstants)
al = r.Cells(1).Value
If al <> "" Then .Item(al) = .Item(al) + 1
Next r
kys = Application.Transpose(Array(.keys, .items))
With Range("B3").Resize(UBound(kys), 2)
.Value = kys
.Sort [c3], xlDescending 'xlAscending
End With
End With
Application.ScreenUpdating = True
End Sub
makroyu şimdi denedim teşekkür ederimKod:Sub test() Application.ScreenUpdating = False Dim al$, r As Range, rng As Range, kys As Variant Set rng = Range("E8").CurrentRegion With CreateObject("Scripting.Dictionary") For Each r In rng.SpecialCells(xlCellTypeConstants) al = r.Cells(1).Value If al <> "" Then .Item(al) = .Item(al) + 1 Next r kys = Application.Transpose(Array(.keys, .items)) With Range("B3").Resize(UBound(kys), 2) .Value = kys .Sort [c3], xlDescending 'xlAscending End With End With Application.ScreenUpdating = True End Sub