Hi,
Index match with multiple value in same cell without duplication. In sheet 1 column A contain the range A2:A12 of code and column B contain
the range B2:B12 of text. In Sheet 2 column A&B is code and result.
I am apply the following array formula in sheet2 but I got some error.
=CHOOSE(SUMPRODUCT(--($A2=DATA!A2:$A$12)),VLOOKUP($A2,DATA!$A$2:$B$12,2,0),VLOOKUP($A2,DATA!$A$2:$B$12,2,0)&","&INDEX(DATA!$B$2:$B$12,MATCH($A2,DATA!$A$2:$A$12,0)+1),VLOOKUP($A2,DATA!$A$2:$B$12,2,0)&","&INDEX(DATA!$B$2:$B$12,MATCH($A2,DATA!$A$2:$A$12,0)+1)&","&INDEX(DATA!$B$2:$B$12,MATCH($A2,DATA!$A$2:$A$12,0)+2))
Any help much appreciated.
Sheet2
[TABLE="width: 209"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]CODE[/TD]
[TD]DESIRED REDULT[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL01,LL06[/TD]
[/TR]
[TR]
[TD]5556-PP[/TD]
[TD]X21,X25[/TD]
[/TR]
[TR]
[TD]888-TR[/TD]
[TD]TR01,TR11[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1
[TABLE="width: 150"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]CODE[/TD]
[TD]TEXT[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL06[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL06[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL06[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL01[/TD]
[/TR]
[TR]
[TD]888-TR[/TD]
[TD]TR11[/TD]
[/TR]
[TR]
[TD]5556-PP[/TD]
[TD]X25[/TD]
[/TR]
[TR]
[TD]5556-PP[/TD]
[TD]X21[/TD]
[/TR]
[TR]
[TD]5556-PP[/TD]
[TD]X21[/TD]
[/TR]
[TR]
[TD]888-TR[/TD]
[TD]TR11[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL01[/TD]
[/TR]
[TR]
[TD]888-TR[/TD]
[TD]TR01[/TD]
[/TR]
</tbody>[/TABLE]
Index match with multiple value in same cell without duplication. In sheet 1 column A contain the range A2:A12 of code and column B contain
the range B2:B12 of text. In Sheet 2 column A&B is code and result.
I am apply the following array formula in sheet2 but I got some error.
=CHOOSE(SUMPRODUCT(--($A2=DATA!A2:$A$12)),VLOOKUP($A2,DATA!$A$2:$B$12,2,0),VLOOKUP($A2,DATA!$A$2:$B$12,2,0)&","&INDEX(DATA!$B$2:$B$12,MATCH($A2,DATA!$A$2:$A$12,0)+1),VLOOKUP($A2,DATA!$A$2:$B$12,2,0)&","&INDEX(DATA!$B$2:$B$12,MATCH($A2,DATA!$A$2:$A$12,0)+1)&","&INDEX(DATA!$B$2:$B$12,MATCH($A2,DATA!$A$2:$A$12,0)+2))
Any help much appreciated.
Sheet2
[TABLE="width: 209"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]CODE[/TD]
[TD]DESIRED REDULT[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL01,LL06[/TD]
[/TR]
[TR]
[TD]5556-PP[/TD]
[TD]X21,X25[/TD]
[/TR]
[TR]
[TD]888-TR[/TD]
[TD]TR01,TR11[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1
[TABLE="width: 150"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]CODE[/TD]
[TD]TEXT[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL06[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL06[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL06[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL01[/TD]
[/TR]
[TR]
[TD]888-TR[/TD]
[TD]TR11[/TD]
[/TR]
[TR]
[TD]5556-PP[/TD]
[TD]X25[/TD]
[/TR]
[TR]
[TD]5556-PP[/TD]
[TD]X21[/TD]
[/TR]
[TR]
[TD]5556-PP[/TD]
[TD]X21[/TD]
[/TR]
[TR]
[TD]888-TR[/TD]
[TD]TR11[/TD]
[/TR]
[TR]
[TD]11-JP[/TD]
[TD]LL01[/TD]
[/TR]
[TR]
[TD]888-TR[/TD]
[TD]TR01[/TD]
[/TR]
</tbody>[/TABLE]