I have 2 arrays.
1st array has 10 rows and 5 columns The row labels aren't unique.
2nd array has 10 rows with the same labels as 1st array but has only 1 column.
Now my output table has 4 rows which are unique labels from the 1st 2 arrays and 5 columns with same headers as 1st row. I need to get a sumproduct of 1st array and 2nd array. I need a dynamic formula so that 1 formula in the 1st cell gives results for the whole table.
I have given it a try in the attached excel (Cell C17), however, it's giving me value errors.
=MAKEARRAY(COUNTA(B17#), COUNTA(C16#), LAMBDA(name,subject, SUMPRODUCT(J4# * (I4# = INDEX(B17#, name)), C4# * (B4# = INDEX(B17#, name)) * (C3# = INDEX(C16#, subject)))))
Bookmarks