This question was asked in Using Sum if Sumifs

How to add horizontally and vertically ??

Rahul Yadav's image