DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub GA()
Range("AO6:AO18") = none
For i = 6 To 18: say = 0
If Cells(i, "AH") = "HT" Or WorksheetFunction.CountIf(Range("AC" & i & ":AG" & i), "") = 5 Then
Cells(i, "AO") = 0
Else:
If WorksheetFunction.CountIf(Range("AC" & i & ":AG" & i), "") = 0 Or WorksheetFunction.CountIf(Range("AC" & i & ":AG" & i), "HT") = 0 Then
Cells(i, "AO") = WorksheetFunction.CountIf(Range("AC" & i & ":AG" & i), ">4")
End If
For Each hucre In Range("AC" & i & ":AG" & i)
If hucre.Value = "HT" Or hucre.Value = "" Then
say = WorksheetFunction.CountIf(Range(Cells(i, hucre.Column), Cells(i, "AG")), ">4")
Cells(i, "AO") = say
End If
Next
End If
Sub SONRAKI_AYADEVİR()
Application.ScreenUpdating = False
Dim aktif As String
aktif = ActiveSheet.Name
For x = 1 To Sheets.Count
If Sheets(x).Name <> "BORDRO" And _
Sheets(x).Name <> "VERİ" And _
Sheets(x).Name <> "FAT" And _
Sheets(x).Name <> "FAT1" And _
Sheets(x).Name <> " BÖL" Then
Sheets(x).Select
Range("AP5:AP104") = none
For i = 5 To 104: say = ""
If Cells(i, "AH") = "HT" Or WorksheetFunction.CountIf(Range("AC" & i & ":AG" & i), "") = 5 Then
Cells(i, "AP") = ""
Else:
If WorksheetFunction.CountIf(Range("AC" & i & ":AG" & i), "") = 0 Or WorksheetFunction.CountIf(Range("AC" & i & ":AG" & i), "HT") = 0 Then
Cells(i, "AP") = WorksheetFunction.CountIf(Range("AC" & i & ":AG" & i), ">4")
End If
For Each hucre In Range("AC" & i & ":AG" & i)
If hucre.Value = "HT" Or hucre.Value = "" Then
say = WorksheetFunction.CountIf(Range(Cells(i, hucre.Column), Cells(i, "AG")), ">4")
Cells(i, "AP") = say
End If
Next
End If
Next
End If
Next
End Sub
Cells(i, "AO") = WorksheetFunction.CountIf(Range("AB" & i & ":AF" & i), ">4")
say = WorksheetFunction.CountIf(Range(Cells(i, hucre.Column), Cells(i, "AF")), ">4")
Cells(i, "AO") = WorksheetFunction.CountIf(Range("AB" & i & ":AF" & i), ">4") + WorksheetFunction.CountIf(Range("AB" & i & ":AF" & i), "İ") + WorksheetFunction.CountIf(Range("AB" & i & ":AF" & i), "R")
say = WorksheetFunction.CountIf(Range(Cells(i, hucre.Column), Cells(i, "AF")), ">4") + WorksheetFunction.CountIf(Range(Cells(i, hucre.Column), Cells(i, "AF")), "İ") + WorksheetFunction.CountIf(Range(Cells(i, hucre.Column), Cells(i, "AF")), "R")