+ Reply to Thread
Results 1 to 7 of 7

Sum a dynamic range

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Sum a dynamic range

    Hello, Gurus.

    I am trying to enter a sum formula in cell T2 that sums all data from U7 to the end of the column. The end of the column is dynamic, and at the bottom of the column there is a blank row folowed by a "TOTALS" row that I don't want included in the sum. I tried this knowing it wouldn't work, but though this may give you an idea of what I am trying to do.
    Please Login or Register  to view this content.
    One other thing that may confuse me is that the formula is within a "With Sheets" statement. Here is the full section of code, with the bad formula commented out.
    Please Login or Register  to view this content.
    Last edited by [email protected]; 07-03-2018 at 10:10 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Sum a dynamic range

    Probably other reasons why, and this may be too simplistic anyway, but why not just a regular formula?

    =sum(U:U)/2
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Sum a dynamic range

    Please Login or Register  to view this content.
    Formula vs. FormulaR1C1
    Ben Van Johnson

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Sum a dynamic range

    Simple is best. I didn't think about totaling the whole row and dividing by 2. Let em try that and I will come back and close the thread if it works for all my formulas. (Yes, there were other formulas, including subtotals, but I figured if I could solve one I could guess at the others.)

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Sum a dynamic range

    Looking forward to hearing back from you

  6. #6
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Sum a dynamic range

    Sorry for the slow response, guys. Had a "honey do" list when I got home. I tried both examples, and Leah's script worked best for my purposes. It works on both my sums and my subtotals. Below is what I ended up with. Please let me know if there is a more efficient way to execute it. Either way, than for the help to both of you, and this thread is SOLVED.
    Please Login or Register  to view this content.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Sum a dynamic range

    Im happy you got where you wanted to be

+ 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] Populate Dynamic Array from Cell Values and write to Dynamic Range
    By TFiske in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2018, 09:09 AM
  2. [SOLVED] Dynamic Range/Dynamic Chart Using Cell Value for Reference and without CountA
    By kelseygueldalewis in forum Excel General
    Replies: 11
    Last Post: 09-11-2017, 04:52 PM
  3. Match ComboBox with dynamic range, then add Textbox1 to dynamic range
    By Lasse Moe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2014, 01:26 AM
  4. Dynamic Range Column Chart w/ Dynamic Avg Line (Excel 2007)
    By BrokenBiker in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-04-2012, 11:40 AM
  5. Fill Dynamic Range From Dynamic Source Range
    By goss in forum Excel General
    Replies: 2
    Last Post: 03-06-2012, 12:05 PM
  6. Replies: 2
    Last Post: 02-02-2006, 04:10 PM
  7. select dynamic range with dynamic start point
    By Juli in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2005, 08:05 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