Joseph,

thank you very much - I don't think I could ever have come up with that array formula on my own - I'll test it against my bigger database at work tonight and get back to you if there's any problems.

Thank you again, much appreciated.

Cheers,

AJ