+ Reply to Thread
Results 1 to 13 of 13

Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

  1. #1
    Registered User
    Join Date
    07-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    24

    Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    Hello,

    I have a little problem wich I'm not able to solve it on my own. So, I have a table with employees going IN and OUT at various times. I want to log somehow their weekly efficiency by actually measuring how much do they work daily, and then a sum by week number. But first I need the amount of hours worked daily, so the difference between the first IN for that specific day, and the last OUT, all knowing that the total amount of break time they have is 20 mins. Then I want the total by employee name and week number for the hours that this guy actually worked. Please see attached to understand better what i'm describing. It will be a HUGE help for me to find a solution.

    Tks ALOT!!
    Attached Files Attached Files
    Last edited by ccernat; 07-11-2012 at 09:53 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    Hi ccernat,

    I am not able to understand "Real Teoretic" in the upper table and which columns in below table shows the In Time and Out Time ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    07-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    Thanks alot for you quick repy!

    The column with In and Exit is called: fReaderName. And Real = the sum of all the hours worked by that specific worker in that specific week. Teoretic is what he is supposed to work: 5 days per week x 8 hours per day.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    Okay..

    aldea mihai got in on 5/18/2012 03:07:20 PM but exited thrice on 5/18/2012, but if consider the maximum exit time i.e, 05/18/2012 03:07:54 PM and subtract this with In time the result would be 34 seconds... am I on right track ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    07-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    Yes. I neet the time difference between the Last EXIT - First IN, for that specific worker, in that specific day, and then add all the days worked in that specific week and output the result into that big table with week numbers, in the Real column.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    HI ccernat,

    I have used SumIF function plus helper column(s) to achieve the desired result, see the attachment and let me know if this helps. Thanks.
    ATTENDANCE_SAMPLE.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    07-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    wonderful, its working great, except that its only for one worker. if in my list appear various other workers wich also they worked in those specific days, the formula adds all the hours for all workers, and not for each one in particular. can so

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    Ok.. to handle that you can use SumIFs function as outlined below :-

    =SUMIFS(Table1[Column4],Table1[f_ConsumerName],$A3,Table1[WeekNO],B$1)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  9. #9
    Registered User
    Join Date
    07-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    No, i want in the column where you calculated the difference between MAX and MIN, but you only conditioned by date, and i need also by name of the employee. I tried smth like:

    =MAX(IF(AND($J$2:$J$660=$J2;$B$2:$B$660=$B2);$G$2:$G$660;""))-MIN(IF(AND($J$2:$J$660=$J2;$B$2:$B$660=$B2);$G$2:$G$660;""))

    But it didnt work, it returned #VALUE. I tried to put 2 condition for the min and max: the date to be the same and the employee name to be the same in the same time with the AND operator. Can you see whats wrong?
    THKS ALOT!

  10. #10
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    Ok.. no worries...

    You can revise the formula in I21 cell in similar fashion :-

    {=MAX(IF(($B$21:$B$66=$B21)*($J$21:$J$66=$J21),$G$21:$G$66,""))-MIN(IF(($B$21:$B$66=$B21)*($J$21:$J$66=$J21),$G$21:$G$66,""))}

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  11. #11
    Registered User
    Join Date
    07-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    GREAT!!! Tks alot!!

  12. #12
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    You are welcome ccernat

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  13. #13
    Registered User
    Join Date
    08-20-2013
    Location
    Belgrade,Serbia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excel - INDEX, MATCH, SUMIFS?! TIME & ATTENDANCE REPORT

    Hi,
    could you help me , i have similar problem to this one,difference is only i need to calculate how many time user spent IN ..in this formula it is calculated last exit and first in.
    I have a few IN's and OUT every day and somehow need to know time spent Inside the office.
    Here is my output from access control.

    Thanks
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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