+ Reply to Thread
Results 1 to 14 of 14

Using excel to manage worked houres !?

Hybrid View

alinpion Using excel to manage worked... 08-10-2011, 05:01 AM
Bob Phillips Re: Using excel to manage... 08-10-2011, 05:23 AM
alinpion Re: Using excel to manage... 08-10-2011, 06:16 AM
alinpion Re: Using excel to manage... 08-10-2011, 07:07 AM
Bob Phillips Re: Using excel to manage... 08-10-2011, 07:34 AM
alinpion Re: Using excel to manage... 08-10-2011, 07:49 AM
Bob Phillips Re: Using excel to manage... 08-10-2011, 08:38 AM
alinpion Re: Using excel to manage... 08-10-2011, 09:11 AM
alinpion Re: Using excel to manage... 08-11-2011, 04:25 AM
Bob Phillips Re: Using excel to manage... 08-11-2011, 04:27 AM
alinpion Re: Using excel to manage... 08-11-2011, 04:53 AM
Bob Phillips Re: Using excel to manage... 08-11-2011, 05:27 AM
alinpion Re: Using excel to manage... 08-11-2011, 05:49 AM
akmsikhan Re: Using excel to manage... 10-18-2011, 03:30 PM
  1. #1
    Registered User
    Join Date
    05-16-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    32

    Using excel to manage worked houres !?

    Hello!

    I'm using excel 2003 and I'm trying to make a excel staff file that would manage the time worked by employees. The data is exported from a acces sistem (the sistem just export in excell files the time when a worker entered and exit he does not calculate the total time spent). I've attached a excel file that with an example of what I want to do :

    - in the sheet "Data exported from acces sistem" I'll paste the results from the access sistem
    - in the sheet "Staff manager" I'll have just one table (the one who auto extracts the data from "Data exported from acces sistem" sheet); in the example I give you 2 tables first is where I want the formulas and the second is an example on who the first one should look like

    In my opinion the formula for IN time for a person should be something like: =IF( both NAME and DATE from "Staff manager" sheet are found in "Data exported from acces sistem" sheet ; GET MIN of the IN TIME for that DATE ; " " )

    This post is also open on mrexcel forum:
    http://www.mrexcel.com/forum/showthread.php?t=570300
    Attached Files Attached Files
    Last edited by alinpion; 08-10-2011 at 05:03 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Using excel to manage worked houres !?

    Use these array formula for in and out

    =INDEX(MOD('Data exported from acces sistem'!$C$2:$C$20,1),MATCH(1,('Data exported from acces sistem'!$A$2:$A$20=$A3)*(INT('Data exported from acces sistem'!$C$2:$C$20)=$B$1),0))

    =INDEX(MOD('Data exported from acces sistem'!$I$2:$I$20,1),MATCH(1,('Data exported from acces sistem'!$G$2:$G$20=$A3)*(INT('Data exported from acces sistem'!$I$2:$I$20)=$B$1),0))

    You will need to put proper dates in B1, E1, etc., and adjust the $B$1 to the appropriate date field for each day results.

  3. #3
    Registered User
    Join Date
    05-16-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Using excel to manage worked houres !?

    Quote Originally Posted by Bob Phillips View Post
    Use these array formula for in and out

    =INDEX(MOD('Data exported from acces sistem'!$C$2:$C$20,1),MATCH(1,('Data exported from acces sistem'!$A$2:$A$20=$A3)*(INT('Data exported from acces sistem'!$C$2:$C$20)=$B$1),0))

    =INDEX(MOD('Data exported from acces sistem'!$I$2:$I$20,1),MATCH(1,('Data exported from acces sistem'!$G$2:$G$20=$A3)*(INT('Data exported from acces sistem'!$I$2:$I$20)=$B$1),0))

    You will need to put proper dates in B1, E1, etc., and adjust the $B$1 to the appropriate date field for each day results.
    Your formulas work great !
    I just have to configure it to work for night shift !

    THANK YOU!

  4. #4
    Registered User
    Join Date
    05-16-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Using excel to manage worked houres !?

    I've tryied to in modify the formula for night shift but it does not work

    =INDEX(MOD(dataexport!$I$2:$I$20;1);MATCH(1;(dataexport!$G$2:$G$20=$A3)*(INT(dataexport!$I$2:$I$20)=($B$1:$E$1));0))

    B1 has the today date 24/07/2011 and E1 tomorrow date 25/07/2011 by having the extra date I can manage the night shifts.

    For OUT time I need the formula to compare the date from today and the date from tomorrow with the date from data export
    Last edited by alinpion; 08-10-2011 at 07:28 AM.

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Using excel to manage worked houres !?

    Give me an example of the data that constitutes a night-shift (I think I can envisage it, but best to make sure).

  6. #6
    Registered User
    Join Date
    05-16-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Using excel to manage worked houres !?

    Quote Originally Posted by Bob Phillips View Post
    Give me an example of the data that constitutes a night-shift (I think I can envisage it, but best to make sure).
    The worker enters IN at 23:00 on 24/07/2011 and exit the factory at 07:00 on 25/07/2011

    I need the formula to compaire both 24/07/2011 (B1) and 25/07/2011 (E1) dates for OUT time and give me the last time the worker uses his badge do leave the work place.

    I think the best formula would be to compaire first the 25/07/2011 and if the worker had not used his badge in that day to compaire the 24/07/2011

    By doing this the formula first verify if is a night shift and if not it will compaire with the same day the worker entered.

  7. #7
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Using excel to manage worked houres !?

    That's about what I thought, so try this as the time out formula

    =INDEX(MOD('Data exported from acces sistem'!$I$2:$I$20,1),
    MATCH(1,('Data exported from acces sistem'!$G$2:$G$20=$A3)
    *((INT('Data exported from acces sistem'!$I$2:$I$20)=$B$1)+(INT('Data exported from acces sistem'!$I$2:$I$20)=$B$1+1)),0))

    (I see you already cater for the midnight overlap in your totals formula).

  8. #8
    Registered User
    Join Date
    05-16-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Using excel to manage worked houres !?

    Quote Originally Posted by Bob Phillips View Post
    That's about what I thought, so try this as the time out formula

    =INDEX(MOD('Data exported from acces sistem'!$I$2:$I$20,1),
    MATCH(1,('Data exported from acces sistem'!$G$2:$G$20=$A3)
    *((INT('Data exported from acces sistem'!$I$2:$I$20)=$B$1)+(INT('Data exported from acces sistem'!$I$2:$I$20)=$B$1+1)),0))

    (I see you already cater for the midnight overlap in your totals formula).
    Yes I solved the total formula !

    The formula works but now is a new problem ?

    IF a person hadn't worked in 24/07/2011 but on 23/07/2011 and 25/07/2011 the IN formula (in formula infigureted by me for night shift) brings the IN time from 23/07/2011 and the out formula brings the OUT time for 25/07/2011 and the worker will have and IN and OUT time for a day in wich he did not worked.

  9. #9
    Registered User
    Join Date
    05-16-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Using excel to manage worked houres !?

    Another problem:
    If a person has more then one OUT times in a day:

    John Smith OUT 15:00
    John Smith OUT 16:00
    John Smith OUT 17:00

    I need the OUT TIME formula to give me the last OUT TIME (17:00) for a person in a day not the first.
    How do I modify this formula to do that:
    =INDEX(MOD(dataexport!$I$2:$I$20;1);MATCH(1;(dataexport!$G$2:$G$20=$A3)*(INT(dataexport!$I$2:$I$20)=$B$1);0))

  10. #10
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Using excel to manage worked houres !?

    Can you post an updated workbook with examples of these new situations (before and after)?

  11. #11
    Registered User
    Join Date
    05-16-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Using excel to manage worked houres !?

    Quote Originally Posted by Bob Phillips View Post
    Can you post an updated workbook with examples of these new situations (before and after)?

    I've attached a file; look at the cells that are hilighted I want the formula to get the last time the worker uses his badge in a day for OUT TIME !
    Attached Files Attached Files

  12. #12
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Using excel to manage worked houres !?

    I am confused. John Smith clocks in and out on two separate times on the same day. How can he do that, how do we know which is correct?

    Also, can we re-format the dataexport data? If you import it, from another app, could we add some code to calculate the staffmanager sheet, the formulae are getting cumbersome.

  13. #13
    Registered User
    Join Date
    05-16-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Using excel to manage worked houres !?

    Quote Originally Posted by Bob Phillips View Post
    I am confused. John Smith clocks in and out on two separate times on the same day. How can he do that, how do we know which is correct?

    Also, can we re-format the dataexport data? If you import it, from another app, could we add some code to calculate the staffmanager sheet, the formulae are getting cumbersome.
    Yes!! The worker leave and the come back during work program and one of the reason is the launch break but it can be different other causes.

    Bottom line the formula should get the last OUT TIME for a worker in a day .

    The data that I work with is from a access sistem not an emplyee employee management software ; curently they are not payed by calculating the IN and OUT time ; This excel tabel will help me see how the workers spend their time and if it is necesary to buy a real staff management sistem
    Last edited by alinpion; 08-11-2011 at 06:01 AM.

  14. #14
    Registered User
    Join Date
    10-18-2011
    Location
    Philadelphia, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Using excel to manage worked houres !?

    Hi I have a worksheet. It has got in time and out time. I want to how much an employee before 03:30pm and after 03:30pm. e.g. Clock In - A1-12:30 pm and Clock Out A2-06:20 pm. The result should be AM Hours = 3.0 and PM Hours = 2.50. Would appreciate if someone helps me out with the formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1