Tarih sırala

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,239
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
Dosyanız ekte.:cool:
Kod:
Sub liste()
Dim i As Long, myarr, a As Long
ReDim myarr(1 To 1, 1 To 1)
With Sheets("Sayfa1")
    .ComboBox1.Clear
    For i = 5 To .Cells(65536, "B").End(xlUp).Row
        If WorksheetFunction.CountIf(.Range("B5:B" & i), .Cells(i, "B").Value) = 1 Then
            a = a + 1
            ReDim Preserve myarr(1 To 1, 1 To a)
            myarr(1, a) = Format(.Cells(i, "B").Value, "dd.mm.yyyy")
        End If
    Next i
    If a > 0 Then
    .ComboBox1.Column = myarr
    .ComboBox1.ListIndex = 0
End If
End With
End Sub
 

Ekli dosyalar

Katılım
14 Haziran 2006
Mesajlar
575
Altın Üyelik Bitiş Tarihi
10.04.2023
Teşekkürler sıralama tamam .combobox tan seçtiğim tarihten B sutununda kaç tane olduğunu bir hücrede gösterebilirmiyiz.Veri doğrulama ile yaptım ama onda birden fazla tarih var.
 

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,239
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
Teşekkürler sıralama tamam .combobox tan seçtiğim tarihten B sutununda kaç tane olduğunu bir hücrede gösterebilirmiyiz.Veri doğrulama ile yaptım ama onda birden fazla tarih var.
Dosyanız ekte.:cool:
Kod:
Private Sub ComboBox1_Change()
Range("M5").Value = 0
On Error Resume Next
If ComboBox1.Value = "" Then Exit Sub
Range("M5").Value = WorksheetFunction.CountIf(Range("B5:B" & Cells(65536, "B").End(xlUp).Row), CDate(ComboBox1.Value))
End Sub
 

Ekli dosyalar

Üst