+ Reply to Thread
Results 1 to 4 of 4

Trying to get Totals per Time and Date

Hybrid View

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    21

    Trying to get Totals per Time and Date

    Hi All,
    Im trying to get a formula to work for my count of personnel per dayshift (Z1:Z6 to AA1:AA6) and per night shift (Z7:Z11 to AA7:AA11) (both seperated in totals) for each Vendor by using column (Q,R) and Vendor (L)
    My first try highlighted in Orange was basic but didnt include/exclude certain times (before or after) or include vendor.

    Now to be a real pain is there a way I can exclude a total count if it creeps before or after the set shift times by say 1/2 hour - 1 hour either way. (Would it be excluded by a percentage add in of before/after shifts????)

    Any Help would be much appreciated
    Attached Files Attached Files
    Last edited by nigo75; 05-28-2013 at 12:24 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Trying to get Totals per Time and Date

    Hi and welcome to the forum

    give this a try...
    =COUNTIFS($Q$2:$Q$13,">="&Z1,$R$2:$R$13,"<="&AA1)

    THis could be added to, to included a vendor, and the times in your table could be adjusted in the formula to include/exclude a specified amount of time. Just remember that excel considers time to be a fraction of a day, so 6 hours is actually 6/24 = 0.25
    Last edited by FDibbins; 05-28-2013 at 12:48 AM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-24-2013
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: Trying to get Totals per Time and Date

    Thanks FDibbins works exactly how I asked for it,
    the only problem is I forgot to make a reference if one Vendor does 3 jobs within the given time period the count will be 3 whereas the count will be one as they cannot do all jobs at once. ive tried a few different add ons to this formula but nothing has worked............??

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Trying to get Totals per Time and Date

    I added a helper column in X (you can put it anywhere, and you can hide it if you want) a,d used this, copied down...

    =IF(COUNTIF($L$2:L2,L2)>1,"",1)

    Then change my 1st formula to...
    =COUNTIFS($Q$2:$Q$13,">="&Z1,$R$2:$R$13,"<="&AA1,$X$2:$X$13,1)

+ 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