Et cıkıs = sheets("cıkıs")
CC = cıkıs. Range("A10000").end(xlup).row
For X = 2 to SS.
Stok. Range("g" & X).Value = application. Worksheetfunction. Sumıfs(giris. Range("h: H"), giris. Range("D:D"), TRIM(stok. Range("C" & X).Value))
Stok. Range("h" & X).Value = application. Worksheetfunction. Sumıfs(cıkıs. Range("h: H"), cıkıs. Range("D:D"), TRIM(stok. Range("C" & X).Value))
Stok. Range("ı" & X).Value = stok. Range("g" & X).Value - stok. Range("h" & X).Value
Next.
Set stok = nothing.
Set giris = nothing.
Set cıkıs = nothing.
End sub.