+ Reply to Thread
Results 1 to 6 of 6

From specific cell to last cell of that column

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    11

    From specific cell to last cell of that column

    Is it possible to not specify an ending cell in functions such as Average, Sum, Sparkline or even charts?

    Say I have a column of data from A10 to A20, i.e. does NOT start at row 1 so I can't use A:A. I'm continuously filling in more data so it might expand from A10 to A30. How do I use functions on this range of data with a changing ending row number? For example how do I create a sparkline from A10 to the last number in the column? Sparkline(A10:[last number]) so to speak.

    http://i.imgur.com/azNnHGF.png
    Attached Images Attached Images
    Last edited by Windbrand; 08-22-2016 at 10:33 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: From specific cell to last cell of that column

    You could try something like this:

    =SUM($A$2:INDEX($A$10:$A$100,COUNTA($A$10:$A$100)))

    starts from A10 and considers down to row 100. can be adjusted...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    11

    Re: From specific cell to last cell of that column

    Thanks, but I'm having trouble referencing this from another sheet.

    For example, this will return parse error:

    Please Login or Register  to view this content.
    but this does work:

    Please Login or Register  to view this content.
    Last edited by Windbrand; 08-22-2016 at 12:00 PM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: From specific cell to last cell of that column

    You never mentioned anything about another sheet....

    =SUM(INDIRECT("'Historical data'!$A$10:A"&INDEX(Historical data!$A$10:$A$100+ROW(Historical data!$A$10)-1,COUNTA(Historical data!$A$10:$A$100))))

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: From specific cell to last cell of that column

    OR this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You can also use this formula for SUM, AVERAGE, MIN, MAX and COUNT functions
    Last edited by AlKey; 08-22-2016 at 12:12 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    11

    Re: From specific cell to last cell of that column

    Thanks.
    I just realized A10:A9999 works too... are there any downsides to just using that?

+ 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: 8
    Last Post: 10-28-2015, 10:22 AM
  2. VBA to clear contents of the cell in a column of data in a cell starts with specific word.
    By winmaxservices1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2015, 08:25 AM
  3. Search for specific cell based off Row/Column and input data into that cell
    By dizzle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2014, 01:53 PM
  4. Replies: 3
    Last Post: 03-11-2014, 02:16 AM
  5. [SOLVED] if cell x in column D has a specific value then copy cell x from column A to sheet B
    By new@excel in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-28-2013, 07:26 PM
  6. Macro that is column specific & changes cell color depending on cell contents
    By zurispowell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2012, 05:03 PM
  7. Replies: 3
    Last Post: 01-21-2009, 05:37 AM

Tags for this Thread

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