+ Reply to Thread
Results 1 to 7 of 7

Formula for total to stop at 0

  1. #1
    Registered User
    Join Date
    10-06-2023
    Location
    Seattle, WA
    MS-Off Ver
    365
    Posts
    3

    Formula for total to stop at 0

    Hi All, I am distributing items across store locations and am having trouble with my distribution final total. Stores are ranked by a, b, and c. I put how many I need to be distributed out in these columns. For example, the items in row 11 have a total of 10,000 in stock to distribute. I used the SUM and ABS formulas to help count this total, but my problem is that if I go over 10,000 it will not stop at 0, but proceed to count up. Does anyone know a formula to have this total stop at 0? Help is much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,946

    Re: Formula for total to stop at 0

    No entirely sure where the formula is. But you can probably use MAX. For example
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-06-2023
    Location
    Seattle, WA
    MS-Off Ver
    365
    Posts
    3

    Re: Formula for total to stop at 0

    Hi, the formula is hidden off in the AX column for each total. I tried putting the formula =MAX(10000,SUM(L11:AS11)*1) in AU11, but when I play around with the distro numbers in line 11, it still counts past 10000. Am I not typing the formula correctly?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,946

    Re: Formula for total to stop at 0

    Sorry. I think it should be
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Why do you have *1? It doesn't do anything.

  5. #5
    Registered User
    Join Date
    10-06-2023
    Location
    Seattle, WA
    MS-Off Ver
    365
    Posts
    3

    Re: Formula for total to stop at 0

    Hi TMS,

    I had this in another equation to counteract some negatives. I have taken it off. Thanks for this. The min made the count across stores store, but did not keep the distro list from going over the qty of 10,000 across the different store locations. Do you think that I need to change my IF conditional equations? Thanks!

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Formula for total to stop at 0

    how does *1 counter negatives?

    I think you need to restate your problem and say the formulas that are giving you issues. And how you would wish to resolve this

    Is the sheet populated left to right and when you reach 10000 you do not want the formulas to return values

    =IF(L$9="a",$H11,IF(L$9="b",$I11,IF(L$9="c",$J11,IF(L$9="d",$E11,IF(L$9="","")))))

    can be =HLOOKUP(L9,$H$9:$K$11,3,0) in l11
    in m11 and across =IF(SUM($L11:L11)+HLOOKUP(M9,$H$9:$K$11,3,0)>10000,10000-SUM($L11:L11),HLOOKUP(M9,$H$9:$K$11,3,0))

    but this is guesses you should really explain!

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

    Re: Formula for total to stop at 0

    I am not clear about Problem.
    i guess the total of distribution should not exceed the limit 10,000.
    Try this. In L11 then copied to full range.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Calculate 10% up to a specific total amount is reached and then stop
    By rhelms01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2019, 04:10 PM
  2. Stop total from continuing numbers in total column
    By Puddy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-02-2019, 09:15 AM
  3. [SOLVED] Macro that can Normalize or Average Stop Total
    By vbronton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2018, 11:06 AM
  4. Stop pivot slicer from recalculating % total
    By tamaramb in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-04-2016, 09:15 PM
  5. [SOLVED] Formula Help: Determine days total from arrival to current date then stop adding days
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2016, 12:45 PM
  6. Sport Stop Watch With Laps and Total
    By michals in forum Excel General
    Replies: 4
    Last Post: 11-10-2009, 02:14 AM
  7. [SOLVED] How to stop running total on excel spreadsheet
    By RC in forum Excel General
    Replies: 2
    Last Post: 04-21-2005, 09:07 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