I would like to use sumproduct with ranges of different sizes by padding the smaller array with zeros. Any suggestions?
For example, if the first array is always a fixed array with the following values:
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
and the second array can vary in length, with example values:
1, 2, 3
I would like a function that uses sumproduct to return the result: 116 (=0*10+0*11+0*12+...+1*18+2*19+3*20)
I think the real question here might be how to pad an array with a dynamic number of zeros...
Bookmarks