- Katılım
- 18 Ağustos 2017
- Mesajlar
- 119
- Excel Vers. ve Dili
- excel.2013
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Kod()
Dim a As Long, b As Integer, say As Integer, met1 As String, met2 As String
For a = 2 To Cells(Rows.Count, "B").End(3).Row
met1 = Cells(a, "B")
met2 = Cells(a, "C")
For b = 1 To Len(met1)
If InStr(1, met2, Mid(met1, b, 1)) > 0 Then
say = say + 1
End If
Next
Cells(a, "D") = say / Len(met1) * 100
say = 0
Next
End Sub
Çok teşekkürlerMerhaba,
Bence çok doğru bir mantık değil ama aşağıdaki kodlar sizin örneğinize göre doğru sonuç üretiyor, deneyiniz...
PHP:Sub Kod() Dim a As Long, b As Integer, say As Integer, met1 As String, met2 As String For a = 2 To Cells(Rows.Count, "B").End(3).Row met1 = Cells(a, "B") met2 = Cells(a, "C") For b = 1 To Len(met1) If InStr(1, met2, Mid(met1, b, 1)) > 0 Then say = say + 1 End If Next Cells(a, "D") = say / Len(met1) * 100 say = 0 Next End Sub