- Katılım
- 15 Temmuz 2012
- Mesajlar
- 2,802
- Excel Vers. ve Dili
- Ofis 2021 TR 64 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
=VE($L2<>"";MOD(YUVARLA(TOPLA.ÇARPIM(1/EĞERSAY($L$2:$L2;$L$2:$L2));0);2)=1)
=VE($L2<>"";EĞERSAY($L$2:$L2;$L2)=1)
=VE($L2<>"";MOD(EĞERSAY($L$2:$L2;$L2);2)=0)
=VE($L2<>"";MOD(EĞERSAY($L$2:$L2;$L2);2)=1)
Sub Satir_Renklendir()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Range("Z:Z").Clear
Range("Z1") = "RENK KODU"
Range("A2:Q" & Rows.Count).Interior.ColorIndex = xlNone
Son = Cells(Rows.Count, "L").End(3).Row
Kod = 1
For X = 2 To Son
Cells(X, "Z") = Kod
For Y = X + 1 To Son
If Cells(Y, "L") = Cells(X, "L") Then
Cells(Y, "Z") = Kod
Else
Kod = Kod + 1
If Kod > 3 Then Kod = 1
X = Y - 1
Exit For
End If
Next
Next
Range("Z:Z").AutoFilter 1, 1
Range("A2:Q" & Cells(Rows.Count, "L").End(3).Row).Interior.ColorIndex = 36
Range("Z:Z").AutoFilter 1, 2
Range("A2:Q" & Cells(Rows.Count, "L").End(3).Row).Interior.ColorIndex = 37
Range("Z:Z").AutoFilter 1, 3
Range("A2:Q" & Cells(Rows.Count, "L").End(3).Row).Interior.ColorIndex = 22
ActiveSheet.ShowAllData
Range("Z:Z").Clear
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub