SUMPRODUCT problem

smallxyz

Active Member
Joined
Jul 27, 2015
Messages
393
Office Version
  1. 2021
Platform
  1. Windows
The following formula doesn't work. Why??
Thanks.


=SUMPRODUCT({D2;E2;F2},{C5,C6,C7})


=SUMPRODUCT(TRANSPOSE(D2:F2),{C5,C6,C7})
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
What does the data in those ranges look like? What are you trying to achieve? Define "doesn't work" - it's much too vague.
 
Last edited:
Upvote 0
All are numbers.
Doesn't work means it returns error.
Essentially it is column by column sumproduct
 
Upvote 0
Small, enter it as below and be sure to hit [Ctrl]+[Shift]+[Enter] to enter it as an array function:

=SUMPRODUCT((TRANSPOSE(D2:F2))*(C5:C7))
 
Upvote 0
As long as you remember to enter this with Ctrl+Shift+Enter, there are many ways it would/should work:

=SUMPRODUCT((TRANSPOSE(D2:F2))*(C5:C7)) ... my norm, for clarity, grouped and using the array "and" function (*)

=SUMPRODUCT(TRANSPOSE(D2:F2)*C5:C7) ... same as above, but ungrouped

=SUMPRODUCT(TRANSPOSE(D2:F2),C5:C7) ... same as above, but using a comma
 
Upvote 0
The following formula doesn't work. Why??
Thanks.


=SUMPRODUCT({D2;E2;F2},{C5,C6,C7})


=SUMPRODUCT(TRANSPOSE(D2:F2),{C5,C6,C7})

TRANSPOSE requires control+shift+enter (CSE)...

Either CSE:

=SUM(TRANSPOSE(D2:F2)*C5:C7)

Or CSE:

=SUMPRODUCT(TRANSPOSE(D2:F2),C5:C7)
 
Upvote 0
Aladin, interestingly enough, the following two formulas turn up the same result with CSE:

=SUM(TRANSPOSE(D2:F2)*C5:C7)

=SUMPRODUCT(TRANSPOSE(D2:F2)*C5:C7)
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,697
Members
449,117
Latest member
Aaagu

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