Here are solutions with a formula:
Excel 2007 and newer:
Please insert an empty row at the top and try in C2 and copy down (confirm the formula with Ctrl+Shift+Enter; response time after copy down about 20 seconds):
Formula:
=INDEX(A$2:A$34255,MATCH(1,((MID(A$2:A$34255,1,3)=MID(A$2:A$34255,4,3))+(MID(A$2:A$34255,1,3)=MID(A$2:A$34255,5,3))+(MID(A$2:A$34255,2,3)=MID(A$2:A$34255,5,3))>0)*(COUNTIF(C$1:C1,A$2:A$34255)=0),0))
Excel 2021 or 365:
Please try in D2 (no copy down needed; response time within 1 second):
Formula:
FILTER(A2:A34255,(MID(A2:A34255,1,3)=MID(A2:A34255,4,3))+(MID(A2:A34255,1,3)=MID(A2:A34255,5,3))+(MID(A2:A34255,2,3)=MID(A2:A34255,5,3)))
Bookmarks