Are you trying to count for November 2004? If so, try:
A4: 1-Nov-04
which is the first day date of the month/year of interest.
Now invoke:
=SUMPRODUCT(--(Data!E$2:E$3850-DAY(Data!E$2:E$3850)+1=A4),--(Data!F$2:F$3850=B$3))
Dominique Feteau wrote:
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
--
[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
|