DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
=TOPLA.ÇARPIM((planlama!E7:Z7>=D5)*(planlama!E7:Z7<=D6)*(planlama!E32:Z32=D7)*(planlama!E37:Z37))
Sub bul_topla()
Dim s1 As Worksheet
Dim s2 As Worksheet
Dim i As Long
Set s1 = Sheets("planlama")
Set s2 = Sheets("ozet")
sat1 = s1.Cells(65536, "E").End(xlUp).Row
Application.ScreenUpdating = False
For i = 7 To s1.Cells(5, s1.Columns.Count).End(xlToLeft).Column
If s1.Cells(7, i).Value >= CDate(s2.Cells(5, 4).Value) And _
s1.Cells(7, i).Value <= CDate(s2.Cells(6, 4).Value) Then
For y = 26 To sat1
If s1.Cells(y, i).Value = s2.Cells(7, 4).Value Then
s2.Cells(8, 4).Value = s1.Cells(y + 5, i).Value
End If
Next y
End If
Next i
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [d7]) Is Nothing Then Exit Sub
'If Target = Empty Then Exit Sub
[d8] = ""
Set x = Sheets("planlama").[E8:Z61].Find(What:=[d7])
If Not x Is Nothing Then
Application.EnableEvents = False
fg = x.Address
Do
If Sheets("planlama").Cells(7, x.Column) >= [d5] And [d6] >= Sheets("planlama").Cells(7, x.Column) Then
If Target = x.Value Then [d8] = Sheets("planlama").Cells(x.Row, x.Column).Offset(5, 0) + [d8]
End If
Set x = Sheets("planlama").[E8:Z61].FindNext(x)
Loop While Not x Is Nothing And x.Address <> fg
Application.EnableEvents = True
End If
End Sub
Sub bul_topla()
Dim s1 As Worksheet
Dim s2 As Worksheet
Dim i As Long
Set s1 = Sheets("planlama")
Set s2 = Sheets("ozet")
s2.Range("K1:K65536").ClearContents
sat1 = s1.Cells(65536, "E").End(xlUp).Row
sat2 = s2.Cells(65536, "K").End(xlUp).Row
Application.ScreenUpdating = False
For i = 7 To s1.Cells(5, s1.Columns.Count).End(xlToLeft).Column
If s1.Cells(7, i).Value >= CDate(s2.Cells(5, 4).Value) And _
s1.Cells(7, i).Value <= CDate(s2.Cells(6, 4).Value) Then
For y = 26 To sat1
If s1.Cells(y, i).Value = s2.Cells(7, 4).Value Then
s2.Cells(sat2, 11).Value = s1.Cells(y + 5, i).Value
sat2 = sat2 + 1
End If
Next y
End If
Next i
s2.Cells(8, 4).Value = WorksheetFunction.Sum(s2.Range("K1:K20"))
MsgBox " işlem tamamdır...", , ""
Application.ScreenUpdating = True
End Sub