sumproduct

j21f

New Member
Joined
Dec 31, 2004
Messages
33
I have two arrays - A1:A3 and D5:F5. So, one is horizontal and one is vertical. I would like to use the sumproduct function, but the dimensions of the arrays need to be identical. I tried to use the transpose function, but the transpose function only returns the first number of the array. I need the transpose function (within the sumproduct function) to return a transposed array for the sumproduct to work. Oh, I have been using the CSE feature. Any solutions for this???
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
j21f said:
I have two arrays - A1:A3 and D5:F5. So, one is horizontal and one is vertical. I would like to use the sumproduct function, but the dimensions of the arrays need to be identical. I tried to use the transpose function, but the transpose function only returns the first number of the array. I need the transpose function (within the sumproduct function) to return a transposed array for the sumproduct to work. Oh, I have been using the CSE feature. Any solutions for this???

TRANSPOSE in a formula forces that formula to be confirmed with control+shift+enter just like an IF with a multicell range-object in its condition part. Thus:

=SUMPRODUCT(A1:A3,TRANSPOSE(D5:F5))

will work if confirmed with control+shift+enter instead of just with enter. Given this fact, I'd switch to:


{=SUM(A1:A3*TRANSPOSE(D5:F5))}
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,025
Messages
5,856,898
Members
431,837
Latest member
megantang

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
Top