Merhaba
Altta ki makroyu dosyamda kullandığımda sayısal değer gelmesi gereken
1,2,3,4,5,6,7,8,10,11,12,12,16,17,1819,20,23,24,25,26,27 parametreli değerlere veri gelmiyor.
kurgu;
1,2,3,4,5,6,7,8,10,11,12,12,16,17,1819,20,23,24,25,26,27 parametreli değerlere veriler gelecek. bu çalışmıyor
9,14,,15,22 parametreli değerlere "-" gelecek bu çalışıyor.
eğer veri bulamazsa değer bulunamadı yazacak.
Örnek Dosya altta ki linkte makroda alttadır.
Yardımcı olabilirmisiniz
http://dosya.web.tr/RzoXWW
Sub BUL_BRN()
Set s = Sheets("RAPOR")
Set e = Sheets("EYLÜL_2017")
brn2 = Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 16, _
17, 18, 19, 20, 21, 23, 24, 25, 26, 27)
brn3 = Array(13, 6, 7, 55, 9, 10, 17, 18, 19, 21, 26, 27, _
23, 22, 29, 30, 31, 32, 33, 34, 35, 36, 37)
For sat = 8 To 37
If s.Cells(sat, "C") = "" Then GoTo 10
If s.Cells(sat, "C") = 9 Or s.Cells(sat, "C") = 14 Or _
s.Cells(sat, "C") = 15 Or s.Cells(sat, "C") = 22 Then
s.Cells(sat, "F") = "-"
ElseIf WorksheetFunction.CountIf(e.[E:E], s.[B1] & s.[B2]) = 0 Then
s.Cells(sat, "F") = "DEĞER BULUNAMADI"
Else
esat = WorksheetFunction.Match(s.[B1] & s.[B2], e.[E:E], 0)
esut = WorksheetFunction.Lookup(s.Cells(sat, "C"), brn2, brn3)
s.Cells(sat, "F") = Sheets("EYLÜL_2017").Cells(esat, esut)
End If
10: Next
End Sub
Altta ki makroyu dosyamda kullandığımda sayısal değer gelmesi gereken
1,2,3,4,5,6,7,8,10,11,12,12,16,17,1819,20,23,24,25,26,27 parametreli değerlere veri gelmiyor.
kurgu;
1,2,3,4,5,6,7,8,10,11,12,12,16,17,1819,20,23,24,25,26,27 parametreli değerlere veriler gelecek. bu çalışmıyor
9,14,,15,22 parametreli değerlere "-" gelecek bu çalışıyor.
eğer veri bulamazsa değer bulunamadı yazacak.
Örnek Dosya altta ki linkte makroda alttadır.
Yardımcı olabilirmisiniz
http://dosya.web.tr/RzoXWW
Sub BUL_BRN()
Set s = Sheets("RAPOR")
Set e = Sheets("EYLÜL_2017")
brn2 = Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 16, _
17, 18, 19, 20, 21, 23, 24, 25, 26, 27)
brn3 = Array(13, 6, 7, 55, 9, 10, 17, 18, 19, 21, 26, 27, _
23, 22, 29, 30, 31, 32, 33, 34, 35, 36, 37)
For sat = 8 To 37
If s.Cells(sat, "C") = "" Then GoTo 10
If s.Cells(sat, "C") = 9 Or s.Cells(sat, "C") = 14 Or _
s.Cells(sat, "C") = 15 Or s.Cells(sat, "C") = 22 Then
s.Cells(sat, "F") = "-"
ElseIf WorksheetFunction.CountIf(e.[E:E], s.[B1] & s.[B2]) = 0 Then
s.Cells(sat, "F") = "DEĞER BULUNAMADI"
Else
esat = WorksheetFunction.Match(s.[B1] & s.[B2], e.[E:E], 0)
esut = WorksheetFunction.Lookup(s.Cells(sat, "C"), brn2, brn3)
s.Cells(sat, "F") = Sheets("EYLÜL_2017").Cells(esat, esut)
End If
10: Next
End Sub
