With the countif formula that I’ve received from this question: Cell for cell match instead of value for value match, is there a formula retains the cell for cell match property as countif does AND, that outputs an offset cell from the lookup range, if there is indeed a match?
=IF(B2<>"",IF(COUNTIF($B$2:B2,B2)<=COUNTIF($E$2:$E$7,B2),"Match",""),"") in cells
C4 and C5 is matching for amounts that coincide with amounts in range
E2 to E7 and returns
"Match" if there indeed is a match.
By replacing the output string
"Match" with an Index – Match formula, I obtain an almost perfect formula that does return an offset cell from the lookup range.
You may notice however, that it returns
"xxxx McDonalds" in cell
C3 instead of
"xxxx Subway" and that, is the problem.
It can be simplified with the use of AGGREGATE to: