DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Merhaba,
Aşağıdaki formülü deneyiniz:
Kod:=EĞER(A1<>"Gdr";B1/G1;B1)
Sub askm()
Dim Son As Long
Application.ScreenUpdating = False
Son = Range("A" & Rows.Count).End(xlUp).Row ' Toplma Ruble
For i = 2 To Son
On Error GoTo 10
If Cells(i, 1) <> "Gdr" Then
If Cells(i, 7) > 0 Then '
Cells(i, 5) = Cells(i, 3) / Cells(i, 7)
Else
Cells(i, 5) = Cells(i, 2) / Cells(i, 8)
End If
Else
Cells(i, 5) = Cells(i, 2)
End If
10:
Next i
Application.ScreenUpdating = True
MsgBox "Hesaplama tamam...", vbInformation, "ASKM"
End Sub
Sagol Ustad eline saglikKod:Sub askm() Dim Son As Long Application.ScreenUpdating = False Son = Range("A" & Rows.Count).End(xlUp).Row ' Toplma Ruble For i = 2 To Son On Error GoTo 10 If Cells(i, 1) <> "Gdr" Then If Cells(i, 7) > 0 Then ' Cells(i, 5) = Cells(i, 3) / Cells(i, 7) Else Cells(i, 5) = Cells(i, 2) / Cells(i, 8) End If Else Cells(i, 5) = Cells(i, 2) End If 10: Next i Application.ScreenUpdating = True MsgBox "Hesaplama tamam...", vbInformation, "ASKM" End Sub