You can do something like this..

=SUMPRODUCT((A1:A13="A1")*(B1:D13="pst"))