sward175
Özel Üye
- Katılım
- 4 Şubat 2011
- Mesajlar
- 1,196
- Excel Vers. ve Dili
- Excel Vers. ve Dili:
Microsoft Office Professional Plus 2016
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
=renksay([COLOR="Blue"]A2:A32[/COLOR];[COLOR="Lime"]$E$1[/COLOR])
Function renksay(range_data As Range, criteria As Range) As Long
Dim datax As Range
Dim xcolor As Long
Set sw = Sheets("[B][COLOR="Red"]Sayfa1[/COLOR][/B]") ' Sayım yapılacak SAYFA adı.
xcolor = criteria.Interior.ColorIndex
For Each datax In range_data
If datax.Interior.ColorIndex = xcolor Then
renksay = renksay + 1
End If
Next datax
End Function