excel - Matrix multiply two lists with a formula -


if have 2 lists in excel:

 x : x1  x2  x3 y : y1  y2  y3

how can make 2-dimensional matrix this?:

 x1*y1  x1*y2  x1*y3 x2*y1  x2*y2  x2*y3 x3*y1  x3*y2  x3*y3

assuming x1-x3 cells a1:a3 , y1-y3 in b1:b3, select 3x3 range , enter formula:

=a1:a3*transpose(b1:b3) 

enter array formula, i.e. instead of pressing enter, press ctrl-shift-enter!


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -