If the date is in column B, the book name is in column C and the sales amount is in column D, enter.
=SUMPRODUCT ((year (B2:B200)= year) *(C2:C200= a book) *D2:D200)