Computing.Net > Forums > Office Software > time clock break down

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

time clock break down

Reply to Message Icon

Name: elainec
Date: September 21, 2009 at 14:20:43 Pacific
OS: Windows XP
Subcategory: Document Management
Comment:

Is there formula I can put in excell to to clock in clock out time for payroll? In 8:12 out 17:47 -.45 lunch =



Sponsored Link
Ads by Google

Response Number 1
Name: Humar
Date: September 21, 2009 at 14:56:28 Pacific
Reply:

Hi,

This simple macro will put the current time into the active cell

Sub Time_Now()
'Routine to Enter current time in active cell
'Change format as required
With ActiveCell
    .Value = Time
    .NumberFormat = "hh:mm"
End With
End Sub

Put the macro in a standard module in the Personal.xls workbook

The easiest way to use this is to put a button on a toolbar and link it to this macro. When you have selected a cell, clicking the button will put the time in the cell.

A better way is to add an insert time option to the right click cell shortcut menu, but this is a little more complicated.

Note that this macro only puts the time in the cell.

If you need date as well it can easily be modified.

The time format is 24hrs e.g., 16:10
but it can be changed in the format line in the macro.

To calculate hours, if start time is in A2 and finish time in B2
In C2 put =B2-A2

You can add the break duration
Enter it in D2 as 0:45
The formulas in C2 and E2 are also shown

	A	B	C	D	E
1	Start	Finish	Total	Break	Worked
2	8:00	17:47	9:47	0:45	9:02
			=B2-A2		=C2-D2

This calculation will not work if finish time is after midnight, but there are ways of dealing with that, if it is an issue.

Just ask.

Regards


0

Response Number 2
Name: Mike (by mmcconaghy)
Date: September 21, 2009 at 15:17:00 Pacific
Reply:
0

Response Number 3
Name: netseeker
Date: October 11, 2009 at 16:18:26 Pacific
Reply:

hi,
sorry for bumping and stealing this topic,
but I think my question is related to this topic and since I'm newcomer here please forgive me ;)

the problem :
I am developing a time tracking s/w for a time clock system and problem starts when the employees start their work suppose at 10pm and their job will finish at 3am next day
this time zone spread into two different days.
like he starts his job at Monday 10pm and he will finish it at Tuesday 3am.

I am not able to calculate this time period correctly .
I need some ideas about this problem or any existed algorithm according to that will be welcomed.
and what is the other companie's solution as regards of this problem?
how do u they solve it?


regards.


0

Response Number 4
Name: Humar
Date: October 11, 2009 at 17:41:08 Pacific
Reply:

Hi,

Can I ask that you start a new thread.

It makes it easier to track topics.

Use a title that describes the issue such as Excel time calculation after midnight.

In the body of the question be as specific as you can be about what you need to do. What inputs you have and what outputs you need

In the meantime look at Response #1 in
this thread.

Regards


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: time clock break down

Converting Time Clock Time www.computing.net/answers/office/converting-time-clock-time/6857.html

Need to develop an ongoing monthly time clock www.computing.net/answers/office/need-to-develop-an-ongoing-monthly-time-clock/8861.html

MCSE training www.computing.net/answers/office/mcse-training/2462.html