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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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))}
 
Upvote 0

Forum statistics

Threads
1,222,900
Messages
6,168,926
Members
452,227
Latest member
sam1121

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