F2 = {=INDEX(A2:A11,MATCH(LARGE(IF(B2:B11="in",C2:C11),1),C2:C11,0),1)}
F3 = {=INDEX(A2:A11,MATCH(LARGE(IF(B2:B11="in",C2:C11),2),C2:C11,0),1)}
F4 = {=INDEX(A2:A11,MATCH(LARGE(IF(B2:B11="in",C2:C11),3),C2:C11,0),1)}
and so on to find the 5 oldest files in order of oldest first. this works fine...