PC Review


Reply
 
 
=?Utf-8?B?Qm9iYnk=?=
Guest
Posts: n/a
 
      10th Aug 2006
Hi there,

I have a timesheet which works out working hours e.g. Time in 8:52 time out
12.00 the answer is 3.13 so I then manually calculate the minute bit 0.13*60
which equals 8 minutes. Is there any clever way to calculate this to show
hours and minutes?

TIA
--
Bobby
 
Reply With Quote
 
 
 
 
SteveW
Guest
Posts: n/a
 
      10th Aug 2006

a2 = 8:52
b2 = 12:00
c2 = b2-a2

Steve

On Thu, 10 Aug 2006 15:06:02 +0100, Bobby
<(E-Mail Removed)> wrote:

> Hi there,
>
> I have a timesheet which works out working hours e.g. Time in 8:52 time
> out
> 12.00 the answer is 3.13 so I then manually calculate the minute bit
> 0.13*60
> which equals 8 minutes. Is there any clever way to calculate this to show
> hours and minutes?
>
> TIA




--
Steve (3)
 
Reply With Quote
 
mr_teacher
Guest
Posts: n/a
 
      10th Aug 2006

If you have all three cells set with the format of hh:mm in custo
format then when you do your subtraction the result will show the tim
in hours and minutes. Also you need to make sure that you use the
symbol to seperate your hours and minutes.

Hope that helps

Regards

Car

--
mr_teache
-----------------------------------------------------------------------
mr_teacher's Profile: http://www.excelforum.com/member.php...fo&userid=3435
View this thread: http://www.excelforum.com/showthread.php?threadid=57035

 
Reply With Quote
 
=?Utf-8?B?Qm9iYnk=?=
Guest
Posts: n/a
 
      10th Aug 2006
Hi Steve and Carl,
I tried your suggestions on my spreadsheet and got strange answers so tried
them on a blank worksheet and it worked fine so thank you!
I think the problem I have is that the cells have been formatted differently
to work with the formulae in them. The worksheet is a template from microsoft
and the workings are listed below.
Help!

Cell b11=time in
Format time format
Displayed 8:52

Cell b12= time out
Format time format
Display 12:00

Cell C12=
Formula
=IF((OR(B12="",B11="")),0,IF((B12<B11),((B12-B11)*24)+24,(B12-B11)*24))
format = 0.00_);[Red](0.00)
Display 3.13

Cell b14=time in pm
Format time format
Display 12:30

Cell b15= time out pm
Format time format
Display 17:14
Cell C15 =
Formula
=IF((OR(B15="",B14="")),0,IF((B15<B14),((B15-B14)*24)+24,(B15-B14)*24))
Display 4.73

Cell B16 = Total time worked
Formula =IF(OR(ISTEXT(C12),ISTEXT(C15)),"Error in C12 or C15",(C12+C15))
Format = general
Display = 7.87

It would be so great if someone could find me a solution
--
Bobby

 
Reply With Quote
 
mr_teacher
Guest
Posts: n/a
 
      11th Aug 2006

Hi,

Not an expert on macros, but using just the formulas I have got this t
work if this is what you want - it has only changed the last part o
your macro as it stood. I have just added my formula in here so don'
know if it will work or not.

If this is not working then you could delete the last section of you
macro and in cell B16 put the formula

=LEFT((C12+C15),LEN(C12)-3)&"hour
"&ROUND(((C12+C15)-(LEFT((C12+C15),LEN(C12)-3)))*60,0)&"mins"

Hope this works

Regards

Carl

Cell b11=time in
Format time format
Displayed 8:52

Cell b12= time out
Format time format
Display 12:00

Cell C12=
Formula
=IF((OR(B12="",B11="")),0,IF((B12<B11),((B12-B11)*24)+24,(B12-B11)*24))
format = 0.00_);[Red](0.00)
Display 3.13

Cell b14=time in pm
Format time format
Display 12:30

Cell b15= time out pm
Format time format
Display 17:14
Cell C15 =
Formula
=IF((OR(B15="",B14="")),0,IF((B15<B14),((B15-B14)*24)+24,(B15-B14)*24))
Display 4.73

Cell B16 = Total time worked
Formula =IF(OR(ISTEXT(C12),ISTEXT(C15)),"Error in C12 o
C15",LEFT((C12+C15),LEN(C12)-3)&"hour
"&ROUND(((C12+C15)-(LEFT((C12+C15),LEN(C12)-3)))*60,0)&"mins")
Format = general
Display = 7.8

--
mr_teache
-----------------------------------------------------------------------
mr_teacher's Profile: http://www.excelforum.com/member.php...fo&userid=3435
View this thread: http://www.excelforum.com/showthread.php?threadid=57035

 
Reply With Quote
 
SteveW
Guest
Posts: n/a
 
      11th Aug 2006
This looks as though you actually wanted decimal hours anyway.

time in/out - lunch - time in/out

All input (time) is entered hh:mm
all output (time in hours)

Presumably you wanted a time (in hours) to enable pay caclualtion etc etc

So in the end those forumula look correct

If you want to see that decimal hours as hh:mm
then add an extra colum
b17 = b16/24
format custom hh:mm

Steve

On Thu, 10 Aug 2006 22:04:02 +0100, Bobby
<(E-Mail Removed)> wrote:

> Hi Steve and Carl,
> I tried your suggestions on my spreadsheet and got strange answers so
> tried
> them on a blank worksheet and it worked fine so thank you!
> I think the problem I have is that the cells have been formatted
> differently
> to work with the formulae in them. The worksheet is a template from
> microsoft
> and the workings are listed below.
> Help!
>
> Cell b11=time in
> Format time format
> Displayed 8:52
>
> Cell b12= time out
> Format time format
> Display 12:00
>
> Cell C12=
> Formula
> =IF((OR(B12="",B11="")),0,IF((B12<B11),((B12-B11)*24)+24,(B12-B11)*24))
> format = 0.00_);[Red](0.00)
> Display 3.13
>
> Cell b14=time in pm
> Format time format
> Display 12:30
>
> Cell b15= time out pm
> Format time format
> Display 17:14
> Cell C15 =
> Formula
> =IF((OR(B15="",B14="")),0,IF((B15<B14),((B15-B14)*24)+24,(B15-B14)*24))
> Display 4.73
>
> Cell B16 = Total time worked
> Formula =IF(OR(ISTEXT(C12),ISTEXT(C15)),"Error in C12 or C15",(C12+C15))
> Format = general
> Display = 7.87
>
> It would be so great if someone could find me a solution




--
Steve (3)
 
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
Convert text entered as minutes/seconds to minutes Kathie Microsoft Excel Worksheet Functions 1 6th May 2010 06:05 AM
Vista Offline Files Consuming 100% CPU for 2 minutes every few minutes Eriq Cook Windows Vista General Discussion 0 28th Dec 2007 05:53 PM
Opening a project in MM takes too long - 10 to 15 minutes to load. It used to take 1 to 3 minutes before. Joe Hissen Windows XP MovieMaker 4 27th May 2006 07:22 AM
Displaying total minutes in the form of hours and minutes M Microsoft Excel Worksheet Functions 0 2nd Aug 2004 08:40 PM
Want default meeting duration to be twenty minutes, not thirty minutes, etc. =?Utf-8?B?VGVkVA==?= Microsoft Outlook Calendar 1 1st Dec 2003 04:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:59 AM.