Merhaba arkadaşlar, yardımcı olabilir misiniz. Ekteki excel de data verilerinin coğunu sildim upload limitinden.
Vlookup kismi cok zaman aliyor satir sayisinin cok fazla olmasindan, sabredip bekleyemedim ama tahminen 2 saate yakın sürecek gibi gozukuyor aranan değerlerin işlenmesi.(287000 küsür satirda işlem yapılıyor.)
VBA da yardımcı olmanızı istedigim kodlar "module 2" de yer alıyor.(Menu de Button 5 e tanımlanan kodlar.)
Dim x As Long
Dim y As Long
On Error Resume Next
x = Cells(500000, "G").End(xlUp).Row
For y = 2 To x
If Cells(y, "J") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:AW500000"), 49, 0) = "" Then
Cells(y, "J") = "YOK"
Else
Cells(y, "J") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:AW500000"), 49, 0)
Cells(y, "L") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:Q500000"), 17, 0)
Cells(y, "P") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:J500000"), 10, 0)
Cells(y, "R") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:I500000"), 9, 0)
Cells(y, "T") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:EQ500000"), 147, 0)
Cells(y, "V") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:ER500000"), 148, 0)
Cells(y, "N") = WorksheetFunction.VLookup(Range("G" & y), Sheets("Duzenle").Range("A2:B500000"), 2, 0)
Cells(y, "X") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS_GPRS").Range("A2:H500000"), 8, 0)
End If
Next y
Yardımcı olabilirseniz sevinirim, farklı bir formulasyonda önerebilirsiniz. Şimdiden çok teşekkürler ayıracağınız vakit için.
Vlookup kismi cok zaman aliyor satir sayisinin cok fazla olmasindan, sabredip bekleyemedim ama tahminen 2 saate yakın sürecek gibi gozukuyor aranan değerlerin işlenmesi.(287000 küsür satirda işlem yapılıyor.)
VBA da yardımcı olmanızı istedigim kodlar "module 2" de yer alıyor.(Menu de Button 5 e tanımlanan kodlar.)
Dim x As Long
Dim y As Long
On Error Resume Next
x = Cells(500000, "G").End(xlUp).Row
For y = 2 To x
If Cells(y, "J") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:AW500000"), 49, 0) = "" Then
Cells(y, "J") = "YOK"
Else
Cells(y, "J") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:AW500000"), 49, 0)
Cells(y, "L") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:Q500000"), 17, 0)
Cells(y, "P") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:J500000"), 10, 0)
Cells(y, "R") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:I500000"), 9, 0)
Cells(y, "T") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:EQ500000"), 147, 0)
Cells(y, "V") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS").Range("A2:ER500000"), 148, 0)
Cells(y, "N") = WorksheetFunction.VLookup(Range("G" & y), Sheets("Duzenle").Range("A2:B500000"), 2, 0)
Cells(y, "X") = WorksheetFunction.VLookup(Range("G" & y), Sheets("A_BTS_GPRS").Range("A2:H500000"), 8, 0)
End If
Next y
Yardımcı olabilirseniz sevinirim, farklı bir formulasyonda önerebilirsiniz. Şimdiden çok teşekkürler ayıracağınız vakit için.
