- Katılım
- 25 Aralık 2007
- Mesajlar
- 335
- Excel Vers. ve Dili
- exel 2000 türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
sorunum şu: 7 nci satır için örnek veriyorum ama tüm satırlar için uygulanacaktır.eğer c7 hücresi "s" ise d7 ile e7 yi carpıp sonucu f7 ye yazacak ve g 7 de 0 yazacak.Ancak c7 a ise d7 ile e 7 yi carpıp sonucu g7e yazıp f7 yede 0 yazacak
=EĞER($C7="s";($D7*$E7);EĞER($C7="a";0;""))
=EĞER($C7="a";($D7*$E7);EĞER($C7="s";0;""))
Option Explicit
Sub BAKİYELERİ_HESAPLA()
Dim X As Long
For X = 7 To Range("A65536").End(3).Row
If UCase(Cells(X, "C")) = "S" Then
Cells(X, "F") = Cells(X, "D") * Cells(X, "E")
Cells(X, "G") = 0
ElseIf UCase(Cells(X, "C")) = "A" Then
Cells(X, "G") = Cells(X, "D") * Cells(X, "E")
Cells(X, "F") = 0
End If
Next
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Son
If Intersect(Target, [C7:E65536]) Is Nothing Then Exit Sub
If Target.Row < 7 Then Exit Sub
If UCase(Cells(Target.Row, "C")) = "S" Then
Cells(Target.Row, "F") = Cells(Target.Row, "D") * Cells(Target.Row, "E")
Cells(Target.Row, "G") = 0
ElseIf UCase(Cells(Target.Row, "C")) = "A" Then
Cells(Target.Row, "G") = Cells(Target.Row, "D") * Cells(Target.Row, "E")
Cells(Target.Row, "F") = 0
End If
Son:
End Sub