+ Reply to Thread
Results 1 to 4 of 4

Sum Quarter to Date

  1. #1
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Sum Quarter to Date

    Hello all,

    Looking for some suggestions on how to get started with this problem,

    I need to sum the quarter to date based on a table.

    Example: I have a table with the metrics down the left hand side, the month names across the top, and a sum column.
    What I would like to be able to do is have a formula sum the current quarter to date minus 1.

    So in June, sum the months of April and May. In July sum April, May and June, and in August, just "sum" (although I know that isn't the best way to word it) August.
    I would ideally like to leave the header names untouched as different formulas look up the month names.

    I have attached a table for reference. Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum Quarter to Date

    Try this in N2:

    =SUMPRODUCT((B2:M2)*((B$1:M$1&2019)+0>=DATE(YEAR(TODAY()),FLOOR(MONTH(TODAY())-1,3)+1,1))*((B$1:M$1&2019)+0 < EDATE(TODAY()+1,-1)))
    Last edited by 63falcondude; 06-03-2019 at 02:36 PM.

  3. #3
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Sum Quarter to Date

    Wow!! this works as expected, but can you give a little detail as to how it works?
    I good with excel and familiar with these functions, so a high level will do great!!

    Also thank you so much for your time, this is a huge help

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum Quarter to Date

    You're welcome. Happy to help.

    (B$1:M$1&2019)+0 changes the text months into actual dates that Excel recognizes.
    DATE(YEAR(TODAY()),FLOOR(MONTH(TODAY())-1,3)+1,1) returns the first date of today's quarter.
    EDATE(TODAY()+1,-1) returns tomorrow's day of last month. We add one here to make sure the formula works when today is the first of the month.

    The SUMPRODUCT function adds all of the cells in B2:M2 where each of the logical tests return TRUE.
    You can use the Evaluate Formula button in the Formulas tab to see what is happening step by step.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Formula for converting a date to quarter and leaving blank cell for no date values
    By jayc2111 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 12:57 AM
  2. Find quarter end date based on a date
    By TraciGrace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-11-2014, 02:33 PM
  3. [SOLVED] Using SumProduct for dates inclusive of Year to Date, Month to date, Quarter to Date
    By cartica in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 04:22 PM
  4. Month to Date and Quarter to Date Average from Daily data
    By asvanthi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2014, 07:10 AM
  5. Date Range - Start and End Date - Identify dates in a quarter
    By Nikki Fox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2012, 06:05 AM
  6. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  7. Replies: 7
    Last Post: 05-11-2005, 04:06 PM

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