sumif vs. sumproduct giving #VALUE!

MetLife

Active Member
Joined
Jul 2, 2012
Messages
311
Office Version
  1. 365
Hi,

I usually use the sumproduct function, but in my worksheet it is not working. Sumif works.

#VALUE! =SUMPRODUCT( ('CIFE 831'!$A$10:$A$121173=AG6)*('CIFE 831'!$BS$10:$BS$121173) )
233,838,675 =SUMIF('CIFE 831'!$A$10:$A$121173,AG6,'CIFE 831'!$BS$11:$BS$121173)
667 =SUMPRODUCT( ('CIFE 831'!$A$10:$A$121173=AG6)*1 )

Why does the first formula not return a value but the other two work? Is there some limit to the sumproduct?

Thanks,
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Most likely you have some non numeric data in column BS. I don't know why you'd use SP over SUMIF for that situation, but you could amend it to:

Excel Formula:
=SUMPRODUCT(--('CIFE 831'!$A$10:$A$121173=AG6),'CIFE 831'!$BS$10:$BS$121173)
 
Upvote 1
Most likely you have some non numeric data in column BS. I don't know why you'd use SP over SUMIF for that situation, but you could amend it to:

Excel Formula:
=SUMPRODUCT(--('CIFE 831'!$A$10:$A$121173=AG6),'CIFE 831'!$BS$10:$BS$121173)

The other problem I noticed is that when I sort the table and add using "Sum" I don't match the sumif formula.

Is this non numeric data issue?
 
Upvote 0
No, both SUM and SUMIF will ignore anything that isn't a number in column BS.
 
Upvote 0
Solution
No, both SUM and SUMIF will ignore anything that isn't a number in column BS.
Maybe there is an error in my version of 365. Because I am using the SUMIF and I compare this to the sorted value and manually using SUM. They give different results.
 
Upvote 0
Maybe there is an error in my version of 365. Because I am using the SUMIF and I compare this to the sorted value and manually using SUM. They give different results.
Whoops, I just figured it out.

SUMIF Had a small error in the formula:

=SUMIF('CIFE 831'!$B$10:$B$200000,$AG19,'CIFE 831'!$BT$11:$BT$200000)

should be

=SUMIF('CIFE 831'!$B$11:$B$200000,$AG19,'CIFE 831'!$BT$11:$BT$200000)

Now everything works!
 
Upvote 0

Forum statistics

Threads
1,221,493
Messages
6,160,139
Members
451,624
Latest member
TheWes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top