+ Reply to Thread
Results 1 to 8 of 8

Automatically Adjusting Sum of Numbers When Adding/Deleting rows

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    103

    Automatically Adjusting Sum of Numbers When Adding/Deleting rows

    Hi,

    I currently have this formula to deal with this:

    =SUM(J5:INDEX(J:J,ROW()-1))

    However, whenever I delete the top row...I get a reference error and have to re-adjust...any ideas on how to get aorund this?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Automatically Adjusting Sum of Numbers When Adding/Deleting rows

    =sum(indirect("j4"):index(j:j,row()-1))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    103

    Re: Automatically Adjusting Sum of Numbers When Adding/Deleting rows

    thanks a lot

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    103

    Re: Automatically Adjusting Sum of Numbers When Adding/Deleting rows

    One question...why J4 and not 5?

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

    Re: Automatically Adjusting Sum of Numbers When Adding/Deleting rows

    Or, to avoid volatility,

    =sum(index(j:j, 5):index(j:j, row() - 1))
    Last edited by shg; 07-21-2014 at 11:28 AM.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Contributor
    Join Date
    02-06-2013
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    103

    Re: Automatically Adjusting Sum of Numbers When Adding/Deleting rows

    Thanks.

    Wondering why row 4 and not 5 as row 5 is when the data starts

  7. #7
    Forum Contributor
    Join Date
    02-06-2013
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    103

    Re: Automatically Adjusting Sum of Numbers When Adding/Deleting rows

    Seems to work either way

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

    Re: Automatically Adjusting Sum of Numbers When Adding/Deleting rows

    It should be 5. If it works either way, then J4 is empty, or contains text, or contains 0.

+ 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. Replies: 2
    Last Post: 03-16-2016, 03:16 PM
  2. Complex forumulas not automatically adjusting when adding/removing rows
    By Krahst in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2014, 04:06 AM
  3. [SOLVED] Need help adjusting VB macro for appending data to rows with matching index numbers
    By summerela in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2013, 06:20 PM
  4. Adding/Deleting rows, columns, and more automatically.
    By BlondOIverBlue in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-10-2010, 10:46 PM
  5. Deleting rows matching numbers from numbers in column
    By cyki in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-11-2008, 09:16 AM

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