Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default converting working hours to days

I have 2 dates / times in colums C and L formatted mm/dd/yyyy hh:mm:ss
In column P I am using the formula
=((NETWORKDAYS(C2,L2,$AF$2:$AF$9)-1)*(AD$2-AC$2)+IF(NETWORKDAYS(L2,L2),MEDIAN(MOD(L2,1),AD$2, AC$2),AD$2)-MEDIAN(NETWORKDAYS(C2,C2)*MOD(C2,1),AD$2,AC$2))
to work out working hours between the two date/times. this gives me hours and
mins ok.
in column V I need to convert this to days (working day =10 hours), i am
using the formula =DAY((P2*2.4)+1), this works ok upto 309 hours which
returns 31 days, after that it starts at 1 again, how can i get it to keep
counting the days past 31

Regards
nigeo
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default converting working hours to days

Instead of

=DAY((P2*2.4)+1),

try

=(P2*2.4)+1


--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"nigeo" wrote in message
...
I have 2 dates / times in colums C and L formatted mm/dd/yyyy hh:mm:ss
In column P I am using the formula
=((NETWORKDAYS(C2,L2,$AF$2:$AF$9)-1)*(AD$2-AC$2)+IF(NETWORKDAYS(L2,L2),MEDIAN(MOD(L2,1),AD$2, AC$2),AD$2)-MEDIAN(NETWORKDAYS(C2,C2)*MOD(C2,1),AD$2,AC$2))
to work out working hours between the two date/times. this gives me hours
and
mins ok.
in column V I need to convert this to days (working day =10 hours), i am
using the formula =DAY((P2*2.4)+1), this works ok upto 309 hours which
returns 31 days, after that it starts at 1 again, how can i get it to keep
counting the days past 31

Regards
nigeo


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default converting working hours to days

Thanks Niek just added INT to round it down, work great.

Regards

--
nigeo


"Niek Otten" wrote:

Instead of

=DAY((P2*2.4)+1),

try

=(P2*2.4)+1


--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"nigeo" wrote in message
...
I have 2 dates / times in colums C and L formatted mm/dd/yyyy hh:mm:ss
In column P I am using the formula
=((NETWORKDAYS(C2,L2,$AF$2:$AF$9)-1)*(AD$2-AC$2)+IF(NETWORKDAYS(L2,L2),MEDIAN(MOD(L2,1),AD$2, AC$2),AD$2)-MEDIAN(NETWORKDAYS(C2,C2)*MOD(C2,1),AD$2,AC$2))
to work out working hours between the two date/times. this gives me hours
and
mins ok.
in column V I need to convert this to days (working day =10 hours), i am
using the formula =DAY((P2*2.4)+1), this works ok upto 309 hours which
returns 31 days, after that it starts at 1 again, how can i get it to keep
counting the days past 31

Regards
nigeo


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Working Hours, Days and Overtimes. [email protected] Excel Discussion (Misc queries) 1 May 13th 08 02:18 PM
Converting total number of hours (24 hours) into days MV Rao Excel Discussion (Misc queries) 1 January 24th 08 12:50 PM
I need an Excel formula for converting hours to days? Sharon Tischner Excel Worksheet Functions 4 October 27th 06 08:26 PM
Problem converting Hours to Days, Hours, Minutes Zyzzx Excel Worksheet Functions 4 October 24th 05 04:19 PM
converting hours to days,hours,minutes L_n_da Excel Worksheet Functions 2 May 29th 05 06:16 PM


All times are GMT +1. The time now is 05:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"