DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub verial()
Set s1 = Sheets("sayfa2")
For a = 6 To [c65536].End(3).Row
For b = 5 To [IV5].End(xlToLeft).Column Step 2
sut = WorksheetFunction.Match(Cells(5, b), s1.[5:5], 0)
Cells(a, b) = WorksheetFunction.SumIf(s1.Columns(3), Cells(a, "c"), s1.Columns(sut))
Next
Next
End Sub
Sub AKTAR()
Set SP = Sheets("PLAN")
Set SMS = Sheets("MSTOK")
Set SAS = Sheets("ASTOK")
For X = 4 To SP.[C65536].End(3).Row
If SP.Cells(X, 3) <> "" Then
For Y = 11 To SP.[IV1].End(1).Column
If SP.Cells(1, Y) Like "*" & 2 & "*" Then
Sütun = WorksheetFunction.Match(SP.Cells(1, Y), SMS.[1:1], 0)
SP.Cells(X, Y) = WorksheetFunction.SumIf(SMS.Columns(3), SP.Cells(X, 3), SMS.Columns(Sütun))
ElseIf SP.Cells(1, Y) Like "*" & 3 & "*" Then
Sütun = WorksheetFunction.Match(SP.Cells(1, Y), SAS.[1:1], 0)
SP.Cells(X, Y) = WorksheetFunction.SumIf(SAS.Columns(2), SP.Cells(X, 3), SAS.Columns(Sütun))
End If
Next
End If
Next
Set SP = Nothing
Set SMS = Nothing
Set SAS = Nothing
MsgBox "İŞLEMİNİZ TAMAMLANMIŞTIR.", vbInformation
End Sub
Sub AKTAR()
Application.ScreenUpdating = False
Set SP = Sheets("PLAN")
Set SMS = Sheets("MSTOK")
Set SAS = Sheets("ASTOK")
For X = 4 To SP.[C65536].End(3).Row
If SP.Cells(X, 3) <> "" Then
If SP.Cells(X, 3) <> "Stok" Then
For Y = 11 To SP.[IV1].End(1).Column
If SP.Cells(1, Y) Like "*" & 2 & "*" Then
Set Sütun = SMS.[1:1].Find(SP.Cells(1, Y), LookAt:=xlWhole)
If Not Sütun Is Nothing Then
Sütun = Sütun.Column
SP.Cells(X, Y) = WorksheetFunction.SumIf(SMS.Columns(3), SP.Cells(X, 3), SMS.Columns(Sütun))
End If
ElseIf SP.Cells(1, Y) Like "*" & 3 & "*" Then
Set Sütun = SAS.[1:1].Find(SP.Cells(1, Y), LookAt:=xlWhole)
If Not Sütun Is Nothing Then
Sütun = Sütun.Column
SP.Cells(X, Y) = WorksheetFunction.SumIf(SAS.Columns(2), SP.Cells(X, 3), SAS.Columns(Sütun))
End If
End If
Next
End If
End If
Next
Set SP = Nothing
Set SMS = Nothing
Set SAS = Nothing
Application.ScreenUpdating = True
MsgBox "İŞLEMİNİZ TAMAMLANMIŞTIR.", vbInformation
End Sub