9.3.16

SUMDIVIDE ... sort of

A delegate asked me today if there was such a function as SUMDIVIDE. There isn't of course, but I found a way to simulate it.

What would SUMDIVIDE do? SUMDIVIDE would have array 1 divided by array 2 and the results then added together: in the same way that SUMPRODUCT multiplies and then adds.

This is how it works: imagine A1:A5 contains array 1 and B1:B5 contains array 2 then the SUMPRODUCT function to divide them will be =SUMPRODUCT(A1:A5,1/B1:B5). Simple, eh? Who'd have thought it would be so simple.

Duncan Williamson

No comments: