+ Reply to Thread
Results 1 to 3 of 3

Capturing values at the bottom of a column

  1. #1
    Registered User
    Join Date
    06-13-2011
    Location
    Concord, NH
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Capturing values at the bottom of a column

    I have a spreadsheet setup with columns and monthly a new row is filled out with values. What I am trying to do is capture the sum of the last 6 rows at the bottom of a column. I was able to capture the value of the last item in the column using this equation:

    =INDIRECT(ADDRESS(MATCH(1E+30,B:B),COLUMN(B1)))

    I was also able to capture the group of six from a given base cell like this:

    =SUM(OFFSET(B14,,,-6))

    In this case B14 is my base. What I am attempting to do is use the last cell equation as my base but I have not been able to get this to work. My last attempt:

    =SUM(OFFSET((ADDRESS(MATCH(1E+30,B:B),COLUMN(B1)))
    ,,,-6))


    Any thoughts on how to get this working. I am very open to ideas if there is a simplier or different way to do this.

    Thank you,

    -Matt
    Last edited by mmckenna; 06-13-2011 at 08:57 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Capturing values at the bottom of a column

    How about:

    =SUM(INDEX(B:B,MATCH(9.9999E+307,B:B)-5):INDEX(B:B,MATCH(9.9999E+307,B:B)))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-13-2011
    Location
    Concord, NH
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Capturing values at the bottom of a column

    Awesome, Thank you very much. Worked like a charm.

    -Matt

+ 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