Using your data in cells A1:B6 . . .
D1: Red
D2: 3
D3:
=INDEX($B$1:$B$6,MATCH($D$2,--COUNTIF(INDIRECT("$A$1:$A$"&ROW(1:6)),$D$1),0))
Note: Commit that array formula by holding down the [Ctrl] and [Shift]
keys when you press [Enter].
That function will return the Col B value that corresponds to the 3rd
occurrence of 'Red' in Col A.
Does that help?
•••••••••••
Regards,
Ron
--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile:
http://www.excelforum.com/member.php...o&userid=21419
View this thread:
http://www.excelforum.com/showthread...hreadid=481724