+ Reply to Thread
Results 1 to 1 of 1

Using Punchclock data to count employees working during each hour

  1. #1
    Registered User
    Join Date
    02-12-2014
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2016
    Posts
    6

    Using Punchclock data to count employees working during each hour

    Using punch clock data, I am trying to count how many employees are clocked in during each specified hour. Don't want just a total count by hour, need it very granular in order to pivot/report off of the data to analyze shift times, by manager.

    The problem I have is that the data varies by employee. Some have 1 punch in, 1 out. Some have 2-3 punches in/out. Some have 2 in, 1 out. I am trying to run a formula on each row of data which represents one day of punches for a specific employee, and have it give me an 1 in a column corresponding with each hour of the day, and that can handle empty cells. Here's what I have so far:

    In N2, I have the following formula: =IF(OR(AND(N$1>=HOUR($B2),N$1<=HOUR($D2)),AND(N$1>=HOUR($F2),N$1<=HOUR($H2)),AND(N$1>=HOUR($J2),N$1<=HOUR($L3)),1,"")

    It counts most of the data correctly, but I am still getting random 1's in columns that don't meet the criteria, and not in others that do.

    I tried the solutions described here and here, but I'm not sure how to format them for multiple ranges, or to account properly for empty cells.

    I don't know how to get there without either an unwieldy formula or an array, and either way, I am flummoxed. Please help!
    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)

Similar Threads

  1. [SOLVED] Formula to convert 24 hour day to 8 hour (working) day?
    By miro2021 in forum Excel General
    Replies: 4
    Last Post: 07-31-2017, 10:06 AM
  2. Using COUNTIF to determine # of employees working each hour
    By Fyyzer in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-18-2017, 05:46 AM
  3. Using Countif to determine number of employees working per hour
    By CBanks888 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-23-2013, 04:15 PM
  4. Average number of employees per hour
    By phiphika1453 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 04-22-2013, 03:25 AM
  5. [SOLVED] calculate time for employees in 24 hour operation
    By HoweRich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2006, 03:33 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