0

I have this comma separated values in column A in and corresponding values in column B.

I want to lookup values of column E and return the values in column F where duplicate values return the next corresponding value of the same match.

excel lookup

I have tried this formulae but did not get the desired results

    =INDEX($B$2:$B$13, SMALL(IF("*"&E2&"*"=$A$2:$A$13, 
ROW($A$2:$A$16116)-MIN(ROW($A$2:$A$13))+1, 0), 
COUNTIF(E2:$E$2, E2)))

Please anyone here to help me?

0

2 Answers 2

1

Is this what you are looking for, there may be a much more elegant & eloquent way to solve however even this works as well,

Formula used in cell E2

    =IFERROR(INDEX($B$2:$B$13,AGGREGATE(15,6,
(ROW($B$2:$B$13)-1)/ISNUMBER(SEARCH(", "&D2&", ",", "&$A$2:$A$13&", ")),
COUNTIF($D$2:D2,D2))),"")

FORMULA_SOLUTION

Sign up to request clarification or add additional context in comments.

Comments

0

In F2:

=INDEX(FILTER(B$2:B$13,ISNUMBER(FIND(","&E2&",",","&SUBSTITUTE(A$2:A$13," ","")&","))),COUNTIF(E$2:E2,E2))

and copied down.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.