phantomx013
New Member
- Joined
- Apr 12, 2014
- Messages
- 16
Hi
I have 2 sheets in an excel file.
Sheet 1 has 2 columns as below:
[TABLE="width: 309"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]#47094[/TD]
[TD]#37919[/TD]
[/TR]
[TR]
[TD]#47073[/TD]
[TD]#45258[/TD]
[/TR]
[TR]
[TD]#47175, #47178, #47179[/TD]
[TD]#44610[/TD]
[/TR]
[TR]
[TD]N/A[/TD]
[TD]#36090[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2 has 1 column
[TABLE="width: 58"]
<colgroup><col></colgroup><tbody>[TR]
[TD]#37919[/TD]
[/TR]
[TR]
[TD]#45258[/TD]
[/TR]
[TR]
[TD]#44610[/TD]
[/TR]
[TR]
[TD]#36090
[/TD]
[/TR]
</tbody>[/TABLE]
I want to compare sheet1.column2 with sheet1.column1 and put the corresponding results in sheet2.column2
What I did was I select the data in sheet1 and gave it name range "values". Next I used the formula =VLOOKUP(CONCATENATE("*",A1,"*"),Values,2,FALSE) for sheet2.column2
This give me only single corresponding value. e.g. it would give me below result
#37919 #47094
#45258 #47073
#44610 #47175
#36090 #N/A
Whereas I would like to have it in the below format:
#37919 #47094
#45258 #47073
#44610 #47175, #47178, #47189 <<<<<<<<<<<<<<
#36090 #N/A
Can someone help me please? I have about 6000 rows to compare !
Regards
MB
I have 2 sheets in an excel file.
Sheet 1 has 2 columns as below:
[TABLE="width: 309"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]#47094[/TD]
[TD]#37919[/TD]
[/TR]
[TR]
[TD]#47073[/TD]
[TD]#45258[/TD]
[/TR]
[TR]
[TD]#47175, #47178, #47179[/TD]
[TD]#44610[/TD]
[/TR]
[TR]
[TD]N/A[/TD]
[TD]#36090[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2 has 1 column
[TABLE="width: 58"]
<colgroup><col></colgroup><tbody>[TR]
[TD]#37919[/TD]
[/TR]
[TR]
[TD]#45258[/TD]
[/TR]
[TR]
[TD]#44610[/TD]
[/TR]
[TR]
[TD]#36090
[/TD]
[/TR]
</tbody>[/TABLE]
I want to compare sheet1.column2 with sheet1.column1 and put the corresponding results in sheet2.column2
What I did was I select the data in sheet1 and gave it name range "values". Next I used the formula =VLOOKUP(CONCATENATE("*",A1,"*"),Values,2,FALSE) for sheet2.column2
This give me only single corresponding value. e.g. it would give me below result
#37919 #47094
#45258 #47073
#44610 #47175
#36090 #N/A
Whereas I would like to have it in the below format:
#37919 #47094
#45258 #47073
#44610 #47175, #47178, #47189 <<<<<<<<<<<<<<
#36090 #N/A
Can someone help me please? I have about 6000 rows to compare !
Regards
MB