Hi!
Try this:
Column B = start dates (must be true Excel dates)
Column C = finish dates (must be true Excel dates)
E1:P1 = Jan, Feb, Mar etc
Formula in E2:
=IF(MAX($B2,DATE(YEAR($B2),MONTH($B2)+COLUMNS($B:B)-1,1))<$C2,MIN(DATE(YEAR($B2),MONTH($B2)+COLUMNS($B:B),0),$C2)-MAX($B2,DATE(YEAR($B2),MONTH($B2)+COLUMNS($B:B)-1,1))+1,0)
Copy across then down as needed.
Note: only works properly if the dates are in the same year!
Biff
> Please can anyone point me to the best way to do this, I expect it's a
> common problem and my head is spinning trying to work out the simple
[quoted text clipped - 16 lines]
>
> Thanks if anyone can help.