I only said there theres probably a better way i just through the answer quickly. It is a bit of a contrived function i provided manipulating the data, to provide an answer rather than providing an answer for the, ill have a think and see if i can come up with a better way. or someone else might.
Quote:
|
Originally Posted by dejavu1313
Also, can you breakdown the "sumproduct(--" part of your code in layman terms?
|
sumproduct basically multiplies arrays together,
(--(A2:A7>J2) basically says get an array of boolean(TRUE OR FALSE) providing on the situation, the -- basically turns this array from True to 1 and False to 0 so we basicall build up a set of equations, and it multiplies accross the rows and adds these totals of each row together, Hence the SUM of the PRODUCTS
Hope this makes sense
David