DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Kitapdaki formül, kodlarla yapılmış bir formül. Formülde RenkTopla yı değiştirir yada silerseniz çalışmaz.Vedat Bey;
Gönderdiğiniz tablodaki formülü SUMPRODUCT olarak çevirdim fakat toplamı almıyor. Sorun nedir
.Sarı ıle işaretlenen tutarların toplamının alınmasını ıstıyorum
Tşkler
Function renk(InRange As Range, Optional _
OfText As Boolean = False) As Integer
Application.Volatile True
If OfText = True Then
renk = InRange(1, 1).Font.ColorIndex
Else
renk = InRange(1, 1).Interior.ColorIndex
End If
End Function
Function Renklitopla(InRange As Range, WhatColorIndex As Integer, _
Optional OfText As Boolean = False) As Double
Dim Rng As Range
Dim OK As Boolean
Application.Volatile True
For Each Rng In InRange.Cells
If OfText = True Then
OK = (Rng.Font.ColorIndex = WhatColorIndex)
Else
OK = (Rng.Interior.ColorIndex = WhatColorIndex)
End If
If OK And IsNumeric(Rng.Value) Then
Renklitopla = Renklitopla + Rng.Value
End If
Next Rng
End Function