• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

makro ile coklu eger kullanimi

Katılım
30 Kasım 2011
Mesajlar
205
Excel Vers. ve Dili
Ofis 2016 Tr 64 Bit , Turkce
Merhabalar ekli dosyada gonderdigim makroyu yapmak icin yardimci olabilir msizniz

Saygilar
 

Ekli dosyalar

Merhaba,
Aşağıdaki formülü deneyiniz:
Kod:
=EĞER(A1<>"Gdr";B1/G1;B1)
 
icerisinde suan arkadaslarin yaptigi calisan bir makro var sadece buton eklemedim
 
Kod:
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
 
Kod:
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 saglik
 
Geri
Üst