اذهب الي المحتوي
أوفيسنا

مقارنة بين جدولين ( طلب )( عنوان معدل )


الردود الموصى بها

لا مانع من وضع اسماء

شرط الا تكون هناك مسافات زائدة ما عدا المسافة بين كلمتين

او انت بحاجة الة معادلة اخرى في حال وجود مسافات زائدة

رابط هذا التعليق
شارك

 نفس الموضوع لكن بكود اقصر

Sub othermethod()
    Dim taba As Range, tabb As Range
    Set ws = Sheet1
    lra = ws.Cells(Rows.Count, 1).End(xlUp).Row
    lrb = ws.Cells(Rows.Count, 2).End(xlUp).Row
    Set taba = Range("a2:a" & lra): Set tabb = Range("b2:b" & lrb)
    Set ct = Application.WorksheetFunction
i = 1
For Each x In taba
    If ct.CountIf(tabb, x) >= 1 Then
    Cells(i + 1, 4) = x: i = i + 1
    End If
Next
End Sub

  • Like 1
رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information