+ Reply to Thread
Results 1 to 3 of 3

Thread: Include Added Row in Sum Function

  1. #1
    Registered User
    Join Date
    11-06-2011
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Include Added Row in Sum Function

    This seems like it shouldn't be too tough, but it has me stumped.

    I have numbers in A1 through A10, and a formula in A11 = SUM(A1:A10). If I insert a new row at row 10, the formula does not expand to include it.

    How can the formula be written so as to include the new row? And I will need to copy it to other columns, so it would be best if it automatically adjusted to the column it is in.

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Include Added Row in Sum Function

    Hi,

    If your cursor is in row 11 when you add a new row then the A1:A10 range isn't affected and hence doesn't adjust.
    Simplest solution is to have a blank row 11 and in A12 enter the formula =SUM(A1:A11). Then with the active cell in row 11 when you insert a row the range will adjust.

    Or alternatively put your SUM formula above the data and cover a suitably large range. In general I prefer total rows above data since they can then remain fixed.

    Regards
    Last edited by Richard Buttrey; 02-09-2012 at 08:12 PM.
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Registered User
    Join Date
    11-06-2011
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Include Added Row in Sum Function

    OK, thanks much. I don't have the option though of using a blank row or putting the sum above the data in this application. I played with it a bit more and came up with:

    =SUM(OFFSET(A1,0,0,ROW()-ROW(A1),1))

+ 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.2.0