Hi, see the next links...
SUMIF function
"Sum_range should be the same size and shape as range. If it isn't, performance may suffer, and the formula will sum a range of cells that starts with the first cell in sum_range but has the same dimensions as range."
SUMIFS function
"The Criteria_range argument must contain the same number of rows and columns as the Sum_range argument."