+ Reply to Thread
Results 1 to 8 of 8

Conditional Summing Problem

  1. #1
    Registered User
    Join Date
    01-22-2018
    Location
    Lawrence, KS
    MS-Off Ver
    2013
    Posts
    2

    Conditional Summing Problem

    Hey All,

    Thank you in advance for your time. I'm new to this forum (actually, I've never posted to an excel forum so forgive me if I'm doing something incorrectly). I'm pretty familiar with excel to a degree but lack some advanced knowledge. I work in supply chain management which entails building plans for each shift then overseeing the execution of that plan. I'm currently trying to build a tool that helps me be more accurate with carton flow by period throughout a 10 hour shift. I've attached a document that replicates what I'm trying to solve for but here is a quick overview of that challenge I'm facing:

    Problem: Be able to calculate total cartons by period based on a pull sequence. For example, this plan has us pulling workstation A first, then B, C, D, E, and finally F. In period 1 we pull 315 pallets (175 pallets from workstation A, 140 pallets from workstation B). In period 2 we pull 270 pallets (the remaining pallets (60) from workstation B, all of workstation C (125) and D (50), and 35 pallets from workstation E). Period 3 we pull the remaining 65 pallets from workstation E and 160 pallets from the last workstation F.

    Desired Outcome: I'm currently doing the math manually for each period which can be time consuming. I was looking for a formula in cells range F12:F14 that could do the math for me. I'm thinking it may be a SUMIF/SUMIFS function but what I've tried hasn't worked thus far. Again, any help will be much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Conditional Summing Problem

    Are you able to show the math for what you would expect to be the end result?

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Conditional Summing Problem

    I use referent table as helper . See attachment
    Attached Files Attached Files
    Last edited by bebo021999; 01-23-2018 at 01:07 AM. Reason: Change attachment
    Quang PT

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Conditional Summing Problem

    Macro solution is better choice. Is it ok.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Registered User
    Join Date
    01-22-2018
    Location
    Lawrence, KS
    MS-Off Ver
    2013
    Posts
    2

    Re: Conditional Summing Problem

    Thank you for the quick responses everyone!

    @kersplash - The math I usually do would do is take the total pallets worked in a period and subtract pallets starting with this first workstation. If we aren't able to complete a workstation I'll take what we will pull and multiply that by the cartons/pallet. Using the example from the worksheet, the first period we will pull 315 pallets which will be all of workstation 1 (175 pallets for 3000 cartons), and 140 pallets of workstation 2: 140*7.5=1050. I would take that number and add it to the 3000 cartons from the first workstation which will have us pulling 4050 cartons in the first period. This may not seem like much of a workload but sequences, staffing, and pallets/hr can change frequently throughout the shift.

    @bebo021999 - Is there referent table you made dynamic? For instance if the next day we have a backlog of say, 2000 pallets for 20000 cartons spread across all workstations, and we decide to start in workstation D instead of E would the table you created still reflect accurately? If so then this would work!

    @kvsrinivasamurthy - Macros are welcomed! The current workbook I have now has quite a few that pull from external sources to create the backlog. I would send it but the information that it uses is proprietary and requires a login.

    Again thank you for the help. This has stumped me for weeks!

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Conditional Summing Problem

    I pl upload file with more details and data

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Conditional Summing Problem

    Quote Originally Posted by metz08 View Post
    @bebo021999 - Is there referent table you made dynamic? For instance if the next day we have a backlog of say, 2000 pallets for 20000 cartons spread across all workstations, and we decide to start in workstation D instead of E would the table you created still reflect accurately? If so then this would work!
    The referent table is dynamic, I set up to 1691 pallets and you can copy down for more pallets. It is following the order 1,2,...,6 in column E, sequence,

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Conditional Summing Problem

    Here is the Codefor macro. Change the ranges as required.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. An other summing problem
    By HJM in forum Excel General
    Replies: 0
    Last Post: 01-12-2012, 04:26 PM
  2. VBA Summing Problem
    By Broxterman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2011, 06:10 PM
  3. Summing problem
    By Ipinho100 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2011, 03:30 PM
  4. Problem with conditional summing
    By FooserX in forum Excel General
    Replies: 6
    Last Post: 07-12-2007, 03:37 PM
  5. Problem in summing up a row
    By josh131 in forum Excel General
    Replies: 2
    Last Post: 05-14-2007, 07:46 AM
  6. summing problem!!!!!!
    By boufant in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2006, 09:40 PM
  7. [SOLVED] problem with summing
    By cs78 via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2005, 05:05 AM
  8. conditional Summing
    By ben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2005, 03:06 PM

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