SUMIF() only first col of range is added

Libre Office English
Mac OS X 10.9.5 English

equation: =sumif(D6:D500,1,B6:C500)

Popup Definition: SUMIF(range,criteria,sum_range)

purpose: two columns of expense values (e.g. cash in col B, check in col C)
and several columns of expense type with value 1 if expense is that type (food col D, restaurant col E, misc col F)
so if a 1 in the food type column D, then include any value in column B and column C of that row into the total sum.

Only the values in the first column of the sum_range will be added.

Is this a defect or is “sum_range” actually "sum_ROWrange?

It’s not a defect:

Click here for MS Excel Hints on SUMIF


The sum_range argument does not have to be the same size and shape as the range argument. The actual cells that are added are determined by using the upper leftmost cell in the sum_range argument as the beginning cell, and then including cells that correspond in size and shape to the range argument.

You could add two equations of SUMIF: