Hi Richard
One way
=MIN(DATE(2005,3,31),DATE(2005,12,31))-DATE(2005,1,1)
or with your Start date in A1, End Date in A2 and your Quarter End Date in B1
=MIN(A2,B1)-A1
Regards
Roger Govier
(E-Mail Removed) wrote:
> Hi,
>
>
> I would like to know how i can calculate the number of days between two
>
> dates that fall between another two dates (ie callender quarters)
>
>
> Eg
>
>
> Q1 1/1/2005 - 31/3/2005 (these dates can be variables, Q1,Q2.. etc)
>
>
> 1/1/2005 - 31/12/2005 What number of days between these two dates would
>
> fall between the dates above?
>
>
> Can anyone help please
>
>
> Cheers!!!
>