DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
=VE((TOPLA(C2:$D2)-((SÜTUN()>8)*$I2))<$B2+$C2
;(TOPLA($D2:D2)-((SÜTUN()>8)*$I2))>$B2+$C2)
Sub Stok_Bitis()
Dim i As Long, deg As Double, j As Integer, topla As Double
Dim son As Long, sut As Integer
son = Cells(Rows.Count, "A").End(xlUp).Row
sut = Cells(1, Columns.Count).End(xlToLeft).Column
Range(Cells(2, "D"), Cells(son, sut)).Interior.ColorIndex = 0
For i = 2 To son
deg = Cells(i, "B") + Cells(i, "C")
For j = 4 To Cells(i, Columns.Count).End(xlToLeft).Column
If Not Cells(1, j) Like "*topla*" Then
topla = topla + Cells(i, j)
End If
If topla > deg Then
Cells(i, j).Interior.ColorIndex = 3
Exit For
End If
Next j
Next i
End Sub
Sub Stok_Bitis()
Dim i As Long, deg As Double, j As Integer, topla As Double
Dim son As Long, sut As Integer
son = Cells(Rows.Count, "A").End(xlUp).Row
sut = Cells(1, Columns.Count).End(xlToLeft).Column
Range(Cells(2, "D"), Cells(son, sut)).Interior.ColorIndex = 0
For i = 2 To son
deg = Cells(i, "B") + Cells(i, "C")
For j = 4 To Cells(i, Columns.Count).End(xlToLeft).Column
If Not Cells(1, j) Like "*topla*" Then
topla = topla + Cells(i, j)
End If
If topla > deg Then
Cells(i, j).Interior.ColorIndex = 3
topla = 0
Exit For
End If
Next j
Next i
End Sub