PC Review


Reply
Thread Tools Rate Thread

Display Sum of hours as an equivalent in days and hours

 
 
Yipeeee
Guest
Posts: n/a
 
      17th Dec 2007
Hi,
In XL 2003
I'm trying to do a custom format on a sum of hours.
I want to display the sum of the hours as an equivalent in days and hours.

I have a guy working for me on a project.
He is supposed to be working 8 hours per day but
his real number of hours per day varies.


I have his daily working hours in a list.
Date Hours Hours as days
01/12/2007 02:00
02/12/2007 05:30
01/12/2007 03:30
Sum 11:00 01:22


That's OK, using the [h] in the custom format.
But I want to display the sum of the hours as an equivalent in days and
hours.

I have the hours summed in a Pivot table and that is working basically OK.
In the Pivot table I have inserted a formula that divides the hours by 8.
But the formula result is not displaying the way I want it.

I need the result as this "1 day, 3 hours"
What do I need to use as the custom format ?

Thanks in advance.

Yipeeee






 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      17th Dec 2007
Maybe try this.

First, change the SUM formula to

=INT(SUM(rng)/8*24)+MOD(SUM(rng),8/24)

and apply a custom format of

d "day(s)" hh:mm

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Yipeeee" <(E-Mail Removed)> wrote in message
news:47664d89$0$868$(E-Mail Removed)...
> Hi,
> In XL 2003
> I'm trying to do a custom format on a sum of hours.
> I want to display the sum of the hours as an equivalent in days and hours.
>
> I have a guy working for me on a project.
> He is supposed to be working 8 hours per day but
> his real number of hours per day varies.
>
>
> I have his daily working hours in a list.
> Date Hours Hours as days
> 01/12/2007 02:00
> 02/12/2007 05:30
> 01/12/2007 03:30
> Sum 11:00 01:22
>
>
> That's OK, using the [h] in the custom format.
> But I want to display the sum of the hours as an equivalent in days and
> hours.
>
> I have the hours summed in a Pivot table and that is working basically OK.
> In the Pivot table I have inserted a formula that divides the hours by 8.
> But the formula result is not displaying the way I want it.
>
> I need the result as this "1 day, 3 hours"
> What do I need to use as the custom format ?
>
> Thanks in advance.
>
> Yipeeee
>
>
>
>
>
>



 
Reply With Quote
 
Yipeeee
Guest
Posts: n/a
 
      17th Dec 2007
Thanks Bob !
Looks like that did the trick.

Yipeeeeeeeeeeee !


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to convert Hours to Days, Hours Minutes jamilla General Software 1 21st May 2010 03:31 AM
Converting total number of hours (>24 hours) into days MV Rao Microsoft Excel Misc 1 24th Jan 2008 12:50 PM
Problem converting Hours to Days, Hours, Minutes =?Utf-8?B?Wnl6eng=?= Microsoft Excel Worksheet Functions 4 24th Oct 2005 04:19 PM
converting hours to days,hours,minutes =?Utf-8?B?TF9uX2Rh?= Microsoft Excel Worksheet Functions 2 29th May 2005 06:16 PM
hours converted to Days hours and minutes Alex Microsoft Excel Programming 1 14th Sep 2004 06:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:19 PM.