Sumproduct Error

RBenny

New Member
Joined
Jan 9, 2009
Messages
16
Dear experts,

Having gone around for an hour, I can't figure out why my Sumproduct doesn't work.

=SUMPRODUCT(--('Balance Sheet_Property SS'!$C$14:$C$271=$S$32),--('Balance Sheet_Property SS'!$D$14:$D$271=$S$30),--('Balance Sheet_Property SS'!$F$14:$F$271=$S$33),--('Balance Sheet_Property SS'!$NU$3:$SC$3=$S$31)*'Balance Sheet_Property SS'!$NU$14:$SC$271)

No text, no formula errors in ranges. Not sure what else to do. Any ideas?

Thanks
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi, is there only one cell in 'Balance Sheet_Property SS'!$NU$3:$SC$3 that matches cell $S$31 or are there many?
 
Upvote 0
Try this format instead: SUMPRODUCT((( 'Balance Sheet_Property SS'!$C$14:$C$271) = $S$32) * ( ... etc.

That is, set off the ranges you want to check against a single cell into their own sets of parentheses, and don't include the single value in that set of "range" parentheses.

I also prefer the "*" operator between terms, instead of the "--" operator that you've used, but I suppose those operators work equally well.

Just noticed: All of the terms in the SUMPRODUCT have to be over similarly-sized ranges. You had at least one term that didn't extend over the same-sized range as C14:C271. I don't think that will ever work inside the SUMPRODUCT ... though you could have it as a term outside the SUMPRODUCT range, of course.
 
Last edited:
Upvote 0
As per BlueHornet, you need to multiply as your ranges aren't the same orientation:

=SUMPRODUCT(('Balance Sheet_Property SS'!$C$14:$C$271=$S$32)*('Balance Sheet_Property SS'!$D$14:$D$271=$S$30)*('Balance Sheet_Property SS'!$F$14:$F$271=$S$33)*('Balance Sheet_Property SS'!$NU$3:$SC$3=$S$31)*'Balance Sheet_Property SS'!$NU$14:$SC$271)
 
Upvote 0
Try this format instead: SUMPRODUCT((( 'Balance Sheet_Property SS'!$C$14:$C$271) = $S$32) * ( ... etc.

That is, set off the ranges you want to check against a single cell into their own sets of parentheses, and don't include the single value in that set of "range" parentheses.

I also prefer the "*" operator between terms, instead of the "--" operator that you've used, but I suppose those operators work equally well.

Just noticed: All of the terms in the SUMPRODUCT have to be over similarly-sized ranges. You had at least one term that didn't extend over the same-sized range as C14:C271. I don't think that will ever work inside the SUMPRODUCT ... though you could have it as a term outside the SUMPRODUCT range, of course.

Blue Hornet - Lifesaver. This worked! I was using "--" to use 0,1 results instead of True/False, but I guess that didn't matter.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,206
Members
452,618
Latest member
Tam84

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