YES, but which form is the quickest and easiest and least burdensome for XL
to process ?
--
Regards,
RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------
"Anon" <none> wrote in message The double minus signs simply convert booleans to numbers. For example, if
A1="Yes", the result is the boolean value TRUE. The SUMPRODUCT function,
written with commas between its parameters, requires those parameters to be
numbers, not boolean. So the double minus sign is one way of converting TRUE
to 1 (and FALSE to 0). (The first minus sign makes it negative and the
second makes it positive again.) The same could be achieved by multiplying
by 1 as is sometimes seen: SUMPRODUCT((A1:F1="Yes")*1 ......
If SUMPRODUCT is written with multiplication signs rather than commas, in
effect this conversion happens automatically:
=SUMPRODUCT((A1:F1="Yes")*(A2:F2<0)*A2:F2)