+ Reply to Thread
Results 1 to 4 of 4

Forcing relative reference to update

  1. #1
    Registered User
    Join Date
    07-24-2007
    Posts
    5

    Forcing relative reference to update

    If this has been answered before, I apologize: I don't even know how to describe it clearly enough to search for it.

    I have a sheet with, say, two columns of numbers. One of these columns is summed to a total row [=SUM(D4:D15)]; the other column has the last value repeated on the total row [=E15] (so the total row always shows the total of the first column and the highest (or latest) value of the second column).

    When I insert a new row above the total row and enter new values in these columns, the Sum formula updates itself and shows the new sum [=SUM(D4:D16)], but the reference to the latest value does not.

    Is there a way to make the reference change its source as well (by adding one to the row, e.g. from =E15 to =E16)?

    Thanks

    Reg

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Not sure whether I understand exactly where your totals are but, if you have your numbers in cells D4:D15 and your SUM in D17

    =SUM(D4:D16) when you insert a new row above the total the SUM will update to include that row and move down to row D18

    =SUM(D4:D17), if you want to display the last number in the list D16 in cell E18, then use the OFFSET function

    =OFFSET(D18,-2,0) basically this say's tell me what's in the cell two rows above the total.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    07-24-2007
    Posts
    5
    Thank you -- offset() is the command I have been looking for (and didn't know existed)

    Reg

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad it worked for you - thanks for the feedback

+ 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