Using Aladin's idea, I think you can make the formula slightly more
flexible:
=SUMPRODUCT(--(Data!$E$2:$E$3850-DAY(Data!$E$2:$E$3850)=$D$1-DAY($D$1)),--(Data!$F$2:$F$3850=$D$2))
now you can put any date into [A4]
The performance difference between the original formula and the above
version of it seems to be negligeble if copying over 800 to 5000 cells, but
you probably wouldn't want to copy it to many cells anyway :-).
Regards,
KL
"Dominique Feteau" wrote in message
...
i have a table that has column of dates and a column of names of forms.
heres the sumproduct function i'm using:
=SUMPRODUCT(--(Data!E$2:E$3850=A4-30),--(Data!E$2:E$3850<=A4),--(Data!F$2:F
$3850=B$3))
A4 = 12/31/04 (Date)
B3 = "POE-Cite" (Form)
only problem is that its not very accurate. instead of using "A4-30", is
there a way to use a specific range? i thought using an "AND" statement
would work, but it isnt.
thanks
|