Hi,
I am using this formula
=CHOOSE(SUMPRODUCT(--(B11=A1:A8)),
VLOOKUP(B11,A1:B8,2,0),
VLOOKUP(B11,A1:B8,2,0) & ", " & INDEX(B1:B8,MATCH(B11,A1:A8,0)+1),
VLOOKUP(B11,A1:B8,2,0) & ", " & INDEX(B1:B8,MATCH(B11,A1:A8,0)+1) & ", " & INDEX(B1:B8,MATCH(B11,A1:A8,0)+2))
to return more than one value in a cell from VLOOKUP in relation to this thread
https://www.mrexcel.com/forum/excel-questions/647235-vlookup-return-multiple-values-same-cell.html
It works fine except that some of the cells that are being searched have more than one value themselves so I need to use a "contains" expression rather than just equals.
I have tried a wildcard "*"& B11 &"*" which returns a result if the searched cell "contains" the value of the refernce cell but I seem to have lost the abilty to return more than one value in a cell. Am I putting the wildcrd in the wrong place?
Many thanks
Phil
I am using this formula
=CHOOSE(SUMPRODUCT(--(B11=A1:A8)),
VLOOKUP(B11,A1:B8,2,0),
VLOOKUP(B11,A1:B8,2,0) & ", " & INDEX(B1:B8,MATCH(B11,A1:A8,0)+1),
VLOOKUP(B11,A1:B8,2,0) & ", " & INDEX(B1:B8,MATCH(B11,A1:A8,0)+1) & ", " & INDEX(B1:B8,MATCH(B11,A1:A8,0)+2))
to return more than one value in a cell from VLOOKUP in relation to this thread
https://www.mrexcel.com/forum/excel-questions/647235-vlookup-return-multiple-values-same-cell.html
It works fine except that some of the cells that are being searched have more than one value themselves so I need to use a "contains" expression rather than just equals.
I have tried a wildcard "*"& B11 &"*" which returns a result if the searched cell "contains" the value of the refernce cell but I seem to have lost the abilty to return more than one value in a cell. Am I putting the wildcrd in the wrong place?
Many thanks
Phil