DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
SON = Sheets("plan").Range("A65536").End(xlUp).Row
If Intersect(Target, Range("I" & SON)) Is Nothing Then GoTo ATLA
fd = Cells(SON, "I").Value
If Cells(SON, "I").Value = Cells(SON - 1, "I").Value Or Cells(SON, "I").Value = Cells(SON - 1, "V").Value Then
If Cells(SON, "I").Value = Cells(SON - 1, "I").Value Then Cells(SON, "S").Value = Cells(SON - 1, "T").Value
If Cells(SON, "I").Value = Cells(SON - 1, "V").Value Then Cells(SON, "S").Value = Cells(SON - 1, "AG").Value
Else
Cells(SON, "S").Value = Cells(SON, "B").Value
If Cells(SON, "I").Value = "" Then Cells(SON, "S").Value = ""
End If
ATLA:
If Intersect(Target, Range("V" & SON)) Is Nothing Then Exit Sub
fd = Cells(SON, "V").Value
If Cells(SON, "V").Value = Cells(SON - 1, "I").Value Or Cells(SON, "V").Value = Cells(SON - 1, "V").Value Then
If Cells(SON, "V").Value = Cells(SON - 1, "I").Value Then Cells(SON, "AF").Value = Cells(SON - 1, "T").Value
If Cells(SON, "V").Value = Cells(SON - 1, "V").Value Then Cells(SON, "AF").Value = Cells(SON - 1, "AG").Value
Else
Cells(SON, "AF").Value = Cells(SON, "B").Value
If Cells(SON, "V").Value = "" Then Cells(SON, "AF").Value = ""
End If
End Sub
Sn. Forum Ustadları sizlerden destek bekliyorum..sanıyorum forumun tarihinde sorulmuş en zor soru gibi geliyor bana.
Private Sub Worksheet_Change(ByVal Target As Range)
SON = Sheets("plan").Range("A65536").End(xlUp).Row
If Intersect(Target, Range("I" & SON)) Is Nothing Then GoTo ATLA
Call FEDEAL
'------I SÜTUNU----------
If Cells(SON, "I").Value = "" Then
Cells(SON, "S").Value = ""
Exit Sub
End If
If Cells(SON, "I").Value = "A" Or Cells(SON, "I").Value = "a" Then
If Cells(1, "AM").Value = 0 Then
Cells(SON, "S").Value = Cells(SON, "B").Value
Else
Cells(SON, "S").Value = Cells(1, "AM").Value
End If
End If
If Cells(SON, "I").Value = "B" Or Cells(SON, "I").Value = "b" Then
If Cells(1, "AO").Value = 0 Then
Cells(SON, "S").Value = Cells(SON, "B").Value
Else
Cells(SON, "S").Value = Cells(1, "AO").Value
End If
End If
If Cells(SON, "I").Value = "C" Or Cells(SON, "I").Value = "c" Then
If Cells(1, "AQ").Value = 0 Then
Cells(SON, "S").Value = Cells(SON, "B").Value
Else
Cells(SON, "S").Value = Cells(1, "AQ").Value
End If
End If
Exit Sub
ATLA:
If Intersect(Target, Range("V" & SON)) Is Nothing Then Exit Sub
Call FEDEAL
'------V SÜTUNU----------
If Cells(SON, "V").Value = "" Then
Cells(SON, "AF").Value = ""
Exit Sub
End If
If Cells(SON, "V").Value = "A" Or Cells(SON, "v").Value = "a" Then
If Cells(1, "am").Value = 0 Then
Cells(SON, "AF").Value = Cells(SON, "B").Value
Else
Cells(SON, "AF").Value = Cells(1, "AM").Value
End If
End If
If Cells(SON, "V").Value = "B" Or Cells(SON, "v").Value = "b" Then
If Cells(1, "aO").Value = "" Then
Cells(SON, "AF").Value = Cells(SON, "B").Value
Else
Cells(SON, "AF").Value = Cells(1, "AO").Value
End If
End If
If Cells(SON, "V").Value = "C" Or Cells(SON, "v").Value = "c" Then
If Cells(1, "aQ").Value = 0 Then
Cells(SON, "AF").Value = Cells(SON, "B").Value
Else
Cells(SON, "AF").Value = Cells(1, "AQ").Value
End If
End If
End Sub
Sub FEDEAL()
Columns("ca").Clear
Columns("cb").Clear
Columns("cc").Clear
SON = Sheets("plan").Range("A65536").End(xlUp).Row
For I = 2 To SON
If Cells(I, "I").Value = "A" Then
SN = Sheets("plan").Range("CA65536").End(xlUp).Row + 1
Cells(SN, "CA").Value = Cells(I, "t").Value
End If
If Cells(I, "I").Value = "B" Then
SN = Sheets("plan").Range("CB65536").End(xlUp).Row + 1
Cells(SN, "CB").Value = Cells(I, "t").Value
End If
If Cells(I, "I").Value = "C" Then
SN = Sheets("plan").Range("CC65536").End(xlUp).Row + 1
Cells(SN, "CC").Value = Cells(I, "t").Value
End If
If Cells(I, "v").Value = "A" Then
SN = Sheets("plan").Range("CA65536").End(xlUp).Row + 1
Cells(SN, "CA").Value = Cells(I, "ag").Value
End If
If Cells(I, "v").Value = "B" Then
SN = Sheets("plan").Range("CB65536").End(xlUp).Row + 1
Cells(SN, "CB").Value = Cells(I, "ag").Value
End If
If Cells(I, "v").Value = "C" Then
SN = Sheets("plan").Range("CC65536").End(xlUp).Row + 1
Cells(SN, "CC").Value = Cells(I, "ag").Value
End If
Next
Cells(1, "AM").Value = WorksheetFunction.Max(Range("CA1:CA65536"))
Cells(1, "AO").Value = WorksheetFunction.Max(Range("CB1:CB65536"))
Cells(1, "AQ").Value = WorksheetFunction.Max(Range("CC1:CC65536"))
End Sub