- Katılım
- 28 Kasım 2007
- Mesajlar
- 919
- Excel Vers. ve Dili
- Office 2010 İngilizce
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub BulYaz()
Dim S1, S2 As Worksheet
Dim c As Range
Dim i As Long
Dim ilkadres As Variant
Set S1 = Sheets("Sheet1")
Set S2 = Sheets("Sheet2")
Application.ScreenUpdating = False
S1.Select
Range("D2:D65536").ClearContents
For i = 2 To [C65536].End(3).Row
With S2.Range("A:A")
Set c = .Find(Cells(i, "A"), LookIn:=xlValues)
If Not c Is Nothing Then
ilkadres = c.Address
Do
If S2.Cells(c.Row, "D").Value = Cells(i, "C") Then
Cells(i, "D") = S2.Cells(c.Row, "C")
End If
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> ilkadres
End If
End With
Next i
Set S1 = Nothing
Set S2 = Nothing
Application.ScreenUpdating = True
End Sub
Olmadı üstat mümkünse formülle çözebilir miyiz?
=İNDİS(Sheet2!$C$2:$C$10000;TOPLA.ÇARPIM(KAÇINCI(1;(Sheet2!$A$2:$A$10000=A2)*(Sheet2!$D$2:$D$10000=C2);0)))
=INDEX(Sheet2!$C$2:$C$10000;SUMPRODUCT(MATCH(1;(Sheet2!$A$2:$A$10000=A2)*(Sheet2!$D$2:$D$10000=C2);0)))