+ Reply to Thread
Results 1 to 7 of 7

SUM dynamic range, excluding total row and including a stopping point

  1. #1
    Registered User
    Join Date
    09-29-2015
    Location
    Boise, ID
    MS-Off Ver
    365
    Posts
    8

    SUM dynamic range, excluding total row and including a stopping point

    I need help with summing a dynamic range, but I need to exclude the total row at the bottom of the range and I want to include a start and stop point (beginning and end of a month). Sample.xlsx

    I've attached a sample doc with date ranges. I've been playing around with the OFFSET formula and am able to sum the range dynamically, but can't get the formula to stop at the end of a month while excluding the total row at the bottom.

    Essentially I want to sum data for a given month, doing so while adding new rows at the bottom of the range each day, then stopping when the given month ends (while excluding the total column altogether).

    Thanks everyone!!

  2. #2
    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: SUM dynamic range, excluding total row and including a stopping point

    Since sum of column B is equal the total use this formula


    =SUM(B:B)/2
    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

  3. #3
    Registered User
    Join Date
    09-29-2015
    Location
    Boise, ID
    MS-Off Ver
    365
    Posts
    8

    Re: SUM dynamic range, excluding total row and including a stopping point

    Quote Originally Posted by AlKey View Post
    Since sum of column B is equal the total use this formula


    =SUM(B:B)/2
    This will sum the column, minus the total, but I need to sum individual months (so rows 1-31, 32-59, etc.) while continually adding a new row with data each day.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,598

    Re: SUM dynamic range, excluding total row and including a stopping point

    D2 Represents Month.
    Formula
    =SUMPRODUCT((MONTH($A$1:$A$64)=MONTH(D2))*($B$1:$B$64))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-29-2015
    Location
    Boise, ID
    MS-Off Ver
    365
    Posts
    8

    Re: SUM dynamic range, excluding total row and including a stopping point

    Quote Originally Posted by kvsrinivasamurthy View Post
    D2 Represents Month.
    Formula
    =SUMPRODUCT((MONTH($A$1:$A$64)=MONTH(D2))*($B$1:$B$64))
    This may be on the right track. Can you show how the formula would work for the month of March though? If I add another row (65) and enter the next date (3/6/2015), how would this be dynamically added for the March formula?

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,598

    Re: SUM dynamic range, excluding total row and including a stopping point

    In this formula
    =SUMPRODUCT((MONTH($A$1:$A$64)=MONTH(D2))*($B$1:$B$64))
    change 64 as 65.

    Beyond the data entered range also you want to include this ARRAY formula works
    =SUM(IF(ISNUMBER($A$1:$A$164),(MONTH($A$1:$A$164)=MONTH(D2))*($B$1:$B$164),0))
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-29-2015
    Location
    Boise, ID
    MS-Off Ver
    365
    Posts
    8

    Re: SUM dynamic range, excluding total row and including a stopping point

    Quote Originally Posted by kvsrinivasamurthy View Post
    In this formula
    =SUMPRODUCT((MONTH($A$1:$A$64)=MONTH(D2))*($B$1:$B$64))
    change 64 as 65.

    Beyond the data entered range also you want to include this ARRAY formula works
    =SUM(IF(ISNUMBER($A$1:$A$164),(MONTH($A$1:$A$164)=MONTH(D2))*($B$1:$B$164),0))
    Fantastic!! That did it, thank you!!

+ 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] SUM a dynamic range not including hidden cells
    By whitwoo in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-22-2014, 10:33 AM
  2. Dynamic Range Sizes, including blanks
    By Speshul in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-12-2014, 10:52 AM
  3. Dynamic Print Range not including blank rows with formulas
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2013, 11:49 AM
  4. [SOLVED] Dependent drop down lists- dynamic data range- excluding Headers
    By strud in forum Excel General
    Replies: 3
    Last Post: 05-28-2013, 04:10 AM
  5. Replies: 3
    Last Post: 03-31-2008, 01:27 PM
  6. [SOLVED] Create dynamic dropdown from range including blanks
    By Mike Mick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2006, 12:00 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