Hi

OK, another go.

=IF(SUMPRODUCT(--($A$1:$A$2004=A2),--($H$1:$H$2004=H2),--($D$1:$D$2004<$AE$3)),"PRE","POST")
rylo