- Katılım
- 8 Mart 2009
- Mesajlar
- 504
- Excel Vers. ve Dili
- 2010
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Intersect(Target, [E3:E65536]) Is Nothing Then Exit Sub
Set Aralık = Range("D39000:D65536")
Set Bul = Aralık.Find(Target, [COLOR=red]LookAt:=xlWhole[/COLOR])
If Not Bul Is Nothing Then
Application.EnableEvents = False
Adres = Bul.Address
Do
Target.Offset(0, -1) = Cells(Bul.Row, "E")
Set Bul = Aralık.FindNext(Bul)
Loop While Not Bul Is Nothing And Bul.Address <> Adres
Application.EnableEvents = True
End If
End Sub
=TOPLA.ÇARPIM((Sayfa1!$B$3:$B$1000>=$A$1)*(Sayfa1!$B$3:$B$1000<=$A$2)*(Sayfa1!$C$3:$C$1000=$C5))
=TOPLA.ÇARPIM((Sayfa1!$B$3:$B$1000>=$A$1)*(Sayfa1!$B$3:$B$1000<=$A$2)*(Sayfa1!$C$3:$C$1000=$O4)*ESAYIYSA(MBUL(P$3;Sayfa1!$E$3:$E$1000;1)))
Option Explicit
Sub SAY1()
Dim S1 As Worksheet, S2 As Worksheet, X As Long
Dim T1 As Date, T2 As Date, SAY As Long
Dim BUL As Range, ADRES As String
Set S1 = Sheets("Sayfa1")
Set S2 = Sheets("Sayfa2")
T1 = S2.Range("A1")
T2 = S2.Range("A2")
For X = 5 To S2.Range("C65536").End(3).Row
Set BUL = S1.Range("C:C").Find(S2.Cells(X, "C"), LookAt:=xlWhole)
If Not BUL Is Nothing Then
ADRES = BUL.Address
Do
If S1.Cells(BUL.Row, "B") >= T1 And S1.Cells(BUL.Row, "B") <= T2 Then
SAY = SAY + 1
End If
Set BUL = S1.Range("C:C").FindNext(BUL)
Loop While Not BUL Is Nothing And BUL.Address <> ADRES
End If
S2.Cells(X, "D") = SAY
SAY = 0
Next
Set BUL = Nothing
Set S1 = Nothing
Set S2 = Nothing
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Sub SAY2()
Dim S1 As Worksheet, S2 As Worksheet, X As Long, Y As Byte
Dim T1 As Date, T2 As Date
Dim BUL As Range, ADRES As String
Set S1 = Sheets("Sayfa1")
Set S2 = Sheets("Sayfa2")
T1 = S2.Range("A1")
T2 = S2.Range("A2")
S2.Range("P4:S65536").ClearContents
For X = 4 To S2.Range("O65536").End(3).Row
Set BUL = S1.Range("C:C").Find(S2.Cells(X, "O"), LookAt:=xlWhole)
If Not BUL Is Nothing Then
ADRES = BUL.Address
Do
If S1.Cells(BUL.Row, "B") >= T1 And S1.Cells(BUL.Row, "B") <= T2 Then
For Y = 16 To 19
If S1.Cells(BUL.Row, "E") Like "*" & S2.Cells(3, Y) & "*" Then
S2.Cells(X, Y) = S2.Cells(X, Y) + 1
End If
Next
End If
Set BUL = S1.Range("C:C").FindNext(BUL)
Loop While Not BUL Is Nothing And BUL.Address <> ADRES
End If
Next
Set BUL = Nothing
Set S1 = Nothing
Set S2 = Nothing
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Option Explicit
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
SAY1
SAY2
End Sub
Option Explicit
Sub KİTAPLAR_ARASI_AKTAR()
Dim K1 As Workbook, K2 As Workbook
Set K1 = Workbooks("TÜM VUKUATLAR.xls")
Set K2 = Workbooks.Open(ThisWorkbook.Path & "\" & "ARAMA SON.xls")
K1.Sheets("TÜM VUKUATLAR").Range("A1:AB65536").Copy K2.Sheets("Sayfa1").Range("A1")
K2.Save
K2.Close
Set K1 = Nothing
Set K2 = Nothing
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub