+ Reply to Thread
Results 1 to 17 of 17

HELP with counting the times a person is late once past specific Timevalue

  1. #1
    Registered User
    Join Date
    04-18-2016
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    12

    HELP with counting the times a person is late once past specific Timevalue

    Hi,

    Anyone have any ideas to indicate person A (eg: Zion) is late (after 08:30:00 AM) for that 1 time per day and still calculate the number of times he was late in a month?

    I have used conditional formatting to highlight a specific time period (08:30 to 09:15) to indicate when a person comes after 08:30, he will be reflected late.

    But because each of these people in attendance came in different timings and usually the attendance system records all of the timings they tapped in, you got a listing of duplicate timings at times as well as numerous others recorded after 08:30 AM.

    I have attached a sample file for easy reference.

    Thanks in advance!

    Warm regards
    Julia
    Attached Files Attached Files
    Last edited by Juliamin; 03-08-2017 at 10:07 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: HELP with counting the times a person is late once past specific Timevalue

    Does the very first entry of each day taken into account, then count "after 8:30" entry for the month?
    Quang PT

  3. #3
    Registered User
    Join Date
    04-18-2016
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    12

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi,

    The first entry of each day would not be taken into account.

    What I wanted is the first late entry count "After 8:30" - timevalue is variable because it is dependent on the time the person tapped in each day.

    So for example,

    01 Feb - If Person A tapped in at 8:31 (time variable), it is considered as 1 count. Any timings thereafter would not need to be counted in because he is afterall late anyway.

    Sorry if it is confusing!

    Julia

  4. #4
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Julia,

    I'm not sure if you'll like my idea but I was able to come up with what you want. I'm sure someone would do better but for the meantime, please check what I did.

    1. Under Column J: I used the formula VLOOK UP to exclude the NOT LATE and only capture the 1st log-in of the employee.
    2. Next step is I used the PIVOT table and USED the DISTINCT COUNT.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-18-2016
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    12

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Jarvin,

    Thanks! I ran a check but there is a slight difference with the DISTINCT COUNT from Vlookup,Pivot Table and the real data. It doesn't correspond.

    Counting from the real data, supposedly;
    Apple - late 19 times
    Sammy - 0 times
    Zion - 15 times

    hmm... I will see if I can play around to get it right.
    Last edited by Juliamin; 03-07-2017 at 10:20 PM.

  6. #6
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Julia,

    I saw the error. I forgot that I cannot simply lookup using the Dates because there were different names. I inserted a NEW CODE under column A (Combination of Name and Date) to provide new Identifier.

    On my analysis..

    Apple = 15 Late
    Zion = 8 Late

    Thanks
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-18-2016
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    12

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Jarvin,

    I counted the number of times Apple is late from her first late entry on every date - turns out to be a total of 19 though.

    hmmm...any idea why the real counts doesn't really telly the counts under the vlookup analysis?

    Thanks.

    Sorry about it. Quite confused.

  8. #8
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Julia,

    haha.. funny, got it.. even the TIME apparently was duplicated (see 2/1 and 2/2 of apple) both have same log-in time of 8:50:00 AM. Hence, the Pivot just count this as one. Let me amend the formula

    Regards,

    Jarvin

  9. #9
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Julia,

    Please see updated table for your reference.

    Regards,

    Jarvin
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-18-2016
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    12

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Jarvin,

    Sorry, not to be difficult. Erm, will the formula be needed to change for Zion then as well since his real data count is 15 but the analysis calculated 14?

    Then the formula used will not be inconsistent throughout?

    I think I found the problem with one of the values that makes it unable to count to 15. I have actually attached it in here.

    Do you happen to know how to solve this?

    Sorry!!
    Attached Images Attached Images
    Last edited by Juliamin; 03-08-2017 at 03:23 AM.

  11. #11
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hmmmm... let's see what will be the impact..

    Initially, if you'll check the formula, you'll see LEFT(_,7)... if the minimum number would be .375, then we have to adjust it to 5..

    Wait..

  12. #12
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Julia,

    I made some adjustments..

    use this updated file.. let me know if you encounter anymore problem.

    Regards,

    Jarvs
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    04-18-2016
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    12

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Jarvin,

    All looks fine! Thanks.

    But are you able to explain how you derive the num. characters (highlighted in red) for

    ...CONCATENATE(LEFT(A709,3),RIGHT(A709,5)...??

    Warm regards
    Julia

  14. #14
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Julia,

    Under column K (VLOOKUP), you'll see that it's a combination of VALUE of the date, name and Date. Now, on the analysis, we used the formula IF(VALUE(LEFT(K7,7))>=0.354166667,"LATE","NOT LATE"). On the formula, take a look on the LEFT(K7,7), it means it's is capturing the first SEVEN characters of the cell. Now, because the error (highlighted in red) only have 5 characters ".0375", the formula that we have is capturing ".0375Zi, therefore, creating an error.

    So what I did is to simply put the value that we want to capture (which is the value date) on the last part, so that all I have to do is to use the MID(_,9,15) on the analysis.

  15. #15
    Registered User
    Join Date
    04-18-2016
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    12

    Re: HELP with counting the times a person is late once past specific Timevalue

    Hi Jarvin,

    Ah~ That makes sense.

    Thanks a lot for the help and I appreciate it!!

  16. #16
    Registered User
    Join Date
    04-28-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007, 2010, 2011 Mac. 2013,2016. I use 2011 and 2016 the most
    Posts
    90

    Re: HELP with counting the times a person is late once past specific Timevalue

    Maybe too late but see if this helps "K" is a helper column
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    04-18-2016
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    12

    Re: HELP with counting the times a person is late once past specific Timevalue

    Oh sweet, it fits nicely with 1 & 0 as well. Thanks a lot too!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Return if an item is late based on start and end times and specific parameters
    By d2thep in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 04-10-2014, 10:25 AM
  2. Replies: 4
    Last Post: 04-08-2014, 05:42 PM
  3. [SOLVED] counting the cell with valid/invalid for a specific person
    By zzblitzz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2013, 12:36 PM
  4. Application.OnTime TimeValue Running at unspecified Times
    By jedahl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2013, 01:07 PM
  5. Replies: 4
    Last Post: 06-22-2012, 11:44 AM
  6. Counting Only Specific Hours Between Two Times
    By Pondus in forum Excel General
    Replies: 13
    Last Post: 12-20-2011, 07:38 AM
  7. counting specific hours between two times
    By each in forum Excel General
    Replies: 4
    Last Post: 04-20-2009, 04:08 PM

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