Don,
Currently I am using the following formula and it works, thought the
worksheet is extremely slow (the formula is in 4 columns on approximately
1300 rows... two columns <=T50MONTH and two =T50MONTH). I saw a response to
another sumproduct question where {} were used for multiple criteria. I was
curious as to whether the {} could be used to reference multiple cells.
=SUMPRODUCT(--(QUERY!$A$2:$A$31311=$B16),--(QUERY!$F$2:$F$31311=J$3),--(QUER
Y!$G$2:$G$31311<=T50MONTH),--(QUERY!$H$2:$H$31311))+SUMPRODUCT(--(QUERY!$A$2
:$A$31311=$C16),--(QUERY!$F$2:$F$31311=J$3),--(QUERY!$G$2:$G$31311<=T50MONTH
),--(QUERY!$H$2:$H$31311))
This works fine (but slow), but I was wondering if there was a way to do it
without adding sumproducts, thus possibly speeding it up a bit.
When I tried to use:
=SUMPRODUCT(--(QUERY!$A$2:$A$31311={$B16,$C16}),--(QUERY!$F$2:$F$31311=J$3),
--(QUERY!$G$2:$G$31311<=T50MONTH),--(QUERY!$H$2:$H$31311))
it does not work, and I am guessing it is because I am not using the
{}correctly, though I am not very familiar with {} and cannot be sure.
The formula sums a customers sales by month by year, and each customer has 2
customer id's (one for product purchases, and a separate account for large
purchases put on a note: columns B and C). Row 3 contains the year for each
column. Column H on the QUERY tab contains the sales dollars.
Thanks your help in advance,