+ Reply to Thread
Results 1 to 2 of 2

Trying to Analyze Complex ID Card Data to Total Overtime

  1. #1
    Registered User
    Join Date
    07-26-2016
    Location
    SC
    MS-Off Ver
    2013
    Posts
    3

    Trying to Analyze Complex ID Card Data to Total Overtime

    I'm trying to create a spreadsheet that I can dump data into from our building's ID card software. The goal is to get a sum total of the amount of time that specific ID cards were inserted in a slot. However, there are a number of challenges that make this more complex than I initially thought.


    The System:
    An employee puts an ID card into a slot on the wall and it turns on the lights and air conditioning on their floor. This is only necessary to do after business hours have ended (however sometimes the cards are accidentally left in during business hours). I am only interested in the total time that doesn't overlap with business hours (overtime).

    The Data:
    The ID software creates a row each time a card is inserted "ON" or removed "OFF" and shows the badge/ID number as well the exact time of the event.


    Challenges:
    Janitors: There are ID cards I need to filter out and not count (like those associated with janitors turning the lights on to clean at night).
    Setting Business hours: Business hours change throughout the year, so I need to be able to dynamically set business hours
    Weekends: There are no business hours on weekends so all card usage should count as overtime.
    Double Counting: If you look at row 137 and row 138 they are both turned "ON" before either card is removed. I don't want to double count that time because they turn on the same sets of lights. All of the data in this spreadsheet concerns the same area.
    >24 Hours: My approach failed when someone accidentally leaves the card in for >24 hours. I would end up counting 25 hours of use as 1 hour.

    Does anyone have advice on how to approach this data with these issues? I've been banging my head against the wall as every attempt I've made has failed to account for at least one of the "Challenges" above. Any advice is greatly, greatly appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Trying to Analyze Complex ID Card Data to Total Overtime

    I'd create a series of tabs with the janitor numbers, business hours, public holidays

    then create some columns with formula that give 0 if the data is invalid or 1 if it is valid (either on this sheet or another one).
    check janitor number, check business hours, check weekend/public holiday, check if double,maybe check if over 24hrs (although this is probably OK).

    then one more column to calculate the times it is on based on the criteria (ie the time between valid "ON" s and the corresponding previous off i suppose)

    Then a table to sum and display the result.

    Exactly how this would look depends on the format of the data you get for business hours etc and how you want the result displayed.

+ 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. Filtering Card Reader Data to Total After Hours Use
    By coneill89 in forum Excel General
    Replies: 3
    Last Post: 08-09-2016, 09:21 AM
  2. Replies: 6
    Last Post: 10-11-2011, 03:03 PM
  3. Replies: 2
    Last Post: 05-13-2011, 07:08 AM
  4. Time Card - Carrying Overtime
    By mr.dale in forum Excel General
    Replies: 3
    Last Post: 03-05-2011, 02:27 PM
  5. Analyze total
    By ln54 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2006, 04:30 AM
  6. More complex overtime question
    By Kim DuBray in forum Excel General
    Replies: 6
    Last Post: 12-13-2005, 07:50 PM
  7. [SOLVED] Complex overtime calculation
    By Kim DuBray in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-07-2005, 08:40 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