Hi
To check dates in your table being real Excel dates, format some cell with
date in it as general. When the date in cell is replaced with integer, it is
date. When the cell content remains same, you have there a datestring (a
text string which looks like a date).
When you have in your table datestrings instead of dates, and those
datestrings are in form the excel recognizes as date format (I can't test
your data, because recognized date formats depend on regional setings), the
try this formula:
=SUMPRODUCT(--(DATEVALUE(A1:A100)>=DATE(2005,5,5)),--(DATEVALUE(A1:A100)<=DA
TE(2005,5,9)),B1:B100)
(I'm not sure how it will work)
A better solution is to convert your datestrings to dates - you have to use
helper columns to do so. P.e. to convert datestrings in range A1:A100 :
1) format range a1:a100 as General
2) insert a column B
3) into b1 enter the formula
= DATEVALUE(a1)
4) Copy b1 to b1:b100
5) Copy the range b1:b100 and use Paste Special to overwrite datestrings in
range a1:a100 with values (check 'Values' before pressing OK)
6) Format the range a1:a100 as date in desired format (p.e. as Custom
"d-mmm-yy", when it is a valid date format)
7) delete column B
..
Then same for other column. Now my formula from previous answer will work.
Arvi Laanemets