This does not work from PM to AM
For all times, including those that cross midnight use:
=MOD(B1-A1,1)
To round it to the nearest 15 minutes use:
=ROUND(MOD(B1-A1,1)/(0.25/24),0)*(0.25/24)
To round each time to the nearest 15 minutes before subtracting them use:
=MOD(ROUND(B1/(0.25/24),0)*(0.25/24)-ROUND(A1/(0.25/24),0)*(0.25/24),1)
Note that this may be uo to 30 minures different depending on the
Clock-on/Clock-off times.
--
HTH
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
[email protected]
[email protected] with @tiscali.co.uk