+ Reply to Thread
Results 1 to 2 of 2

Formula to Subtract from one column first, then another if remainder - Production Case

  1. #1
    Registered User
    Join Date
    10-13-2019
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    4

    Question Formula to Subtract from one column first, then another if remainder - Production Case

    Hi everyone!
    I was wondering if someone could help me build a formula that I am stuck trying to figure out for a few days now

    I am building a business case model that shows the following per month:
    - total production capacity per month
    - total sale per month

    At certain point during the year sale exceeds production and, therefore, production of this "extra" need has to be shifted in previous months when the sale is below the maximum production.
    Below is an example:

    Jan Feb Mar Apr May Jun
    Maximum Production Capacity 100 100 100 100 100 100
    Sale 40 65 85 110 120 90
    Difference 60 35 15 -10 -20 10


    What I need to do now is shift first the "extra" 20 sale in May to produce partially in Mar (because I have 15 extra capacity) and additional 5 to Feb and additionally add "extra" 10 from Apr to produce in Feb.


    Can anyone help me out with setting up a formula?

    Thanks in advance!
    A

    Capture.PNG

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Formula to Subtract from one column first, then another if remainder - Production Case

    In row 4 (cell B4) write a formula to calculate required production:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy it right.
    Note that the references are including one (at least - could be more) column right of your data (ends in June, so column G).

    See attached file
    Attached Files Attached Files
    Best Regards,

    Kaper

+ 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. Subtract from one column first, then another if remainder
    By haylleyjo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2018, 02:25 AM
  2. [SOLVED] Formula to subtract the second to last non-zero value in a column from the last
    By AMille in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2018, 10:53 AM
  3. Using Select Case to Manage Production
    By newtons003 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2014, 08:28 AM
  4. Need formula to subtract only last value in column
    By akajules in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-23-2014, 09:39 PM
  5. Formula to subtract 7th column values from the column before the 1st (loop)
    By saya_26 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2014, 09:13 AM
  6. Macro to subtract from one column first, then another if remainder
    By neilo1969 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2011, 05:33 AM
  7. Replies: 2
    Last Post: 11-15-2006, 11:04 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