+ Reply to Thread
Results 1 to 8 of 8

dynamic sum range formula not working

  1. #1
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    dynamic sum range formula not working

    HI,

    I am having this formula for adding a dynamic range. It does not work. Please help me.


    ActiveCell.FormulaR1C1 = "=sum(offset($D$2,0,0,counta(D:D),1))"

    Thanks

  2. #2
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: dynamic sum range formula not working

    Remove the R1C1 after Formula. Or convert the formula to use R1C1 references - "=SUM(OFFSET(R2C4,0,0,COUNTA(C[3]),1))"

  3. #3
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    Re: dynamic sum range formula not working

    Tried that Echo, it did not work.
    Thanks for helping.

  4. #4
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: dynamic sum range formula not working

    Apologies misunderstood,try =SUM(INDIRECT("$D$2:"&ADDRESS(MATCH(2,1/(D:D<>""),1),COLUMN(D:D))))

    This is an array formula so must be entered with Ctrl+Shift+Enter

  5. #5
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    Re: dynamic sum range formula not working

    Did not work either.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,952

    Re: dynamic sum range formula not working

    Try
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    Re: dynamic sum range formula not working

    Thank you TMS. That worked perfectly.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,952

    Re: dynamic sum range formula not working

    You're welcome.



    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] Dynamic Name Range not working with indirect formula
    By Tbez in forum Excel General
    Replies: 7
    Last Post: 06-10-2021, 07:04 AM
  2. Dynamic chart range not working
    By LAlexNi in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 06-02-2021, 04:45 AM
  3. Presentation dynamic range is not working
    By rajuganapathy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-16-2019, 10:16 PM
  4. [SOLVED] Horizontal dynamic range not working
    By steam73 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-01-2017, 09:32 AM
  5. PC vs MAC dynamic range not working
    By CluelessCrowbarr in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 16
    Last Post: 03-07-2014, 05:03 AM
  6. [SOLVED] Dynamic name range not working correctly
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 10
    Last Post: 12-14-2013, 09:09 PM
  7. How do I know if Dynamic Range is working?
    By livemusic in forum Excel General
    Replies: 9
    Last Post: 07-02-2011, 11:16 PM

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