How to Compaire 3 lists of Names
Closed
Hasan
-
15 Jan 2011 à 20:07
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 15 Jan 2011 à 22:12
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 15 Jan 2011 à 22:12
Related:
- How to Compaire 3 lists of Names
- Psiphon 3 - Download - VPN
- Hitman 3 cheats - Guide
- How to change your best friends list on snapchat to 3 - Guide
- Granny 3 download pc - Download - Horror
- Scratch 3 download - Download - Programming languages
1 response
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
15 Jan 2011 à 22:12
15 Jan 2011 à 22:12
try this macro . the result is in column E. check this with column D.finally you can delete column D
But there are a few more possibilities
you can modify the macro if you desire
But there are a few more possibilities
you can modify the macro if you desire
Sub TEST()
Dim rng As Range, c As Range, j As Integer, k As Integer, x As String, cfind As Range
Range("E1").EntireColumn.Delete
Set rng = Range(Range("A2"), Range("A2").End(xlDown))
For Each c In rng
x = c & " " & c.Offset(0, 1)
j = WorksheetFunction.Search(" ", c.Offset(0, 2))
k = Len(c.Offset(0, 2))
Set cfind = Columns("C:C").Find(what:=x, lookat:=xlWhole)
If Not cfind Is Nothing Then
c.End(xlToRight).Offset(0, 1) = "full match"
GoTo nnext
End If
If c = Left(c.Offset(0, 2), j - 1) Or c.Offset(0, 1) = Right(c.Offset(0, 2), k - j) Then
c.End(xlToRight).Offset(0, 1) = "partial match"
GoTo nnext
End If
If c <> Left(c.Offset(0, 2), j - 1) And c.Offset(0, 1) <> Right(c.Offset(0, 2), k = j) Then
c.End(xlToRight).Offset(0, 1) = "no match"
End If
nnext:
Next c
End Sub