VBA Noob, that is perfect!
It doesn't work on the "days360", but it doesn't need to for what I actually
want it for.
Many, many thanks.
--------------------------------------------------------------------
"VBA Noob" wrote:
Hi Pete,
This formula assumes Sheet 1 has the start and end dates
=MAX(0,(MIN(Sheet1!$B2,DATE(2006,12,31))-MAX(Sheet1!$A2,DATE(2006,1,1))+1))
If it's not what your after try the attached link for ideas
http://www.cpearson.com/excel/distribdates.htm
VBA Noob
--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=552971