Maybe it's your formatting. The actual value of F4 (Date To) is 3/6/2011, while it shows a format of Sun 06/03/2011. I'm assuming you are looking at it wrong. ?? Your format of F3:F4 is "ddd dd/mm/yyyy", while it should be "ddd mm/dd/yyyy" (without quotes of course).
double checked the formats so that they are all *dd/mm/yyyy unfortunatly no joy
SiddharthRout
Gazza it is working fine for me. What dates are you putting in and where?
Sid
Zack Barresse
I only see one value which matches the date range, so I'm not sure where you're getting 3 from. ???
You only have four values on your 'Low Volume' worksheet. 1/3/2011, 1/3/2011, 3/1/2011, 3/7/2011. For the dates between the date range you specified in F3 and F4 of 'Stats Table' worksheet, 2/1/2011 and 3/6/2011, only one date matches between that range. Can you explain how it should be 3?
I've kept the spreadsheet the same, only the formulas result should equal "3" but maybe I'm doing something wrong. help.JPG
barry houdini
Zack,
If the workbook is opened with UK regional settings then (and Gazza is UK based, I assume) then it looks to me as if all the dates in B14:B17 are in March (the first 3 all display the same) so those 3 should all be counted, I believe, but as I say above the first 2 are text-formatted so if you open with US date settings that makes the first 2 look different from the third.....
barry
Zack Barresse
Regional Settings aside, it shouldn't matter. The function returns what it should. (And I saw the text on the first sheet, but the formula coerced it, so I wasn't worried about it.) On the 'Stats Table' worksheet, the format shows different than the value. I'm thinking this is what is confusing the OP.
Perhaps you could use something like this ...
Open in new window
Zack