+ Reply to Thread
Results 1 to 10 of 10

SUMIF by Name, By Shift Time

  1. #1
    Registered User
    Join Date
    08-29-2017
    Location
    Oregon
    MS-Off Ver
    2016
    Posts
    26

    SUMIF by Name, By Shift Time

    Hello,

    Sooo this is what I need:

    A formula that will SUM the quantity finished by person, during their shift. Currently I have to manually highlight cells to SUM for night shift personnel, automation is necessary for passing this on to others.

    SUMIFS by day shift personnel is easy, but I need this for night shift. They start on one day at 6pm, then stop at 6am the next day. The complication comes in the fact that night shift personnel have shifts that carry over into the next day, and then start again later that next day. My knowledge of excel has hit a massive roadblock.


    My columns for data look something like attached, which is just a snippet of how I am tracking for the month so far. It starts with Time-in/Time-out, then Processed By, and then Quantity.

    To the right is where the day to day data will be summed by day, for Day and Night shift. Night shift, despite spilling over to the following day will need to be counted as the day they started.

    After that is where I stack by Name, going down the month to show their daily totals by individual.


    This is not the most elegant presentation of data, but it was something I had that functioned for my own reporting purposes. Now others wish to see the madness within and I would greatly appreciate the help to automate!

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: SUMIF by Name, By Shift Time

    named ranges:
    Processor: =Sheet1!$C$2:$C$51
    QuantityFinished:=Sheet1!$D$2:$D$51
    TimeOut:=Sheet1!$B$2:$B$51

    M2:T32:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-29-2017
    Location
    Oregon
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIF by Name, By Shift Time

    Hey! Thanks for the reply.

    To make sure that I understand: the formula for M2:T32 goes into each cell of that range?

    The named ranges, you have range fills with specific names. They seem to match the names in in the M2:T32 range. Do I replace the names in the formula with the ranges?

    EDIT:
    I ask because when I just put the formula in the cell without altering anything, I get #NAME error.
    Last edited by sansai; 01-12-2018 at 12:07 AM.

  4. #4
    Registered User
    Join Date
    08-29-2017
    Location
    Oregon
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIF by Name, By Shift Time

    I am also sorry, I should specify more than just the time range. I see I need to list the night shift names.

    Carson, Alex
    Yung, Robert
    Haus, Robin
    Rodrigez, Manuel

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: SUMIF by Name, By Shift Time

    1. The formula is in each cell of M2:T32. Enter it in M2, drag it down and then drag it across.
    2. There are several ways to create named ranges. In this example, I selected the names in column C (C2:C51) and entered Processor in the Name box. Same for QuantityFinished (col D) and TimeOut (col B).

    *3. I don't know what you want to do with the night shift names, though...
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: SUMIF by Name, By Shift Time

    For Day (J2)
    Please Login or Register  to view this content.
    Night (K2)
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-29-2017
    Location
    Oregon
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIF by Name, By Shift Time

    Thanks for the help! You are a real lifesaver!

  8. #8
    Registered User
    Join Date
    08-29-2017
    Location
    Oregon
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIF by Name, By Shift Time

    Actually, when looking at the numbers, it did not quite all add up.

    Looking at Alex Carson, for example, on January 3rd the chart only counted 4 done. Counting by hand he did 8 leading up to midnight, and then 4 more after midnight. So the number for January 3rd for Alex should read 12, but it reads 4.

    It seems all night shift have this. Just before the midnight swap, the moves are counted for the next day.

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: SUMIF by Name, By Shift Time

    I'll try to look at it today, not sure if I have time.

  10. #10
    Registered User
    Join Date
    08-29-2017
    Location
    Oregon
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIF by Name, By Shift Time

    Quote Originally Posted by protonLeah View Post
    I'll try to look at it today, not sure if I have time.
    Not a problem! I already tossed the rep your way.

    Someone else was able to give me this formula:

    =SUMIFS(Data!$G$2:$G$578,Data!$B$2:$B$578,">"&$B2+TIME(6,15,0),Data!$B$2:$B$578,"<="&$B2+TIME(18,15,0))
    =SUMIFS(Data!$G$2:$G$578,Data!$B$2:$B$578,">"&$B2+TIME(18,15,0),Data!$B$2:$B$578,"<="&$B2+1+TIME(6,15,0))


    Thanks again for the help you gave!

+ 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] Calculating a previous work shift time (05:30, or 17:30) based on current time
    By andrew.why in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2017, 09:09 PM
  2. Replies: 2
    Last Post: 07-14-2015, 02:12 PM
  3. [SOLVED] Make time pass only if the shift is running and produce a finish time for products.
    By rdperry11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2015, 05:55 AM
  4. Replies: 10
    Last Post: 11-08-2014, 04:51 PM
  5. Need Help on Time Sheet Formula (Day Shift OK/Night Shift=Problem)
    By jomapac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2013, 02:26 AM
  6. [SOLVED] Trying SUMIF to get sum of personnel working prior to their end of shift
    By nickmessick1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2012, 09:17 AM
  7. Day shift/night shift time calculation issue
    By STATEXCEL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-31-2007, 08:48 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