Current location - Training Enrollment Network - Books and materials - How to calculate the sales of a book in a certain year in a spreadsheet
How to calculate the sales of a book in a certain year in a spreadsheet
Please add a complete question, or take a screenshot for example, so that everyone can understand the tricks!

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)