- Katılım
- 19 Ağustos 2006
- Mesajlar
- 644
- Excel Vers. ve Dili
- Microsoft® Excel® Microsoft 365 için MSO /64 bit /Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub RTopla()
Dim i As Long
For i = 2 To Cells(Rows.Count, "A").End(3).Row
If Range("A" & i).Interior.ColorIndex > 0 Then _
Range("D" & i) = Range("B" & i) + Range("C" & i)
Next i
End Sub
Yerleşik fonksiyon.
=IF(Renki(A2)>0;B2+C2;"")
KTF için:
Function Renki(aln As Range) As Integer
Application.Volatile
Renki = aln.Interior.ColorIndex
End Function
KTF'yi tetiklemek için:
Sub Macro1()
Calculate
End Sub
Function SartRenkTopla(KontrolHucre As Range) As Boolean
Application.Volatile
If KontrolHucre.Interior.ColorIndex > 0 Then SartRenkTopla = True
End Function
=SartRenkTopla(A2)*TOPLA(B2;C2)
=SartRenkTopla(A2)*ÇARPIM(B2;C2)