+ Reply to Thread
Results 1 to 3 of 3

Sum of data with time being a factor (advanced, So i'm advised)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    477

    Sum of data with time being a factor (advanced, So i'm advised)

    Hello

    I’ve tried posting something similar on the formula section of the forum, no solution has been offered and I very much doubt one will be found as I’m told its beyond formula help..

    JLR Report Tab – Colum D reports total qty that’s been built for whatever part number appears in Colum A... Raw Data is on MFG tab (can’t be changed) as it’s pasted in

    I need the breakdown of what is built on each shift Colum E, F, G
    06:00 - 14:30
    1400: - 22:30
    22:30 - 06:30

    the MFG tab is dynamic and changes day to day, the layout is always the same

    Please see attached expected outcome

    any attempted help is appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Sum of data with time being a factor (advanced, So i'm advised)

    If I've understood...

    Formula: copy to clipboard

    E4:=SUMIFS(MFG!$E:$E,MFG!$A:$A,$A4,MFG!$C:$C,">=06:30",MFG!$C:$C,"<14:30")
    F4:=SUMIFS(MFG!$E:$E,MFG!$A:$A,$A4,MFG!$C:$C,">=14:30",MFG!$C:$C,"<22:30")
    G4:=D4-SUM(E4:F4)
    copied down


    I'd advise against using full column ranges for SUMIFS - and suggest you use a Dynamic Named Range instead.

    edit: you could also reduce the number of SUMIFS calcs executed with pre-emptive test on D, i.e. =IF($D4=0,0,SUMIFS(...))

  3. #3
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    477

    Re: Sum of data with time being a factor (advanced, So i'm advised)

    thats great, works very well

+ 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. Have Been Advised my problem needs a VBA solution, not a formula
    By GeoffJ in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-22-2018, 12:45 AM
  2. Time Elapsed but factor in business hours
    By Cortney306 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2016, 01:58 PM
  3. originally posted in general but advised to post here
    By sfoll in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-24-2015, 08:40 AM
  4. [SOLVED] Factor Up and Factor Down Values Formula
    By alive555 in forum Excel General
    Replies: 6
    Last Post: 08-14-2015, 12:01 PM
  5. IF with multiple conditions (unless better way advised)
    By annazet in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2014, 05:58 AM
  6. Advised file is open when not the case
    By deniseh in forum Excel General
    Replies: 1
    Last Post: 11-03-2005, 09:40 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