DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
[FONT="Trebuchet MS"]Sub Emre()
Dim i%, topla%, say%
For i = 1 To Cells(2, Columns.Count).End(1).Column
If Cells(2, i) <> "" Then
say = say + 1
Cells(i, "y") = say
Else
say = Empty
End If
On Error Resume Next
If Cells(i, "Y") = "" And Cells(i - 1, "Y") > 2 Then
topla = topla + Cells(i - 1, "Y")
Range("X2").Value = topla
End If
Next i
i = Empty: topla = empty: say = empty
End Sub[/FONT]
[FONT="Trebuchet MS"]Range("Y:Y").ClearContents[/FONT]
[FONT="Trebuchet MS"]Range("Y:Y").ClearContents
End Sub[/FONT]
Function TOPLAMAL(arazi)
For Each hücre In arazi
If hücre <> "" Then
say = say + 1
ElseIf say > 2 Then
toplam = toplam + say
say = 0
Else
say = 0
End If
Next
If say > 2 Then toplam = toplam + say
TOPLAMAL = toplam
End Function
=TOPLAMAL(A2:V2)