After much headbanging and lots of reworded web searches, I have come up with the following formula,
=IF(MATCH("End",A:A)=16,"COVER",IF(SUMPRODUCT(--(B13:B100=Stations))>0,"RUNNING","DEPOT"))
only for it to produce an #N/A error.
I got the SUMPRODUCT part of formula from...