+ Reply to Thread
Results 1 to 4 of 4

Formula to include inserted cell range

  1. #1
    Registered User
    Join Date
    01-12-2009
    Location
    boston
    MS-Off Ver
    Excel 2003
    Posts
    58

    Formula to include inserted cell range

    Hi,

    OK, to simplify things, let's say I always have =SUM(A2:A5) in A1. I need to periodically "insert copied cells down" into A2 from somewhere else -- i.e. I want =SUM(A2:A5) to INCLUDE the newly inserted cells in its calcuation as well as the ones it already did include. Only thing is, whenever I do this, say by inserting two cells into A2, =SUM(A2:A5) "shifts" down and looks like this: "=SUM(A4:A7)". That is, it includes the bottom cell just fine (A7), but totally ignores the two newly inserted ones, A2 & A3. I've tried the whole absolute "$" thing out the wazu, but nothing seems to work... Anyone here know how to resolve this?

    Thanx a bunch,
    G

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Formula to include inserted cell range

    Hi gandolff,

    You may want to check out Dynamic Named Ranges, and the use of the OFFSET function.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula to include inserted cell range

    Given you say you always insert into A2 then use:

    =SUM(INDEX(A:A,2):A5)

    The A5 reference will alter accordingly however the commencement of the range will always be A2 regardless.

  4. #4
    Registered User
    Join Date
    01-12-2009
    Location
    boston
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Formula to include inserted cell range

    Thanks a lot for that!

+ 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