+ Reply to Thread
Results 1 to 6 of 6

Formula to pull one Clock in and One clock Out time when multiple exist for an individual

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Formula to pull one Clock in and One clock Out time when multiple exist for an individual

    Good Morning -

    I'm attaching a spreadsheet with fake data to show what I am looking for. I have individuals with multiple clock in and clock out times on a spreadsheet. I'm trying to create a sheet that summarizes this data. If John Doe Clocks in and out 4 separate times, I just want to say John Doe started at 8 AM and clocked out at 4PM avoiding the other times in and out that are in between. Please see attached sheet for a better explanation. Any help that can be provided is greatly appreciated. Thanks so much everyone!

    MR22
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Formula to pull one Clock in and One clock Out time when multiple exist for an individ

    In C19

    =MIN(IF(($B$4:$B$13=$B19)*(C$4:C$13),C$4:C$13))

    in D19

    =MAX(IF(($B$4:$B$13=$B19)*(D$4:D$13),D$4:D$13))

    Enter both ..

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy down

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula to pull one Clock in and One clock Out time when multiple exist for an individ

    your actualy looking for the check in and check out time, or you just want to know the "worked" hours.

    In the second case you can easily use a pivot table.

    See the attached file.

    P.s. you can also show the check in time an check out time.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    05-31-2012
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Formula to pull one Clock in and One clock Out time when multiple exist for an individ

    JohnTopley - This is EXACTLY what I was looking for! Thank you so much!

  5. #5
    Registered User
    Join Date
    05-31-2012
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Formula to pull one Clock in and One clock Out time when multiple exist for an individ

    Could I take this one step Farther? You matched up name to name and brought back the min and max time. This is great. But now say some times have an A next to them and some times have a B next to them. I want the min and max time for doe "A" and then the min and max time for doe "B". Let me know if this is too confusing?

    Thanks!

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula to pull one Clock in and One clock Out time when multiple exist for an individ


+ 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. [SOLVED] Calculating Allocated Hours Based On Clock In and Clock Out
    By rahul_ferns76 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-15-2016, 07:46 AM
  2. [SOLVED] Help with formula for rounding up on time clock punches
    By blinhart in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-26-2016, 04:08 AM
  3. [SOLVED] Time Management Clock-In Formula?
    By fragadelic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2015, 09:47 PM
  4. Clock In/Out - Macro to Log Time by a Switch on multiple columns (multiple rows)
    By jasw529 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2013, 06:45 AM
  5. Default time from 12 hour clock to 24 hour clock
    By MR-77 in forum Excel General
    Replies: 3
    Last Post: 03-31-2011, 04:15 PM
  6. Replies: 3
    Last Post: 09-29-2007, 04:58 PM
  7. [SOLVED] Start Clock/Stop Clock
    By abfabrob in forum Excel General
    Replies: 9
    Last Post: 06-28-2005, 12:05 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