SUMIF only works with the one column to Sum. there are several work arounds which you can view at the following link. Note it is not a Microsoft site so take care if clicking any advertising links.
https://www.ablebits.com/office-addins-blog/excel-sumif-miltiple-columns/