+ Reply to Thread
Results 1 to 7 of 7

Comparing dates/times 'within' set dates/times

  1. #1
    Registered User
    Join Date
    05-20-2010
    Location
    Shrewsbury, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Comparing dates/times 'within' set dates/times

    Hi all

    This is my 1st post, so apologies if I over, or indeed, under explain my issue.

    I have two worksheets, one contains data such as number of calls, length of calls etc, the second contains shift patterns, including dates and times

    What I need to do is to extract call data that relates to a particular shift pattern so that I can summarise that info.

    For example

    Sheet1 might have 01/04/10 09:00 - 16:00 (a standard day shift)
    Sheet2 might have 01/04/10 09:00 - 10:00, 53 calls, avg time to answer 20 seconds, etc
    01/04/10 10:00 - 11:00, 17 calls, avg time to answer 18 seconds

    And so on.

    Is it possible to write code that determines which 'hours' from Sheet2 exist in the 'shifts' from Sheet1 and then copy them to another location for summarisation?

    Again, apologies if this is a little too vague, but any help will be greatly appreciated.
    Attached Files Attached Files
    Last edited by JimFiggs; 06-08-2010 at 08:49 AM. Reason: Attaching example data

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Comparing dates/times 'within' set dates/times

    in the second sheet what is the need for both beginning time and end time. these are not the end time of the call. for example take your first case. when did the call start. If it started at 09 hours then it ended at 09:00:18(that is 9 hours and 18 secnds). the end time is not necessary , duration would be enought.

    in my regional case if the date is 1st april 2010 this is entered as 4/1/10.

    why not incorporate both date and time in one cell instead of having a separate cell for dates.
    for e.g enter 4/1/0 09:00:00

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Comparing dates/times 'within' set dates/times

    Quote Originally Posted by JimFiggs View Post
    Sheet1 might have 01/04/10 09:00 - 16:00 (a standard day shift)
    Sheet2 might have 01/04/10 09:00 - 10:00, 53 calls, avg time to answer 20 seconds, etc
    01/04/10 10:00 - 11:00, 17 calls, avg time to answer 18 seconds
    Your problem doesn't sound hard, but it would be a big help if you posted a workbook with sample data.
    In your message Click "Edit" then "Go Advance", then click the Paper Clip at the top or scroll down and click "Manage Attachments", then click "Browse" to find your file on your computer, then click "Upload", then"Close Window" & "Save Changes"
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  4. #4
    Registered User
    Join Date
    05-20-2010
    Location
    Shrewsbury, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Comparing dates/times 'within' set dates/times

    Quote Originally Posted by foxguy View Post
    Your problem doesn't sound hard, but it would be a big help if you posted a workbook with sample data.
    In your message Click "Edit" then "Go Advance", then click the Paper Clip at the top or scroll down and click "Manage Attachments", then click "Browse" to find your file on your computer, then click "Upload", then"Close Window" & "Save Changes"
    Foxguy

    Ive attached a sample covering 1st and 2nd March
    The first sheet has call details (number of calls, time to answer, lost calls etc) the second has the team leader shift patterns with a note of which team leader was working.

    So I guess what Im looking to do is to take the call data for the timeslots that exist within the team leader shifts and provide a summary by team leader.

    eg TL A shift 1st March 00:00 to 07:59 and the team took 56 calls, average time to answer 10 seconds etc etc etc

    Many thanks in advance

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Comparing dates/times 'within' set dates/times

    JimFiggs;

    Here's a file Calls by Hours.xls.
    I couldn't figure out how you calculated "% in Tgt" & "% Out Tgt", so I left them for you to calculate. Hopefully the formulas I've done will help you figure them out.

    One Note: You have 3/1/10 Finish of "00:00". I had to change that to 3/2/10 "00:00" in sheets("Call Info by Hour").Column "O" to make the formulas work because 3/1/10 00:00 should be 3/1/10 24:00, but times stop at 23:59:59.

  6. #6
    Registered User
    Join Date
    05-20-2010
    Location
    Shrewsbury, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Comparing dates/times 'within' set dates/times

    Quote Originally Posted by foxguy View Post
    JimFiggs;

    Here's a file Attachment 74118.
    I couldn't figure out how you calculated "% in Tgt" & "% Out Tgt", so I left them for you to calculate. Hopefully the formulas I've done will help you figure them out.

    One Note: You have 3/1/10 Finish of "00:00". I had to change that to 3/2/10 "00:00" in sheets("Call Info by Hour").Column "O" to make the formulas work because 3/1/10 00:00 should be 3/1/10 24:00, but times stop at 23:59:59.
    Foxguy

    Many thanks for the prompt action, apologies for my delayed reply, Its been a while since Ive logged on.

    What you've done looks good at an initial glance, much appreciated.

    I'll take a closer look now and 'may' get back to you

    Regards

  7. #7
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Comparing dates/times 'within' set dates/times

    Never mind

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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