+ Reply to Thread
Results 1 to 3 of 3

Calculating Average Start Time by Employee

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    88

    Calculating Average Start Time by Employee

    I have a list of tickets closed that includes among other things, the date and time the ticket was closed and the employee name. My end goal is to return the average start time (first ticket for the day) for each of the employees found in the particular data set, usually a months worth of data. Can you point me to either a formula or some VBA code that would work? THAT would be great!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Calculating Average Start Time by Employee

    E3:E4 => employee name

    F3:F4
    =AVERAGE(IF($B$2:$B$24=E3,IF(INT($A$2:$A$24)<>INT(N(+$A$1:$A$23)),MOD($A$2:$A$24,1))))

    Ctrl+Shift+Enter
    Attached Files Attached Files

  3. #3
    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,148

    Re: Calculating Average Start Time by Employee

    Helper in Column C

    =IF(SUMPRODUCT(--(INT($A$2:A2)=INT(A2)))=1,MOD(A2,1),"")

    in Column D

    =IF(COUNTIF($B$2:B2,B2)=1,AVERAGEIF($B$2:$B$24,B2,$C$2:$C$24),"")

    or

    =IF(COUNTIF($B$2:B3,B3)=1,$B3 &" " &TEXT(AVERAGEIF($B$2:$B$24,B3,$C$2:$C$24),"hh:mm:ss"),"")
    Attached Files Attached Files
    Last edited by JohnTopley; 08-26-2021 at 03:47 PM.

+ 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. Help needed in calculating amount of time an employee has worked for
    By dazzys in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2020, 09:21 AM
  2. Replies: 8
    Last Post: 08-26-2020, 04:57 PM
  3. [SOLVED] Find Employee working Hrs From Start Time to End Time
    By Anisusa in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-11-2020, 12:53 PM
  4. Calculating time on employee timesheet
    By Tashia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2014, 12:46 AM
  5. Replies: 2
    Last Post: 04-29-2014, 12:33 PM
  6. Employee Tardiness based off start time
    By 180drft in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2013, 03:54 PM
  7. Calculating END time based on start time, breaks, and hours to complete
    By sweedey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2012, 11:29 AM

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