Sumif two criteria in different row/column

month Date description amount
1 1/20/13 apple 16
1 1/28/13 grapes 20
2 2/1/13 apple 5

I want to add all the apple in the same month. I’m making the summary below. In excel it is usually sumifs() but it seems that Calc doesn’t allow it. Can anybody help me?

apple 16 5
grapes 20

But you don’t want to try to choose Data - Pivot Table - Create?

You can take a look to this threads:

But please take in consideration the JohnSUN proposal about using Pivot Table, It is design for those tasks.