Assuming the dates are always sequential,
----A---- --B-- C D -------------------------------------E-------------------------------------
1 Date Hours
2 17-Feb-13 8 6 D2: {=MAX(FREQUENCY(IF(B2:B16>0, ROW(B2:B16)), IF(B2:B16=0, ROW(B2:B16))))}
3 18-Feb-13 8
4 19-Feb-13 10
5 20-Feb-13
6 21-Feb-13 11
7 22-Feb-13 8
8 23-Feb-13 9
9 24-Feb-13 10
10 25-Feb-13 7
11 26-Feb-13 9
12 27-Feb-13
13 28-Feb-13
14 01-Mar-13 8
15 02-Mar-13 8
16 03-Mar-13 9
The curly braces indicate that the formula MUST be confirmed with Ctrl+Shift+Enter -- that's what makes them appear in the formula bar.
Bookmarks