Tuesday, May 24, 2005

SUMPRODUCT Array formula

Here is a SUMPRODUCT array formula.
=SUMPRODUCT((A2:A11={"A"})*(B2:B11<>{""})}
You need to press CTRL SHIFT ENTER when editing to save this formula. That will put the {} brackets around it,. Ypu do not need to type these.
This formula will count all the items in the list that have an A in column A and do not have a blank in column B. Obviously you can change the criteria to what ever you need.
This is probably the best way of calculating this sort of thing.