+ Reply to Thread
Results 1 to 11 of 11

Sum Dynamic Range

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Sum Dynamic Range

    Cell C1 should show the sum. Data will be entered in below, in rows. Is there a way to define or make it so that I do not have to specify a specific range to sum since data will be constantly entered? I know I could probably do something like C:C but I noticed when I do this for several equations or sums, it starts to slow down my excel tremendously. I was wondering if there is a more efficient way of summing data.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Sum Dynamic Range

    This is a dynamic way to sum column C depending on growing data without using the =SUM(C:C)

    =SUM(C1:INDEX(C:C,MATCH(9.99999999999999E+307,C:C)))
    HTH
    Regards, Jeff

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum Dynamic Range

    Hi T86157,

    You could use a dynamic name to achieve the sum, see the attachment:-



    dynamic range sum.xlsx
    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum Dynamic Range

    Ηι

    Another way, could be this.

    In D1 for example type the Cell that you want formula stop count For example C552.

    Then use this formula.

    =SUM(C2:INDIRECT(D1))

    Is this, works for you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Sum Dynamic Range

    In regards to the 2nd and 3rd post, are these more efficient in terms of processing as well? I.e. less time to count and sum the data rather than sum entire columns

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Sum Dynamic Range

    I'm not 100% sure on this question, but I do know, there are certain formulas which will count the entire range when using whole columns, but some are not this way.

    Here is a great reference for preparing your spreadsheet for efficiencies created by Charles Williams

    http://www.decisionmodels.com/index.htm

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Sum Dynamic Range

    Perhaps =SUM(C1:INDEX(C:C,COUNTA(C:C)))

    INDIRECT being volatile, I would not recommend it

  8. #8
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Sum Dynamic Range

    Quote Originally Posted by Pepe Le Mokko View Post
    Perhaps =SUM(C1:INDEX(C:C,COUNTA(C:C)))

    INDIRECT being volatile, I would not recommend it
    This does not work if I want the sum to be in C1. It creates a circular reference.

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Sum Dynamic Range

    Typo should be =SUM(C2:INDEX(C:C,COUNTA(C:C)))

  10. #10
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Sum Dynamic Range

    Oops, forgot to mention that. I tried changing it to C2 prior to you saying that, and that created a circular reference too. I think it has to do something with C:C being the whole column....

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Sum Dynamic Range

    Post #2 should fix what you need...

    Just change the C1 to C2

    =SUM(C2:INDEX(C:C,MATCH(9.99999999999999E+307,C:C)))

+ 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