Multiplying columns of different length

lightbucket

New Member
Joined
Jun 4, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I'd like to multiply all the values in one column, with say 5 values, by all the values in a second column with say 3 values. Can you do this? So I'd expect 15 answers in Col C, or maybe as a 5*3 array.
Col ACol B
110
220
330
4
5
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Welcome to the forum. You can use the MMULT function, but you have to transpose the second column like this:
Book1
ABCDEF
1110102030
2220204060
3330306090
444080120
5550100150
Sheet1
Cell Formulas
RangeFormula
D1:F5D1=MMULT(A1:A5,TRANSPOSE(B1:B3))
Dynamic array formulas.


Add TOCOL for a single column:
Book1
D
710
820
930
1020
1140
1260
1330
1460
1590
1640
1780
18120
1950
20100
21150
Sheet1
Cell Formulas
RangeFormula
D7:D21D7=TOCOL(MMULT(A1:A5,TRANSPOSE(B1:B3)))
Dynamic array formulas.
 
Upvote 0
Another option.
Book1
ABCDEFGH
111010203010
222020406020
333030609030
44408012020
555010015040
660
730
860
990
1040
1180
12120
1350
14100
15150
Sheet5
Cell Formulas
RangeFormula
D1:F5D1=A1:A5*TOROW(B1:B3)
H1:H15H1=TOCOL(A1:A5*TOROW(B1:B3))
Dynamic array formulas.
 
Upvote 0
Excellent, and thanks for all the alternatives. I've learnt a lot.
Many thanks
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,186
Members
452,615
Latest member
bogeys2birdies

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