Soru Formülsüz toplama işlemi

Katılım
12 Eylül 2021
Mesajlar
45
Excel Vers. ve Dili
Microsoft Office 2016 Türkçe
Altın Üyelik Bitiş Tarihi
01-03-2024
Merhaba,
aşağıdaki "sonuç" gibi vba nasıl toplama yaptıra bilirim


244447
 

RBozkurt

𐱅𐰇𐰼𐰚
Altın Üye
Katılım
10 Ocak 2018
Mesajlar
686
Excel Vers. ve Dili
Microsoft Office 2024
Google Sheets
Altın Üyelik Bitiş Tarihi
19-12-2026
Kod:
Sub topla()
    Dim lastRow As Long
    Dim i As Long
   
    lastRow = Cells(Rows.Count, "C").End(xlUp).Row
   
    For i = 2 To lastRow
        If Cells(i, "C").Value <> "" And Cells(i, "D").Value <> "" And Cells(i, "E").Value <> "" And Cells(i, "F").Value <> "" And Cells(i, "G").Value <> "" Then
            Cells(i, "G").Value = Cells(i, "C").Value - (Cells(i, "D").Value + Cells(i, "E").Value + Cells(i, "F").Value + Cells(i, "G").Value)
        End If
    Next i
End Sub
 
Katılım
12 Eylül 2021
Mesajlar
45
Excel Vers. ve Dili
Microsoft Office 2016 Türkçe
Altın Üyelik Bitiş Tarihi
01-03-2024
Kod:
Sub topla()
    Dim lastRow As Long
    Dim i As Long
  
    lastRow = Cells(Rows.Count, "C").End(xlUp).Row
  
    For i = 2 To lastRow
        If Cells(i, "C").Value <> "" And Cells(i, "D").Value <> "" And Cells(i, "E").Value <> "" And Cells(i, "F").Value <> "" And Cells(i, "G").Value <> "" Then
            Cells(i, "G").Value = Cells(i, "C").Value - (Cells(i, "D").Value + Cells(i, "E").Value + Cells(i, "F").Value + Cells(i, "G").Value)
        End If
    Next i
End Sub
Hocam kod çalışmıyor
 

Tevfik_Kursun

Altın Üye
Katılım
30 Temmuz 2012
Mesajlar
3,792
Excel Vers. ve Dili
Office 2016 Pro - Türkçe 64 Bit
Altın Üyelik Bitiş Tarihi
12-02-2029
Merhaba Arkadaşım,
Kod:
Sub topla()
    Dim lastRow As Long
    Dim i As Long
    
    lastRow = Cells(Rows.Count, "C").End(xlUp).Row
  
    For i = 2 To lastRow
            Cells(i, "G").Value = Cells(i, "C").Value - (Cells(i, "D").Value + Cells(i, "E").Value + Cells(i, "F").Value + Cells(i, "G").Value)
    Next i
End Sub
Bu haliyle deneyin
İyi çalışmalar
 
Katılım
12 Eylül 2021
Mesajlar
45
Excel Vers. ve Dili
Microsoft Office 2016 Türkçe
Altın Üyelik Bitiş Tarihi
01-03-2024
Merhaba Arkadaşım,
Kod:
Sub topla()
    Dim lastRow As Long
    Dim i As Long
   
    lastRow = Cells(Rows.Count, "C").End(xlUp).Row
 
    For i = 2 To lastRow
            Cells(i, "G").Value = Cells(i, "C").Value - (Cells(i, "D").Value + Cells(i, "E").Value + Cells(i, "F").Value + Cells(i, "G").Value)
    Next i
End Sub
Bu haliyle deneyin
İyi çalışmalar
Çok Teşekkür ederim İşimi gördü.
 
Üst