+ Reply to Thread
Results 1 to 4 of 4

Affect Two Cells Using A Single Formula

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Affect Two Cells Using A Single Formula

    I am trying to create a formula to help my scheduler and materials manager order enough material to meet demands that are greater than what we can produce in our current lead time. I want to start as far out as my customers orders are planned and roll overflow orders backwards until all quantities are below the specified max production. Here is what I am working with as well as a formula that would do the trick if it were actually legit....

    Max Production: $A$1

    Monthly Order Quantities: A2:S2

    If any given month's production is greater than $A$1 then I need the overage rolled into the previous month and so an and so forth.

    Logic:

    S2= if (S2<=$A$1,S2, if (S2>$A$1, R2=R2+(S2-$A$1) and S2=$A$1))

    R2= if (R2<=$A$1,R2, if (R2>$A$1, Q2=Q2+(R2-$A$1) and R2=$A$1))

    Q2= if (Q2<=$A$1,Q2, if (Q2>$A$1, P2=P2+(Q2-$A$1) and Q2=$A$1))
    Last edited by Sutniko; 08-12-2013 at 11:38 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Affect Two Cells Using A Single Formula

    Hi,

    Try in A3 copied across

    =MIN($A$1,SUM(A2:$T2)-SUM(B3:$T3))
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Affect Two Cells Using A Single Formula

    Awesome! It works. I am still working through the logic in your formula so I can understand exactly what is happening there but... problem solved.

    Thanks!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Affect Two Cells Using A Single Formula

    That's great. Thanks for the feedback.

    I originally thought that it would need a macro since at first glance it seemed that there was a recursive element, but after a little more thought and playing around a bit the formula you see appeared.

+ 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. Combo Box Selection to Affect Adjoining Cells
    By 7Black in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-05-2013, 12:53 AM
  2. How to get drop down list value to affect multiple cells
    By cwhitmore in forum Excel General
    Replies: 5
    Last Post: 02-03-2012, 06:48 PM
  3. Affect range of cells with basic sum
    By awalsh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-29-2010, 08:08 AM
  4. [SOLVED] conditional formats affect other cells
    By golden322 in forum Excel General
    Replies: 8
    Last Post: 01-22-2006, 06:22 PM
  5. [SOLVED] Paste function without affect locked cells
    By Manos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2005, 12:06 PM

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