Posted to microsoft.public.excel.worksheet.functions
|
|
work hours with different hour prices
On Wednesday, January 29, 2014 8:54:57 AM UTC, Claus Busch wrote:
Hi again,
Am Wed, 29 Jan 2014 09:43:05 +0100 schrieb Claus Busch:
Then for hours between 7:00 and 22:00 in C2:
=IF(B2A2,MIN(B2,TIME(22,,))-MAX(A2,TIME(7,,)),MAX(TIME(22,,)-A2,0)+MAX(B2-TIME(7,,),0))
change the formula above to:
=IF(B2A2,MAX(MIN(B2,TIME(22,,))-MAX(A2,TIME(7,,)),0),MAX(TIME(22,,)-A2,0)+MAX(B2-TIME(7,,),0))
Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Claus, When i try it,i get an error...
http://postimg.org/image/4li0iqk95/
I don't understand what the problem...
I even tried to change A2 and B2 to date and to time, but it didnt work either...
|