Hi Sherry!
Thanks for thanks is always appreciated and confirms to Google
Searchers etc. that something works.
Constants in cells rather than formulas are usually better as they
allow you to vary your formula without editing it. But in your case it
can also aid in the construction of tables.
I think it's probably best practice in any event to use:
Example:
=SUMPRODUCT(($B$1:$B$33>=DATE(2003,12,23))*($B$1:$B$33<=DATE(2004,1,5)
)*($D$1:$D$33=H1))
It's probably quite rare to want the ranges being studied to vary when
copying down or across.
This way I can set up H1:H11 with the potential inputs 0-11 and with
the formula in I1 I can then copy down and get the counts for all 11
inputs.
Similarly, careful referencing of cells containing the start and end
dates can allow easy construction of tables showing numbers of each
variable for different pairs of dates.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.