+ Reply to Thread
Results 1 to 10 of 10

Calc dynamic running total in horizontal sequence

  1. #1
    Registered User
    Join Date
    10-25-2017
    Location
    San Diego
    MS-Off Ver
    365
    Posts
    12

    Calc dynamic running total in horizontal sequence

    All,

    I know the title may be a little confusing so hopefully I can clarify. I have forecast values in horizontal layout and all fractional values. I would like to add each cell till their sum = 1, and then have the calculation start all over again (accounting for any remainder >1). Is this possible without VBA?

    I have attached a workbook with a row entitled "ideal output".

    Thanks again for taking the time and consideration to look at this!
    Attached Files Attached Files
    Last edited by Giovi; 04-22-2019 at 10:29 PM.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Calc dynamic running total in horizontal sequence

    Put "1" in B6 and

    =IF(SUM($B$2:B2)>SUM($B$6:b6),1,0) in c6 and drag across
    Happy with my advice? Click on the * reputation button below

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Calc dynamic running total in horizontal sequence

    Just to clarify, you are adding quarters, and want the sum to show only in the 1st mth of the qtr?
    And you want to sum to a max of 1, and the remainder carried over to teh start of the next qtr?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    10-25-2017
    Location
    San Diego
    MS-Off Ver
    365
    Posts
    12

    Re: Calc dynamic running total in horizontal sequence

    FDibbins,

    It just so happen in this example it comes out to every quarter. But if you look at cell T2 and U2 you will see what i am trying to accomplish. The example i gave is just one material. i have a list of over 1000+. There are some materials that will need go out 7 months and ideally i would like "1" to fall in M1 and then the start of the next sequence in M8 if that makes sense.

    I have updated the worksheet to give you an idea of the demand patterns for one part across all plants.

    As you can see in row 15, the first cell starts with 4.38. The idea is to distribute the remainder and rounding each value to a whole number.

    Quote Originally Posted by FDibbins View Post
    Just to clarify, you are adding quarters, and want the sum to show only in the 1st mth of the qtr?
    And you want to sum to a max of 1, and the remainder carried over to teh start of the next qtr?
    Attached Files Attached Files
    Last edited by Giovi; 04-23-2019 at 12:21 AM.

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

    Re: Calc dynamic running total in horizontal sequence

    Try this.
    In B8 then copied across.

    =IF((SUM($B$2:B$2)-SUM($A$8:A$8))>=1,1,0)
    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.

  6. #6
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Calc dynamic running total in horizontal sequence

    Quote Originally Posted by FDibbins View Post
    Just to clarify, you are adding quarters, and want the sum to show only in the 1st mth of the qtr?
    And you want to sum to a max of 1, and the remainder carried over to teh start of the next qtr?
    They're not all quarters and my formula seems to account for that.

  7. #7
    Registered User
    Join Date
    10-25-2017
    Location
    San Diego
    MS-Off Ver
    365
    Posts
    12

    Re: Calc dynamic running total in horizontal sequence

    KVSR,

    It isn't the desired pattern. Ideally, everything is pushed to the most left in this example. I have updated the worksheet, how would this work with values that are > 1 (example row 15).


    Quote Originally Posted by kvsrinivasamurthy View Post
    Try this.
    In B8 then copied across.

    =IF((SUM($B$2:B$2)-SUM($A$8:A$8))>=1,1,0)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-25-2017
    Location
    San Diego
    MS-Off Ver
    365
    Posts
    12

    Re: Calc dynamic running total in horizontal sequence

    Crooza,

    The pattern is ideal, but it doesnt work for values where the cell is >1 already. For example row 15 or row 17.


    Quote Originally Posted by Crooza View Post
    They're not all quarters and my formula seems to account for that.
    Attached Files Attached Files

  9. #9
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Calc dynamic running total in horizontal sequence

    Quote Originally Posted by Giovi View Post
    KVSR,

    It isn't the desired pattern. Ideally, everything is pushed to the most left in this example. I have updated the worksheet, how would this work with values that are > 1 (example row 15).
    I assumed that you have the discretion to set the number. I really don't know what you'
    re doing only that the formula I supplied in post #2 matched your desired output. I'm looking at this as putting $1 in the bank and when it gets drawn down putting another $1 in the bank. What do you want the number to be in row 15? How would you go about determining it manually?

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

    Re: Calc dynamic running total in horizontal sequence

    Here is the revised formula.

    In B8 then copied across

    =IF(SUM($A$8:A$8)+SUM($A$2:A$2)=0,1,IF((SUM($A$2:A$2)-SUM($A$8:A$8)+1)>=1,1,0))
    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. Calc dynamic running total in horizontal sequence
    By Giovi in forum Excel General
    Replies: 1
    Last Post: 04-22-2019, 11:35 PM
  2. Running total after payments running total on excel
    By tmagplayr in forum Excel General
    Replies: 7
    Last Post: 09-26-2017, 02:01 PM
  3. Replies: 8
    Last Post: 07-19-2017, 12:06 PM
  4. [SOLVED] Horizontal running total , sales figures
    By makinmomb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-11-2014, 10:19 AM
  5. [SOLVED] Calc a running total of time elapsed from a timestamp
    By AWilson012 in forum Excel General
    Replies: 3
    Last Post: 07-11-2012, 03:19 PM
  6. Pivots - Auto calc % Sub total is of grand total
    By VBA Noob in forum Excel General
    Replies: 5
    Last Post: 08-08-2006, 03:46 PM
  7. [SOLVED] Pivot Tables - Calc % using Sub-Total, not Grand Total as base
    By sandi in forum Excel General
    Replies: 1
    Last Post: 12-19-2005, 05:59 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