+ Reply to Thread
Results 1 to 6 of 6

Keep from going over cell Value

  1. #1
    Registered User
    Join Date
    10-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    62

    Keep from going over cell Value

    I have a sheet that gives me the amount of lots I need to run in a week and the maximum amount of lots I can run in a week. My problem is, I cannot consistently keep my needed lot sizes to stay close AND not go over my maximum lots allowed.

    1. I find out what I need (B2-C2)+D2 (Need to fill to Inventory MAX)
    2. I multiply total need (E12) by each Item line. (Percent to Need)
    3. I multiply percent against Max Lots Allowed in one Week to get "Proposed"
    4. I then round each line (MROUND) to nearest lot size (Proposed Rounded to Lot)

    I tried using MIN instead of MROUND and it was too far below MAX Lots allowed.

    MAX Need.png
    Going over Max.xlsx

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Keep from going over cell Value

    In G11, change the formula to

    =B14-SUM(G2:G10)

    and you will always hit your Max lots allowed in one week.

    If it is possible that you will need fewer than your max lots, use this instead

    =MIN(E12,B14)-SUM(G2:G10)
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    10-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Keep from going over cell Value

    Quote Originally Posted by Bernie Deitrick View Post
    In G11, change the formula to

    =B14-SUM(G2:G10)
    I can use this to stay under. Thanks alot!

    I there a way to make sure the number always stays close to the MAX (within a lot size or so)? If I change the stock or demand around, I can be as much as 15,000 or so from the MAX.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Keep from going over cell Value

    No matter what I do, I always get the MAX value - could you post a workbook with values that give you the issue?

  5. #5
    Registered User
    Join Date
    10-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Keep from going over cell Value

    I figured it out. I had your formula in the sum column and not on the last item. Thank you for you help, it seems to be working great now.

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Keep from going over cell Value

    I figured you probably had it in the wrong place. Glad to hear you figured it out.

+ 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] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. Replies: 0
    Last Post: 03-20-2014, 10:57 AM
  3. [SOLVED] Macro Delete Contents in 23rd corresponding cell if the cell in range is a non-blank cell
    By murtaza.khan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2014, 01:11 AM
  4. If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.
    By tristanhathaway in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 08:05 PM
  5. [SOLVED] How to create/run "cell A equals Cell B put Cell C info in Cell D
    By abmb161 in forum Excel General
    Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  6. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  7. copy a cell multiple times depending on cell value starting on a specific cell
    By weritadiojomiel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2013, 05:25 AM
  8. Replies: 1
    Last Post: 11-03-2012, 09:05 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