• DİKKAT

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

Boş hücreleri doldurma

Katılım
29 Kasım 2011
Mesajlar
235
Excel Vers. ve Dili
Excel 2016 English
A sutununda yazan değere göre B sutunu boşsa boşluğu doldurmak istiyorum
örnek;
A sutununda 420 yazıyorsa B sutunundaki boş hücreye AA yazılacak.
 

Ekli dosyalar

ekli kodları denermisiniz.

Kod:
Sub bosd()
For i = 2 To Range("A65536").End(3).Row
If Cells(i, 2).Value = "" Then
If Cells(i, 1).Value = 420 Then
Cells(i, 2).Value = "AA"
ElseIf Cells(i, 1).Value = 440 Then
Cells(i, 2).Value = "BB"
ElseIf Cells(i, 1).Value = 460 Then
Cells(i, 2).Value = "CC"
End If
End If
Next
End Sub
 
Hocam çok teşekkür ederim.
 
Geri
Üst