+ Reply to Thread
Results 1 to 20 of 20

running total problem

  1. #1
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    running total problem

    Hi all,
    I have a problem where i need to create a running total and i am really failing to get a result.
    Here is the latest formula that ive made. C11 is a % and unless i actually put a value it returns 0
    Please Login or Register  to view this content.
    Can anyone help me with this..
    Thanks
    loopiloo

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: running total problem

    There's no context to your question. A blank cell in an arithmetic formula is treated as zero, and your sum function is redundant.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    Ive tried like this but no success
    Please Login or Register  to view this content.
    Can you please tell me how i can get the sum function to work even with a blank cell in C11

  4. #4
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    Ive tried like this but no success
    Please Login or Register  to view this content.
    Can you please tell me how i can get the sum function to work even with a blank cell in C11

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: running total problem

    =SUM(G10,F11)*IF(C10="",1,C10) would do it
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    i put your formula and just changed the cells slightly to make it work =SUM(G10,F11)*IF(C11="",1,C11) and it produces the value of the % entered into C9
    what i am trying to achieve is a running total (Not sure how to explain clearly) ie: the last value(G10) plus new value(F11) minus the percentage(C11) equals result. drag this down to repeat on each new row... Hope i am explaining good...

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: running total problem

    Untested but you could give it a try.

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    Thanks but this is just showing error.. not sure what to modify.???

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: running total problem

    I think you get better help if you add an excel file, without confidentional information.

    also add the desired (expected) result.

  10. #10
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: running total problem

    Hi loopiloo,

    The formula you need is in column G (G11 to G21) - see attached spreadsheet - just copy it down to include more rows.

    Regards

    peterrc
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    Here is a picture... i dont know how to upload a doc hope it helps to make the problem clear
    running total problem.jpg

  12. #12
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    Here is a picture... i dont know how to upload a doc hope it helps to make the problem clear
    Attachment 241709

  13. #13
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    Here is a picture... i dont know how to upload a doc hope it helps to make the problem clear
    Attachment 241709

  14. #14
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: running total problem

    Hi Loopiloo,

    Please see attached.

    Regards

    peterrc
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: running total problem

    See the formula in the attached file.

    J21 =SUM($F$21:$F21)

    and drag down.

    Is this what you're up to?
    Attached Files Attached Files

  16. #16
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: running total problem

    Hi Loopiloo.

    The formula I have offered is based on:-

    1. Mutiplying the total by the percentage - not minus the percentage
    2. The figures in the Pool column shown in the "picture" you attached are what you are trying to achieve.

    Please see attached.

    Regards

    peterrc
    Attached Files Attached Files

  17. #17
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: running total problem

    Hi Loopiloo,

    Please see attached (it doesn't look as if my last post "uploaded" properly).

    Regards

    peterrc
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    Hi guys and thanks for your help so far... i have attached a file with some explanations.. i am really not managing to get the required result.. please help
    running total problem.xlsx

  19. #19
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: running total problem

    I would put, in G8 copied down

    =SUM(H7,F8)-C8*(SUM(H7,F8))
    In line 12, you purchased 15000 so wouldn't the new total for that row be 20250 and not 6750?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  20. #20
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: running total problem

    Thats solved it ChemistB... thank a lot...! you were right.. i forgot to add the 15,000 to make it 20250

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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