Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
iN eXCEL, I HAVE 2 COLUMNS AS SUCH:
A A EXACTMATCH A B NOMATCH A1 1 PARTIALMATCH IS MISS PARTIALMATCH X NOMATCH I need to do a wildcard comparison between column A to column B and place in Column C the resulting match type. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you can create a User Defined Function (aka UDF) for this as follows.
In a standard code module paste this: Option Explicit Function MatchType(textA As String, textB As String) As String If textA = textB Then MatchType = "EXACTMATCH" ElseIf InStr(textA, textB) 0 Then MatchType = "PARTIALMATCH" ElseIf InStr(textB, textA) 0 Then MatchType = "PARTIALMATCH" Else MatchType = "NOMATCH" End If End Function "dellsilv" wrote in message ... iN eXCEL, I HAVE 2 COLUMNS AS SUCH: A A EXACTMATCH A B NOMATCH A1 1 PARTIALMATCH IS MISS PARTIALMATCH X NOMATCH I need to do a wildcard comparison between column A to column B and place in Column C the resulting match type. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complex comparison of Columns of Data: Extracting unique records after comparison on 4 levels | Excel Programming | |||
Matching Data Columns for comparison | Excel Discussion (Misc queries) | |||
ow to create comparison chart using text as value data? | Charts and Charting in Excel | |||
Using wildcard in VBA comparison? need a hint please. | Excel Programming | |||
Wildcard in conjunction with data comparison | Excel Programming |