Hi All, I have a requirement in which I need to do lookup with the input data from other file even if the data has one value and the lookup data has multiple values with comma as a delimiter. Here the 2 lookup values are Criteria and ID, both the data has to be matched the we can have the final output.
ex. Input 1 Input 2
Criteria ID Comment Criteria ID Comment
A 123,132 A 132 Valid
B 145 B 145 Valid
C 123,789 C 123 Remark
D 555 D 111 Valid
E 666,777,111 E 777 Valid
F 454,676 F 222 Remark
G 767 G 767 Valid
Output :
Criteria ID Comment
A 123,132 Valid
B 145 Valid
C 123,789 Remark
D 555
E 666,777,111 Valid
F 454,676
G 767 Valid
Here as you can see in the output even if one data is matching the output will have the comment of 2nd Input.
Can anyone help me out ?
@Kaish You can join on the criteria column and then use a formula tool with the contains function to check matches and wipe out comments where there is not a match. Finally deselect your extra id column with a select 2.
@Kaish Another approach using only Find Replace tool -
Use the find replace tool, F side will be input 1 and R side will be input 2. You will select ID as the find within field and find value (make sure ID are string fields, if not use a select tool to convert). Then select Comment in append fields to record and rest everything will remain same. Let me know if this works.
@Kaish one way of doing this