+ Reply to Thread
Results 1 to 5 of 5

Auto sum of value when adding new row

  1. #1
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    Auto sum of value when adding new row

    I looking for a good formula that can be total a value when add more row into it. i have try subtotal(9,B5:B8) but this formula does not work, always need to click "Update formula to include cells", very troublesome. Have any idea ?
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by choy96; 10-27-2010 at 10:30 AM.

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

    Re: Auto sum of value when adding new row

    just use =sum(b5:b9) this will change to =sum(b5:b10) when you add a row
    "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

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

    Re: Auto sum of value when adding new row

    Here's one solution. In B10

    =SUM($B$5:OFFSET($B$10,-1,))

    This assumes you're not inserting in front of B5. If you are, then

    =SUM(INDIRECT("B5"):OFFSET($B$10,-1,))
    Last edited by ChemistB; 10-26-2010 at 10:36 AM.
    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

  4. #4
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    Re: Auto sum of value when adding new row

    thanks, what happen if i unlock the B10 on "=SUM(INDIRECT("B5"):OFFSET($B$10,-1,))" because i need draw the formula to the right.

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

    Re: Auto sum of value when adding new row

    It should not be a problem.

+ 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