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???
 

Some videos you may like

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
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))}
 

Watch MrExcel Video

Forum statistics

Threads
1,122,491
Messages
5,596,474
Members
414,070
Latest member
DuncanLucas

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