+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT Within A Specific Date Range

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    41

    Question SUMPRODUCT Within A Specific Date Range

    I'm stumpped. I've been trying to complete a SUMPRODUCT formula that will only pull data if the date is within 6 months or 180 days. I've been trying to combine a COUNTIF with a nested SUMPRODUCT, but haven't had any luck. I've got a SUMPRODUCT formula that works to pull all entries, but I cannot get it to work with a specific date range (namely TODAY minus 180 days).

    Here is the SUMPRODUCT formula that works:
    =(SUMPRODUCT(($J$12:$J$10000)*1)/3)

    The "/3" is meant to divide the product into thirds for tracking purposes.

    Any ideas?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: SUMPRODUCT Within A Specific Date Range

    Assume your dates are in column D, then try this:

    =SUMPRODUCT((D$12:D$10000<=TODAY())*(D$12:D$10000>TODAY()-180),$J$12:$J$10000)/3

    Hope this helps.

    Pete

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMPRODUCT Within A Specific Date Range

    see also SUMIFS if using XL2007 or above - quite a bit more efficient than SUMPRODUCT - especially when using Volatile precedents like TODAY()

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-27-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: SUMPRODUCT Within A Specific Date Range

    Pete - Your answer worked like a charm! Didn't get a chance to try the SUMIFS, however I appreciate your response as well, DonkeyOte. I originally was using a SUMIFS for this formula, but couldn't get the product to divide by 3, so it was recommended to go to a SUMPRODUCT.

    Thank you both for the prompt responses!

+ 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