Forum Discussion
Aureanne
May 01, 2019Copper Contributor
Formula SUMIF - mistake
Hi, I used the formula SUMIF and found a mistake on my formula. =SUMIF(K3:K371;"A";J2:J371) instead of =SUMIF(K3:K371;"A";J3:J371). After corrected the formula, I had a different total amount. ...
Twifoo
May 01, 2019Silver Contributor
SUMIF requires that both range and sum_range arguments must always be equal in size and shape; otherwise, Excel coerces the sorter argument to conform to the longer one. When that happens, the result may be different from what you have expected.
My simple advice is that don’t coerce Excel to make your formula conform to its syntax. Rather, always ensure that you conform to Excel’s syntax.
My simple advice is that don’t coerce Excel to make your formula conform to its syntax. Rather, always ensure that you conform to Excel’s syntax.
- SergeiBaklanMay 01, 2019Diamond Contributor
Twifoo , SUMIF doesn't require what ranges have to be the same size, they could be different. Another story is what as a rule better to use same size ranges.
- TwifooMay 01, 2019Silver ContributorExcel insists, and so requires, both range and sum_range arguments to be equal. In the SUMIF syntax, just like law, the word “require” should be construed according to its spirit that gives life to, rather than according to its literal sense that kills, its true meaning.
- SergeiBaklanMay 01, 2019Diamond Contributor
https://support.office.com/en-gb/article/sumif-function-169b8c99-c05c-4483-a712-1697a653039b
As an example, this one works